Commit 30516d4
feat(app, api, framework-editor): restructure compliance app and add framework editor CLI
* feat(app, api, framework-editor): restructure compliance app and add framework editor CLI
Restructure the main compliance app to introduce a dedicated /overview
landing page and a proper /frameworks table view with drill-down into
requirements, controls, and their linked artifacts.
App restructure:
- Move dashboard (charts, todos, findings) from /frameworks to /overview
- Create frameworks table page at /frameworks with compliance %, status
- Add control detail as sub-page under /frameworks/:id/controls/:id
- Add status and compliance columns to requirements and controls tables
- Enhance control satisfaction logic with document freshness (6-month)
- Redirect /controls to /frameworks, remove from sidebar
- Remove Advanced Mode toggle from settings
- Migrate sub-pages from PageWithBreadcrumb to PageLayout + DS Breadcrumb
- Migrate tabs to DS Tabs variant="underline" pattern
- Move shared types/hooks to @/ paths, eliminate deep relative imports
API:
- Update frameworks service to include controlDocumentTypes per control
- Fetch evidenceSubmissions for document freshness checks
- Add framework import/export endpoints and DTOs
Framework editor CLI (new package):
- Add CLI tool for managing frameworks, controls, requirements, policies, tasks
- Device auth flow, session management, config persistence
- Commands: framework, control, requirement, policy, task, control-relations
- Migration scripts: import-prescient, rebuild-controls, replace-policies,
replace-tasks, link-policies-tasks
- API client with error handling and formatted output
Framework editor app:
- Add ImportFrameworkDialog for bulk framework import
- Update DataTable, frameworks and requirements pages
* fix(FrameworkDeleteDialog, FrameworkRequirements): update button type and add evidenceSubmissions dependency
- Changed button type to 'button' in FrameworkDeleteDialog to prevent form submission on cancel.
- Added evidenceSubmissions to dependency array in FrameworkRequirements to ensure proper reactivity.
* fix: update redirects from frameworks to overview across admin layout and components
- Changed redirect paths from '/frameworks' to '/overview' in AdminLayout, ImpersonationBanner, MembersTab, and ControlsPage.
- Updated tests to reflect the new redirect behavior.
* fix(frameworks-upsert): update content handling in upsertOrgFrameworkStructure
- Changed content assignment to ensure it is always an array, using { set: Array.isArray(pt.content) ? pt.content : [pt.content] } for proper Prisma input handling.
* fix(frameworks-controls): enhance breadcrumb navigation with requirement links
- Updated breadcrumb items to include links to associated requirements when available, improving navigation within the framework control page.
* refactor(requirements): remove RequirementControlsTableColumns component and optimize control status retrieval
- Deleted the RequirementControlsTableColumns component to streamline the codebase.
- Updated getControlStatus function to improve performance by sorting evidence submissions before processing.
* chore: remove deprecated scripts and CSV file related to Prescient framework
- Deleted prescient.csv and associated import, link, rebuild, replace policies, replace tasks, and test prompt scripts to clean up the codebase and remove unused functionality.
- This change streamlines the framework editor CLI by eliminating obsolete components.
* chore: remove deprecated scripts and CSV file related to Prescient framework
- Deleted prescient.csv and associated import, link, rebuild, replace policies, replace tasks, and test prompt scripts to clean up the codebase and remove unused functionality.
- This change streamlines the framework editor CLI by eliminating obsolete components.
---------
Co-authored-by: Lewis Carhart <lewis@trycomp.ai>1 parent ffb260b commit 30516d4
87 files changed
Lines changed: 4250 additions & 935 deletions
File tree
- apps
- api/src
- framework-editor/framework
- dto
- frameworks
- app/src
- app/(app)/[orgId]
- admin
- components
- organizations/[adminOrgId]/components
- components
- controls
- [controlId]/components
- frameworks
- [frameworkInstanceId]
- components
- controls/[controlId]
- requirements/[requirementKey]
- components
- table
- components
- data
- lib
- overview
- components
- policies/[policyId]/components
- settings
- components
- hooks
- lib
- types
- framework-editor
- app
- (pages)/frameworks
- [frameworkId]
- components
- components
- prisma
- packages
- docs
- framework-editor-cli
- src
- commands
- lib
- ui/src/components/editor/utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 219 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
0 commit comments