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: Sidebar for policy domain #86

Merged
merged 1 commit into from
Feb 17, 2025

Conversation

abhisek
Copy link
Member

@abhisek abhisek commented Feb 17, 2025

No description provided.

@abhisek abhisek requested a review from arunanshub February 17, 2025 04:20
Copy link

vercel bot commented Feb 17, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
platform-safedep-io ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 17, 2025 4:23am

@arunanshub arunanshub merged commit aef5449 into feat/policy-groups-page Feb 17, 2025
6 checks passed
@arunanshub arunanshub deleted the fix/app-sidebar-for-policy branch February 17, 2025 13:11
arunanshub pushed a commit that referenced this pull request Feb 17, 2025
arunanshub pushed a commit that referenced this pull request Feb 21, 2025
abhisek added a commit that referenced this pull request Feb 21, 2025
* deps: update lockfile

* feat: add initial policy page design

* feat: add policy group page content

* refactor: change button label

* refactor: make names bold

* feat: add edit policy group page

* feat: add buttons and data to page

* feat: add create policy group page

* feat: add create policy page

* feat: fix tags-input type errors

* feat: add rulecheck schema

* feat: add rule component

* feat: beautify rule component

* refactor: clean up code

* fix: prevent form from submitting when enter is pressed

* feat: make rule collapsible for ease of access

* feat: prepend instead of append rules

* feat: add edit policy page

* feat: add edit/create states

* fix: handle submission logic from parent

* fix: rename form to policy-form

* fix: convert page to client component

* feat: add link to policy page

* feat: add attach/detach policies functionality

* refactor: remember what policies were selected

* refactor: change handleUpdateGroup to a function declaration

* refactor: exclude already attached policy

* refactor: use deterministic mock data gen

* feat: add responsive dialog

* fix: update links

* fix: fix row layout on mobile

* fix: Sidebar for policy domain (#86)

* feat: fetch policy groups

* feat: add create policy actions

* feat: allow deleting group

* feat: list policies

* feat: list policies using datatable

* feat: connect create policy action to page

* feat: add edit policy feature

* fix: send to correct link

* feat: remove policy id from table

* feat: use tanstack query to auto manage loading/error state

* feat: allow directly submitting the rule value on the basis of rule name

* feat: add update policy form

* feat: use default form behavior

* fix: make textarea resizable and redirect to policy list

* refactor: extract component and add delete functionality

* feat: show spinner when row is being deleted

* feat: manually verify if rules are present

* feat: add attach/detatch server actions

* feat: allow updating policy group

* feat: implement attach/detach feature

* refactor: make mutations async

* remove react-query toolbar

* refactor: show proper label

* refactor: use custom hook

* refactor: consolidate tenant and token retrieval into a single function and fix policy listing

* refactor: update policy form and actions with consistent naming and improved type handling

* refactor: extract getTenantAndToken to shared RPC client module

* feat: enhance policy edit page with React Query mutation and toast notifications

* refactor: add toast notifications for policy group mutations

* chore: upgrade dependencies and migrate to Sonner toast notifications

* fix: show toasts and fix dropdown menu using query

* feat: implement server-side rendering with Tanstack Query for policy management page

* refactor: let tanstack query devtools be there

* refactor: migrate policy list page to hybrid rendering with Tanstack Query

* refactor: improve policy group creation with Tanstack Query and optional description

* feat: add createdAt and updatedAt timestamps to policy groups

* test: add policy list page test

* test: check for row contents

* test: track error states

* test: add tests for policy management page

* test: add test for policy-management new policy page

* test: skip a flaky test

* test: keep the test but skip it for now

* refactor: move session related code to session.ts

* refactor: adopt to bufbuild v2

---------

Co-authored-by: Abhisek Datta <[email protected]>
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