Skip to content

[#157] feat: add role-scoped advanced ticket search - #210

Merged
sksingh2005 merged 1 commit into
mnemosyne-systems:mainfrom
Mohamed-Alkafory:feature/advanced-search
Nov 13, 2026
Merged

sksingh2005 merged 1 commit into
mnemosyne-systems:mainfrom
Mohamed-Alkafory:feature/advanced-search

Conversation

@Mohamed-Alkafory

Copy link
Copy Markdown
Contributor

Closes #157

What this does

Adds a full advanced-search page for tickets, reachable from the search area and with a Ctrl/Cmd+Shift+F shortcut.

  • Role-scoped search page: /support/tickets/search, /superuser/tickets/search and /user/tickets/search. Every search starts from exactly the tickets that role's normal list shows, so filters can never widen the scope.
  • Filters: free text, status, category, company, entitlement, support level, support user, TAM user, affects version, resolved version, activity/created/resolved date ranges, and custom fields (text, number, date, select).
  • Role capabilities: support, superuser and TAM get company and support-user filters; the TAM filter is available to support and superuser. Filters a role cannot use are ignored server-side, not trusted from the client.
  • Status matches the list: search uses the same displayed status as the ticket list. For example, an Open ticket assigned to support is searched as Assigned, and Waiting for External Feedback is searched as In Progress for superuser, TAM and user.
  • Results: the normal ticket table with pagination and sorting. Filters are reflected in the URL, so a search can be shared or bookmarked, and invalid filter values are rejected before searching.
  • Filter UX: filter chips with individual removal, reset, inline validation for date ranges and custom-field values, and role-specific status choices.
  • Lookups: categories, companies, versions and custom fields come from a bootstrap endpoint. Advanced search requests all versions so older tickets remain filterable, and the lookups refresh when the tab regains focus so newly added custom fields appear without a reload.

Screenshots

Screenshot 2026-11-08 213246 Screenshot 2026-11-08 212947 Screenshot 2026-11-08 213112

@Mohamed-Alkafory

Copy link
Copy Markdown
Contributor Author

@jesperpedersen @sksingh2005 PTAL

@sksingh2005
sksingh2005 requested review from jesperpedersen and sksingh2005 and removed request for sksingh2005 November 8, 2026 22:04
@sksingh2005 sksingh2005 added the feature A new feature label Nov 8, 2026
@jesperpedersen

Copy link
Copy Markdown
Contributor

@sksingh2005 Can you take this one ?

@sksingh2005

Copy link
Copy Markdown
Collaborator

@jesperpedersen Sure

@sksingh2005

Copy link
Copy Markdown
Collaborator

It looks a clean implementation. Great work @Mohamed-Alkafory . LGTM

@sksingh2005
sksingh2005 merged commit 8eb5932 into mnemosyne-systems:main Nov 13, 2026
2 checks passed
@sksingh2005

Copy link
Copy Markdown
Collaborator

Merged. Thanks for the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature A new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Advanced search

3 participants