feat(reports): period-over-period deltas and span-flow layout#46
Merged
Conversation
Add comparison deltas (newly exposed employees, breaches with new detections, new alerts) computed over filter-derived windows: an explicit date range compares against the equal-length prior window, otherwise the trailing 30 days against the 30 days before. Surfaced as trend pills on the Exposure and Compliance stat cards, as automatic trend findings, and in the exposure CSV. StatCard gains an optional, non-breaking delta prop. Rework the customizable layout to a discrete-width flow grid: sections pick 1/3, 1/2 or full width and reorder via drag (dnd-kit). Rows stretch and use dense auto-flow so partial-width tiles fill empty space instead of leaving gaps; a DragOverlay keeps the dragged section at its own width.
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.
What
StatCardgains an optional, non-breakingdeltaprop.Status
Unmerged local work that post-dates PR #40. Rebased onto current main (post dependency rollback).
npm run lint -- --max-warnings 0,npx tsc --noEmitandnpm run buildall pass locally.