Skip to content

Conversation

adityathebe
Copy link
Member

@adityathebe adityathebe commented Aug 28, 2025

This PR adds support for

  • View Variables
  • Supporting namespaced query parameters. This allows for multiple tables to be used in the same page even though they share the URL query parameter as their state.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for goofy-euclid-75956c ready!

Name Link
🔨 Latest commit fa1a030
🔍 Latest deploy log https://app.netlify.com/projects/goofy-euclid-75956c/deploys/68b0841a47096a00087c4b81
😎 Deploy Preview https://deploy-preview-2620--goofy-euclid-75956c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for flanksource-demo-stable ready!

Name Link
🔨 Latest commit fa1a030
🔍 Latest deploy log https://app.netlify.com/projects/flanksource-demo-stable/deploys/68b0841a686ef600087b2f40
😎 Deploy Preview https://deploy-preview-2620--flanksource-demo-stable.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

vercel bot commented Aug 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
aws-preview Ready Ready Preview Aug 28, 2025 4:36pm
flanksource-ui Ready Ready Preview Aug 28, 2025 4:36pm

Copy link

netlify bot commented Aug 28, 2025

Deploy Preview for clerk-saas-ui ready!

Name Link
🔨 Latest commit fa1a030
🔍 Latest deploy log https://app.netlify.com/projects/clerk-saas-ui/deploys/68b0841a58f7350008b27b89
😎 Deploy Preview https://deploy-preview-2620--clerk-saas-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@adityathebe adityathebe requested a review from Copilot August 28, 2025 15:16
@adityathebe adityathebe marked this pull request as ready for review August 28, 2025 15:16
Copilot

This comment was marked as outdated.

@adityathebe adityathebe changed the title feat: view variables feat: view variables & namespaced query parameters Aug 28, 2025
@adityathebe adityathebe requested a review from Copilot August 28, 2025 16:13
Copy link
Contributor

@Copilot Copilot AI left a 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.

@adityathebe adityathebe requested a review from moshloop August 28, 2025 16:38
@moshloop moshloop merged commit e32d371 into main Aug 29, 2025
16 of 18 checks passed
@moshloop moshloop deleted the feat/view-variables branch August 29, 2025 07:52
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