Skip to content

feat: show a spinner when searching taxonomy #33190

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

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Jun 5, 2025

you get no visual feedback from the taxonomic filter when searching

let's give some

2025-06-05 01 22 59

stacked on top of #33184

@pauldambra pauldambra changed the base branch from master to feat/allow-event-sorting-in-taxonomic-filter June 5, 2025 00:28
@@ -76,71 +75,72 @@ function TaxonomicGroupTitle({ openTab }: { openTab: TaxonomicFilterGroupType })
const { eventOrdering } = useValues(taxonomicFilterPreferencesLogic)
const { setEventOrdering } = useActions(taxonomicFilterPreferencesLogic)

if (openTab === TaxonomicFilterGroupType.Events) {
Copy link
Member Author

Choose a reason for hiding this comment

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

ah, i missed i had this change too.

this is just refactoring the method

@pauldambra pauldambra changed the title feat: allow users to choose sorting in events taxonomic filter feat: show a spinner when searching taxonomy Jun 5, 2025
@pauldambra pauldambra requested a review from veryayskiy June 5, 2025 00:31
Copy link
Contributor

github-actions bot commented Jun 5, 2025

Size Change: +2.07 kB (+0.06%)

Total Size: 3.75 MB

Filename Size Change
frontend/dist/toolbar.js 3.75 MB +2.07 kB (+0.06%)

compressed-size-action

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Added event sorting functionality and visual feedback to the taxonomic filter, allowing users to sort events by name or last seen date with loading indicators during searches.

  • Added new taxonomicFilterPreferencesLogic to manage persistent sorting preferences with options for name, recently seen, or both
  • Implemented loading spinner in InfiniteSelectResults to provide visual feedback during searches
  • Enhanced event_definition.py with improved SQL query generation for multiple ordering expressions and date-specific sorting
  • Added comprehensive test coverage in test_event_definition.py for various sorting scenarios including alphabetical and timestamp-based ordering
  • Protected new sorting functionality behind TAXONOMIC_EVENT_SORTING feature flag

9 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Comment on lines +113 to +114
{!eventOrdering ? <IconCheck /> : <IconBlank />}
<span>Both</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

style: 'Both' is not descriptive enough for the sorting option. Consider 'Recently seen + Name' for clarity.

@pauldambra pauldambra merged commit c44c92a into feat/allow-event-sorting-in-taxonomic-filter Jun 5, 2025
102 of 103 checks passed
@pauldambra pauldambra deleted the feat/loader-when-searching branch June 5, 2025 08:44
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.

2 participants