@checkstack/ui 0.5.2 → 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 CHANGED
@@ -1,5 +1,22 @@
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
+
3
20
  ## 0.5.2
4
21
 
5
22
  ### Patch Changes
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@checkstack/ui",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "dependencies": {
7
- "@checkstack/common": "0.6.0",
8
- "@checkstack/frontend-api": "0.3.3",
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": "0.0.2",
40
- "@checkstack/tsconfig": "0.0.2",
41
- "@checkstack/scripts": "0.1.0"
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
- createdBy?: string;
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.createdBy && (
211
+ {update.createdByName && (
212
212
  <>
213
213
  <span>•</span>
214
- <span>by {update.createdBy}</span>
214
+ <span>by {update.createdByName}</span>
215
215
  </>
216
216
  )}
217
217
  </div>
@@ -69,6 +69,7 @@ export const Tabs: React.FC<TabsProps> = ({
69
69
  return (
70
70
  <button
71
71
  key={item.id}
72
+ type="button"
72
73
  ref={(el) => {
73
74
  if (el) {
74
75
  tabRefs.current.set(item.id, el);