Conversation
…3460) * feat(isms): add monitoring & measurement register with clause 9.1 document (CS-723) Adds the 8th ISMS document type 'monitoring' (ISO 27001 Clause 9.1): - IsmsMetric + IsmsMeasurement models; nine seeded default metrics (seed-if-missing by metricKey, never destructive) - Measurements are append-style timestamped records: recordedAt and enteredById are server-set and immutable, so backfilled entries for a historical period visibly carry their true recording date - Recording values does not invalidate document approval; metric field edits do - Generic register CRUD ('metrics' + 'measurements') plus a transactional bulk endpoint for the one-save Metrics-due / backfill views - Pure period math (metric-periods.ts): monthly/quarterly period keys, missing-period listing, and the most-recent-period overdue signal - Clause 9.1 submit gate (>=1 active metric, cadence on every active one) enforced inside the submitForApproval transaction - Document export: Purpose / Scope / metrics table (people + current value resolved and frozen per published version) / Analysis / Sign-off - resolveDocumentPlans now merges definition fallbacks for types missing a seeded template, so a newly shipped type provisions before the template seed re-runs * feat(app): add isms monitoring page with metrics due, backfill, and history (CS-723) Compliance > ISMS > Monitoring, the clause 9.1 register UI: - Metrics register with the nine seeded defaults: inline edit, deactivate/ reactivate (the honest remove for seeded metrics), delete for custom ones - 'Metrics due' one-save bulk entry across every due and overdue period, with per-row 'Same as last period'; the same grid serves per-metric and cross-metric backfill (backfilled values keep today's recorded-on date) - Measurement history per metric with visible period gaps, manual record form for corrections, and CSV export for auditor sampling - Overdue signal (visual only) on metric rows and a 'Metrics overdue' tile on the ISMS overview, fed by ensure-setup - Clause 9.1 submit gate mirrored client-side (disables Submit with the reason); period math mirrored from the API in monitoring-periods.ts --------- Co-authored-by: Tofik Hasanov <annexcies@gmail.com> Co-authored-by: Tofik Hasanov <72318342+tofikwest@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
🎉 This PR is included in version 3.105.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.
Summary by cubic
Adds the ISMS Monitoring & Measurement document (ISO 27001 clause 9.1) with a metrics register, seeded defaults, measurement history, export, and UI, including overdue signals and bulk entry. Implements new DB models and export/support flows to satisfy Linear CS-723.
New Features
Migration
monitoringdocument type.Written for commit 585e162. Summary will update on new commits.