feat: alerts feed, notifications, onboarding and security hardening#39
Merged
Conversation
When the company has no employees or no breach API key, the dashboard shows a guided checklist (add employees, add a key, run a scan) instead of an empty dashboard, plus a short project note.
Dashboard redirects to /setup until the workspace has employees and an API key; /setup redirects back to /dashboard once ready, so the page only exists during onboarding.
Gating the dashboard on an API key locked out workspaces that have employees but no stored key. Redirect to /setup only when there are no employees and no API key.
After first paint, warm all main route bundles during browser idle time so subsequent navigation is instant, without blocking access.
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.
Summary
Builds out Phase 4 (alerts and notifications) plus onboarding and
several enterprise hardening items.
Alerts
filters and inline acknowledge/resolve (company-scoped PATCH).
Notifications
RESEND_API_KEY and EMAIL_FROM, failures never abort a scan).
management on the Data API page (add, enable, test, delete) and a
minimum severity filter.
Exports
Onboarding
redirects there only when the workspace is empty (no employees and
no API key) and /setup redirects back once it is no longer empty.
Performance
navigation, without blocking access.
Security / refactor
duplicated guards. Behavior unchanged.
Database
All commits pass lint (zero warnings), tsc and build.