@checkstack/ui 0.5.1 → 0.5.3
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 +29 -0
- package/package.json +6 -6
- package/src/components/StatusUpdateTimeline.tsx +6 -6
- package/src/components/Tabs.tsx +1 -0
- package/bunfig.toml +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @checkstack/ui
|
|
2
2
|
|
|
3
|
+
## 0.5.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e5079e1: Add contacts management to system editor
|
|
8
|
+
|
|
9
|
+
- **catalog-frontend**: New `ContactsEditor` component allows adding/removing platform users and external mailboxes as system contacts directly from the system editor dialog
|
|
10
|
+
- **catalog-common**: Added `instanceAccess` override to contacts RPC endpoints for correct single-resource RLAC checking
|
|
11
|
+
- **ui**: Fixed Tabs component to use `type="button"` to prevent form submission when used inside forms
|
|
12
|
+
|
|
13
|
+
- 9551fd7: Fix creator display in incident and maintenance status updates
|
|
14
|
+
|
|
15
|
+
- Show the creator's profile name instead of UUID in status updates
|
|
16
|
+
- For maintenances, now properly displays the creator name (was missing)
|
|
17
|
+
- For incidents, replaces UUID with human-readable profile name
|
|
18
|
+
- System-generated updates (automatic maintenance transitions) show no creator
|
|
19
|
+
|
|
20
|
+
## 0.5.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 0b9fc58: Fix workspace:\* protocol resolution in published packages
|
|
25
|
+
|
|
26
|
+
Published packages now correctly have resolved dependency versions instead of `workspace:*` references. This is achieved by using `bun publish` which properly resolves workspace protocol references.
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [0b9fc58]
|
|
29
|
+
- @checkstack/common@0.6.1
|
|
30
|
+
- @checkstack/frontend-api@0.3.4
|
|
31
|
+
|
|
3
32
|
## 0.5.1
|
|
4
33
|
|
|
5
34
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/ui",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@checkstack/common": "
|
|
8
|
-
"@checkstack/frontend-api": "
|
|
7
|
+
"@checkstack/common": "0.6.1",
|
|
8
|
+
"@checkstack/frontend-api": "0.3.4",
|
|
9
9
|
"@codemirror/autocomplete": "^6.20.0",
|
|
10
10
|
"@codemirror/lang-json": "^6.0.2",
|
|
11
11
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"typescript": "^5.0.0",
|
|
38
38
|
"@types/react": "^18.2.0",
|
|
39
|
-
"@checkstack/test-utils-frontend": "
|
|
40
|
-
"@checkstack/tsconfig": "
|
|
41
|
-
"@checkstack/scripts": "
|
|
39
|
+
"@checkstack/test-utils-frontend": "0.0.3",
|
|
40
|
+
"@checkstack/tsconfig": "0.0.3",
|
|
41
|
+
"@checkstack/scripts": "0.1.1"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"typecheck": "tsc --noEmit",
|
|
@@ -124,12 +124,12 @@ export interface StatusUpdate<TStatus extends string = string> {
|
|
|
124
124
|
message: string;
|
|
125
125
|
statusChange?: TStatus;
|
|
126
126
|
createdAt: Date | string;
|
|
127
|
-
|
|
127
|
+
createdByName?: string;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
export interface StatusUpdateTimelineProps<
|
|
131
131
|
TStatus extends string,
|
|
132
|
-
T extends StatusUpdate<TStatus
|
|
132
|
+
T extends StatusUpdate<TStatus>,
|
|
133
133
|
> {
|
|
134
134
|
/** Array of status updates to display */
|
|
135
135
|
updates: T[];
|
|
@@ -154,7 +154,7 @@ export interface StatusUpdateTimelineProps<
|
|
|
154
154
|
*/
|
|
155
155
|
export function StatusUpdateTimeline<
|
|
156
156
|
TStatus extends string,
|
|
157
|
-
T extends StatusUpdate<TStatus
|
|
157
|
+
T extends StatusUpdate<TStatus>,
|
|
158
158
|
>({
|
|
159
159
|
updates,
|
|
160
160
|
renderStatusBadge,
|
|
@@ -205,13 +205,13 @@ export function StatusUpdateTimeline<
|
|
|
205
205
|
<span>
|
|
206
206
|
{format(
|
|
207
207
|
new Date(update.date),
|
|
208
|
-
showTimeline ? "MMM d, yyyy 'at' HH:mm" : "MMM d, HH:mm"
|
|
208
|
+
showTimeline ? "MMM d, yyyy 'at' HH:mm" : "MMM d, HH:mm",
|
|
209
209
|
)}
|
|
210
210
|
</span>
|
|
211
|
-
{update.
|
|
211
|
+
{update.createdByName && (
|
|
212
212
|
<>
|
|
213
213
|
<span>•</span>
|
|
214
|
-
<span>by {update.
|
|
214
|
+
<span>by {update.createdByName}</span>
|
|
215
215
|
</>
|
|
216
216
|
)}
|
|
217
217
|
</div>
|
package/src/components/Tabs.tsx
CHANGED
package/bunfig.toml
DELETED