-
Notifications
You must be signed in to change notification settings - Fork 23
feat: view variables & namespaced query parameters #2620
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
✅ Deploy Preview for goofy-euclid-75956c ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for flanksource-demo-stable ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
The latest updates on your projects. Learn more about Vercel for GitHub.
|
9a457a9
to
3606370
Compare
✅ Deploy Preview for clerk-saas-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
8a5660a
to
ff9a0a5
Compare
ff9a0a5
to
f1a6577
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for view variables and namespaced query parameters to enable multiple tables on the same page without URL parameter conflicts. The implementation separates global view-level filters from table-specific column filters using URL parameter prefixing.
- Introduces view variables as global filters that affect entire views (panels + tables)
- Implements namespaced query parameters using prefixes to prevent conflicts between multiple tables
- Separates form handling for global filters vs table column filters
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/pages/views/components/SingleView.tsx | Updates view data fetching to include variables and implements prefixed search params |
src/pages/audit-report/types/index.ts | Adds ViewVariable type definition and requestFingerprint to ViewResult |
src/pages/audit-report/components/View/ViewTableFilterForm.tsx | New component for table-specific filter form with prefixed parameters |
src/pages/audit-report/components/View/View.tsx | Refactors to separate global and table filters, adds variable support |
src/pages/audit-report/components/View/GlobalFiltersForm.tsx | New component for managing global view-level filter parameters |
src/pages/audit-report/components/View/GlobalFilters.tsx | New component rendering global filter UI controls |
src/pages/audit-report/components/DynamicDataTable.tsx | Adds tablePrefix support for prefixed parameter keys in cell filters |
src/hooks/usePrefixedSearchParams.ts | New hook for managing URL search params with prefixes |
src/api/services/views.ts | Updates API calls to support variables and request fingerprinting |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This PR adds support for