Repository navigation
[pull] main from CPAtoCybersecurity:main - #26
Merged
Merged
Conversation
Demo (Alma) users, findings, and artifacts shipped as global records, so they appeared in every assessment context: the eval-panel auditor picker listed the 8 demo staff on any new assessment, and the Findings and Artifacts tabs mixed demo records into everyone's working view. Root cause: artifacts had no assessment linkage at all, the demo assessment never seeded its #290 user roster, and every consumer read the whole store. Fixed at the data model: - Artifacts gain a nullable assessmentId. All seeded demo artifacts (the DEFAULT_ set is Alma evidence too) are stamped to the demo assessment; v8 migration heals existing installs behind an exact artifactId+name provenance guard that never overwrites and never deletes. - Seeded users/findings/artifacts all carry seedSource: 'demo-alma' provenance (v3/v6/v8 migrations stamp existing installs; the restore path runs the same idempotent stamps unconditionally, since bulk setters bypass store migrate). The user directory badges demo users. - The demo assessment seeds its 8-user roster (v15 migration, only when the roster is empty), so the example still demos the user scope. - One scope helper (utils/assessmentScope.js): null assessmentId means visible in every scope, so nothing a user created ever disappears; stamped demo records drop out of every other assessment. - Findings + Artifacts pages get a page-local assessment scope filter defaulting to the current assessment; creation stamps the active scope; deep links widen the page-local scope, never the global selection. - Eval-panel Artifact/Finding pickers scope to the assessment; the auditor picker lists the assessment roster with an explicit browse-directory expansion that links picks onto the roster, and the details panel gains a minimal roster editor (add/remove/role). - Dashboard KPIs and the markdown/PDF report generators consume scoped records; artifacts CSV round-trips an Assessment ID column. 143 new tests; full suite 553 passing.
…ta-segregation Segregate demo users, findings, and artifacts to the demo assessment (#297)
…ssessment (#299) Controls were the last first-class entity with zero assessment awareness: the 24 shipped Alma controls rode as global records, so their implementation text, owners, and register rows appeared under every assessment a user created. And clearing the fictional demo staff required clicking through a confirm per user. Ask 1 — the delete-user confirmation is skipped when the user carries the demo seed brand (strict seedSource match; real users keep the confirm, cancel still aborts). Ask 2 — controls join the #297 segregation scheme end-to-end: - Seeded controls are stamped assessmentId + seedSource at seed time; store v6 migration heals existing installs behind a positive-match guard keyed on controlId + the seed's createdDate. createdDate is the stable identity field (updateControl never touches it, createControl always stamps now), so a demo control whose description the user edited is still recognized, while a user control reusing a seeded id can never false-match, and nothing matches via undefined===undefined. Absent-only on both classification fields; idempotent; never deletes. - The Controls page gets the #297 page-local scope filter (each assessment + Unassigned + All, defaulting to the current assessment), creation stamps the active scope, deep links widen only the page-local scope, and the CSV/JSON exports round-trip an Assessment ID column. - Scoped consumers: Requirements control-data columns + detail panel; Findings/Artifacts derived linked-control chips (scoped by the record's OWN assessment, failing open for unassigned records); ControlSelector gains the same assessmentId prop as its two siblings (fail-open without it) and is wired from the eval panel; the Assessments scope picker stops offering other assessments' controls; the AI gap analysis passes only scoped controls across the boundary; the restore path runs the same idempotent stamp so pre-#299 backups heal (bulk setters bypass the store migrate). - Unassigned (user-created/legacy) controls stay visible in EVERY view — nothing a user made ever disappears behind the new filter. 39 new tests; full suite 592 passing. Also adds the whitespace-nowrap utility index.css never had (Findings already referenced it as a no-op).
…er-delete-and-controls Demo users delete without a prompt; demo controls scope to the demo assessment (#299)
…attributions Remove Simply Cyber Academy lines from the Reference tab
.bg-amber-500/.bg-amber-600, four hover:bg-amber-* variants and .h-1.5 were referenced across the app but never defined in index.css, so the Organization profile wizard's Next button rendered white text on a transparent background, the step progress bar had zero height, and the Findings action buttons rendered unstyled. Adds the missing utilities plus dark-theme overrides following the existing gold cascade, and moves the wizard's Next/Save buttons to amber-700/800 for a 4.6:1 contrast ratio with white text (AA).
…sses Add missing amber background utilities so buttons render
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )