@checkstack/dashboard-frontend 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +113 -0
- package/package.json +1 -1
- package/src/Dashboard.tsx +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,118 @@
|
|
|
1
1
|
# @checkstack/dashboard-frontend
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 8e43507: # Teams and Resource-Level Access Control
|
|
8
|
+
|
|
9
|
+
This release introduces a comprehensive Teams system for organizing users and controlling access to resources at a granular level.
|
|
10
|
+
|
|
11
|
+
## Features
|
|
12
|
+
|
|
13
|
+
### Team Management
|
|
14
|
+
|
|
15
|
+
- Create, update, and delete teams with name and description
|
|
16
|
+
- Add/remove users from teams
|
|
17
|
+
- Designate team managers with elevated privileges
|
|
18
|
+
- View team membership and manager status
|
|
19
|
+
|
|
20
|
+
### Resource-Level Access Control
|
|
21
|
+
|
|
22
|
+
- Grant teams access to specific resources (systems, health checks, incidents, maintenances)
|
|
23
|
+
- Configure read-only or manage permissions per team
|
|
24
|
+
- Resource-level "Team Only" mode that restricts access exclusively to team members
|
|
25
|
+
- Separate `resourceAccessSettings` table for resource-level settings (not per-grant)
|
|
26
|
+
- Automatic cleanup of grants when teams are deleted (database cascade)
|
|
27
|
+
|
|
28
|
+
### Middleware Integration
|
|
29
|
+
|
|
30
|
+
- Extended `autoAuthMiddleware` to support resource access checks
|
|
31
|
+
- Single-resource pre-handler validation for detail endpoints
|
|
32
|
+
- Automatic list filtering for collection endpoints
|
|
33
|
+
- S2S endpoints for access verification
|
|
34
|
+
|
|
35
|
+
### Frontend Components
|
|
36
|
+
|
|
37
|
+
- `TeamsTab` component for managing teams in Auth Settings
|
|
38
|
+
- `TeamAccessEditor` component for assigning team access to resources
|
|
39
|
+
- Resource-level "Team Only" toggle in `TeamAccessEditor`
|
|
40
|
+
- Integration into System, Health Check, Incident, and Maintenance editors
|
|
41
|
+
|
|
42
|
+
## Breaking Changes
|
|
43
|
+
|
|
44
|
+
### API Response Format Changes
|
|
45
|
+
|
|
46
|
+
List endpoints now return objects with named keys instead of arrays directly:
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
// Before
|
|
50
|
+
const systems = await catalogApi.getSystems();
|
|
51
|
+
|
|
52
|
+
// After
|
|
53
|
+
const { systems } = await catalogApi.getSystems();
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Affected endpoints:
|
|
57
|
+
|
|
58
|
+
- `catalog.getSystems` → `{ systems: [...] }`
|
|
59
|
+
- `healthcheck.getConfigurations` → `{ configurations: [...] }`
|
|
60
|
+
- `incident.listIncidents` → `{ incidents: [...] }`
|
|
61
|
+
- `maintenance.listMaintenances` → `{ maintenances: [...] }`
|
|
62
|
+
|
|
63
|
+
### User Identity Enrichment
|
|
64
|
+
|
|
65
|
+
`RealUser` and `ApplicationUser` types now include `teamIds: string[]` field with team memberships.
|
|
66
|
+
|
|
67
|
+
## Documentation
|
|
68
|
+
|
|
69
|
+
See `docs/backend/teams.md` for complete API reference and integration guide.
|
|
70
|
+
|
|
71
|
+
### Patch Changes
|
|
72
|
+
|
|
73
|
+
- Updated dependencies [8e43507]
|
|
74
|
+
- Updated dependencies [97c5a6b]
|
|
75
|
+
- Updated dependencies [97c5a6b]
|
|
76
|
+
- Updated dependencies [8e43507]
|
|
77
|
+
- Updated dependencies [8e43507]
|
|
78
|
+
- Updated dependencies [97c5a6b]
|
|
79
|
+
- @checkstack/ui@0.1.0
|
|
80
|
+
- @checkstack/catalog-frontend@0.1.0
|
|
81
|
+
- @checkstack/auth-frontend@0.1.0
|
|
82
|
+
- @checkstack/command-frontend@0.0.5
|
|
83
|
+
- @checkstack/catalog-common@1.0.0
|
|
84
|
+
- @checkstack/common@0.1.0
|
|
85
|
+
- @checkstack/healthcheck-common@0.2.0
|
|
86
|
+
- @checkstack/incident-common@0.1.0
|
|
87
|
+
- @checkstack/maintenance-common@0.1.0
|
|
88
|
+
- @checkstack/command-common@0.0.4
|
|
89
|
+
- @checkstack/frontend-api@0.0.4
|
|
90
|
+
- @checkstack/notification-common@0.0.4
|
|
91
|
+
- @checkstack/signal-frontend@0.0.5
|
|
92
|
+
|
|
93
|
+
## 0.0.4
|
|
94
|
+
|
|
95
|
+
### Patch Changes
|
|
96
|
+
|
|
97
|
+
- Updated dependencies [f5b1f49]
|
|
98
|
+
- Updated dependencies [f5b1f49]
|
|
99
|
+
- Updated dependencies [f5b1f49]
|
|
100
|
+
- Updated dependencies [f5b1f49]
|
|
101
|
+
- Updated dependencies [f5b1f49]
|
|
102
|
+
- @checkstack/auth-frontend@0.0.4
|
|
103
|
+
- @checkstack/healthcheck-common@0.1.0
|
|
104
|
+
- @checkstack/common@0.0.3
|
|
105
|
+
- @checkstack/ui@0.0.4
|
|
106
|
+
- @checkstack/catalog-frontend@0.0.4
|
|
107
|
+
- @checkstack/catalog-common@0.0.3
|
|
108
|
+
- @checkstack/command-common@0.0.3
|
|
109
|
+
- @checkstack/command-frontend@0.0.4
|
|
110
|
+
- @checkstack/frontend-api@0.0.3
|
|
111
|
+
- @checkstack/incident-common@0.0.3
|
|
112
|
+
- @checkstack/maintenance-common@0.0.3
|
|
113
|
+
- @checkstack/notification-common@0.0.3
|
|
114
|
+
- @checkstack/signal-frontend@0.0.4
|
|
115
|
+
|
|
3
116
|
## 0.0.3
|
|
4
117
|
|
|
5
118
|
### Patch Changes
|
package/package.json
CHANGED
package/src/Dashboard.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useState, useCallback } from "react";
|
|
2
2
|
import { useNavigate } from "react-router-dom";
|
|
3
|
-
import {
|
|
4
|
-
useApi,
|
|
5
|
-
rpcApiRef,
|
|
6
|
-
ExtensionSlot,
|
|
7
|
-
} from "@checkstack/frontend-api";
|
|
3
|
+
import { useApi, rpcApiRef, ExtensionSlot } from "@checkstack/frontend-api";
|
|
8
4
|
import { catalogApiRef } from "@checkstack/catalog-frontend";
|
|
9
5
|
import {
|
|
10
6
|
catalogRoutes,
|
|
@@ -136,7 +132,7 @@ export const Dashboard: React.FC = () => {
|
|
|
136
132
|
incidentApi.listIncidents({ includeResolved: false }),
|
|
137
133
|
maintenanceApi.listMaintenances({ status: "in_progress" }),
|
|
138
134
|
])
|
|
139
|
-
.then(([groups, systems, incidents, maintenances]) => {
|
|
135
|
+
.then(([groups, { systems }, { incidents }, { maintenances }]) => {
|
|
140
136
|
// Set overview statistics
|
|
141
137
|
setSystemsCount(systems.length);
|
|
142
138
|
setActiveIncidentsCount(incidents.length);
|