[DEMO] ENG-2943: Add Access Control Summary and Logs#7640
Draft
[DEMO] ENG-2943: Add Access Control Summary and Logs#7640
Conversation
Add RTK Query slice, MSW mock handlers, and three summary cards (violations over time chart, violation rate, top data consumers) with time range toggle for the access control summary page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Contributor
Greptile SummaryThis PR adds the data layer and three summary dashboard cards for the Access Control summary page — a violations-over-time area chart, a violation-rate stat card, and a top-data-consumers list — along with an RTK Query slice, MSW mock handlers, and a Key observations:
Confidence Score: 4/5
Important Files Changed
Last reviewed commit: 8030763 |
12 tasks
…/ethyca/fides into access-control-summary-dashboard
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolved conflicts keeping summary dashboard styling (Statistic, trend display, grid layout for DataConsumersCard) while adopting the logs branch's shared chart utilities, CartesianGrid/YAxis, dynamic log-based chart data, and full request log endpoints. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket [ENG-2943]
Description Of Changes
Add the data layer and summary cards for the access control summary page. This includes an RTK Query slice with MSW mock handlers, three summary cards (violations over time chart, violation rate stat, top data consumers list), and a time range toggle (24H/7D/30D).
The mock-first approach means swapping to a real backend requires no UI changes — components consume RTK Query hooks, and MSW handlers intercept API calls to return mock data during development.
Code Changes
src/features/access-control/types.ts- TypeScript types for all API response shapessrc/features/access-control/access-control.slice.ts- RTK Query slice with 4 endpoints injected into baseApisrc/features/common/api.slice.ts- Added "Access Control" to tagTypessrc/mocks/access-control/data.ts- Mock response data for all endpointssrc/mocks/access-control/handlers.ts- MSW handlers with query param parsing (pagination, date range, group_by, sort)src/mocks/handlers.ts- Registered access-control handlerssrc/features/access-control/summary/ViolationsOverTimeCard.tsx- Dual-line area chart (violations + total requests) using rechartssrc/features/access-control/summary/ViolationRateCard.tsx- Percentage stat with progress barsrc/features/access-control/summary/DataConsumersCard.tsx- Top 5 data consumers listsrc/features/access-control/summary/SummaryCards.tsx- 3-column grid layout composing the cardssrc/pages/data-discovery/access-control/summary/index.tsx- Added Segmented time range toggle and SummaryCardsSteps to Confirm
NEXT_PUBLIC_MOCK_API=true npm run devfromclients/admin-ui//data-discovery/access-control/summaryPre-Merge Checklist
CHANGELOG.mdupdated