Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/Many controls in search empty state not working #509

Merged
merged 14 commits into from
Jan 26, 2024

Conversation

JosueMagnus12
Copy link
Collaborator

@JosueMagnus12 JosueMagnus12 commented Jan 25, 2024

Context

The "create alert" and "clear filters" buttons on the search page (empty. state) were not working correctly.

What changed

  • Replaced generic button with link to new alerts modal
  • Added clear keyword button logic
  • Added missing data-actions to clear filters button

How to test it

  1. Go to http://localhost:5000/search
  2. Apply various filters until you get the empty state

References

ClickUp ticket | Alerts
ClickUp ticket | Keyword

p class="text-xl font-bold text-center "
| We couldn't find any nonprofits that matched your search.
p class="max-w-xs px-4 text-base text-center"
| Try searching for another keyword or editing your filters.
button class="text-sm font-bold text-blue-medium" type="submit" data-action="click->search#clearAll"
button class="text-sm font-bold text-blue-medium" type="submit" data-action="click->search#clearKeywordInput click->search#clearCheckedPills click->search#clearAll"
Copy link
Collaborator Author

@JosueMagnus12 JosueMagnus12 Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the most elegant approach, but this is the quickest solution. Let's add the refactor of all of this as tech debt.

@JosueMagnus12 JosueMagnus12 changed the title Fix/alert creation link bug Fix/Many controls in search empty state not working Jan 25, 2024
Copy link
Collaborator

@aliciapaz aliciapaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get two "X" in the search bar
image

Copy link
Contributor

@AlanSoto31 AlanSoto31 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job here Josue

@JosueMagnus12 JosueMagnus12 merged commit 7c3b5af into main Jan 26, 2024
2 checks passed
@JosueMagnus12 JosueMagnus12 deleted the fix/alert-creation-link-bug branch January 26, 2024 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants