@checkstack/auth-frontend 0.6.5 → 0.6.7
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 +38 -0
- package/package.json +6 -6
- package/src/components/LoginPage.tsx +6 -27
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# @checkstack/auth-frontend
|
|
2
2
|
|
|
3
|
+
## 0.6.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- b995afb: Tidy the user menu: move "Script packages" and "Secrets" into the **Configuration** group (the now-empty **Administration** group is gone), and display the user-menu groups in alphabetical order instead of a hardcoded canonical order.
|
|
8
|
+
- Updated dependencies [b995afb]
|
|
9
|
+
- Updated dependencies [270ef29]
|
|
10
|
+
- Updated dependencies [b995afb]
|
|
11
|
+
- Updated dependencies [b995afb]
|
|
12
|
+
- Updated dependencies [b995afb]
|
|
13
|
+
- Updated dependencies [b995afb]
|
|
14
|
+
- Updated dependencies [270ef29]
|
|
15
|
+
- Updated dependencies [b995afb]
|
|
16
|
+
- Updated dependencies [b995afb]
|
|
17
|
+
- Updated dependencies [b995afb]
|
|
18
|
+
- Updated dependencies [270ef29]
|
|
19
|
+
- Updated dependencies [b995afb]
|
|
20
|
+
- Updated dependencies [270ef29]
|
|
21
|
+
- @checkstack/ui@1.12.0
|
|
22
|
+
|
|
23
|
+
## 0.6.6
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [e2d6f25]
|
|
28
|
+
- Updated dependencies [41c77f4]
|
|
29
|
+
- Updated dependencies [41c77f4]
|
|
30
|
+
- Updated dependencies [41c77f4]
|
|
31
|
+
- Updated dependencies [41c77f4]
|
|
32
|
+
- Updated dependencies [4832e33]
|
|
33
|
+
- Updated dependencies [6d52276]
|
|
34
|
+
- Updated dependencies [35bc682]
|
|
35
|
+
- Updated dependencies [c39ee69]
|
|
36
|
+
- @checkstack/frontend-api@0.6.0
|
|
37
|
+
- @checkstack/ui@1.11.0
|
|
38
|
+
- @checkstack/common@0.12.0
|
|
39
|
+
- @checkstack/auth-common@0.7.2
|
|
40
|
+
|
|
3
41
|
## 0.6.5
|
|
4
42
|
|
|
5
43
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/auth-frontend",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"license": "Elastic-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.tsx",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
"test:e2e": "bunx playwright test"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@checkstack/frontend-api": "0.
|
|
22
|
-
"@checkstack/common": "0.
|
|
23
|
-
"@checkstack/ui": "1.
|
|
21
|
+
"@checkstack/frontend-api": "0.6.0",
|
|
22
|
+
"@checkstack/common": "0.12.0",
|
|
23
|
+
"@checkstack/ui": "1.11.0",
|
|
24
24
|
"react": "^18.2.0",
|
|
25
25
|
"react-router-dom": "^6.22.0",
|
|
26
26
|
"lucide-react": "^0.344.0",
|
|
27
27
|
"better-auth": "^1.1.8",
|
|
28
|
-
"@checkstack/auth-common": "0.7.
|
|
28
|
+
"@checkstack/auth-common": "0.7.2"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"typescript": "^5.0.0",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"@playwright/test": "^1.49.0",
|
|
34
34
|
"@checkstack/test-utils-frontend": "0.0.5",
|
|
35
35
|
"@checkstack/tsconfig": "0.0.7",
|
|
36
|
-
"@checkstack/scripts": "0.3.
|
|
36
|
+
"@checkstack/scripts": "0.3.4"
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -418,19 +418,6 @@ export const LogoutMenuItem = (_props: UserMenuItemsContext) => {
|
|
|
418
418
|
);
|
|
419
419
|
};
|
|
420
420
|
|
|
421
|
-
/**
|
|
422
|
-
* Canonical user-menu group labels and their display order. Extensions tag
|
|
423
|
-
* themselves via `group` on their slot registration; anything that doesn't
|
|
424
|
-
* match a known group falls into a trailing label-less bucket.
|
|
425
|
-
*/
|
|
426
|
-
const USER_MENU_GROUP_ORDER: readonly string[] = [
|
|
427
|
-
"Workspace",
|
|
428
|
-
"Reliability",
|
|
429
|
-
"Configuration",
|
|
430
|
-
"Documentation",
|
|
431
|
-
"Account",
|
|
432
|
-
];
|
|
433
|
-
|
|
434
421
|
type UserMenuExtension = Extension<typeof UserMenuItemsSlot>;
|
|
435
422
|
|
|
436
423
|
function groupTopExtensions(
|
|
@@ -453,20 +440,12 @@ function groupTopExtensions(
|
|
|
453
440
|
}
|
|
454
441
|
}
|
|
455
442
|
|
|
456
|
-
|
|
457
|
-
//
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
buckets.delete(name);
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
// Any extra groups plugins introduced — render in encounter order, alphabetised.
|
|
466
|
-
const extras = [...buckets.entries()].toSorted(([a], [b]) => a.localeCompare(b));
|
|
467
|
-
for (const [name, items] of extras) {
|
|
468
|
-
result.push({ label: name, items });
|
|
469
|
-
}
|
|
443
|
+
// Groups are displayed alphabetically by label (items keep their order
|
|
444
|
+
// within a group).
|
|
445
|
+
const result: Array<{ label: string | undefined; items: UserMenuExtension[] }> =
|
|
446
|
+
[...buckets.entries()]
|
|
447
|
+
.toSorted(([a], [b]) => a.localeCompare(b))
|
|
448
|
+
.map(([name, items]) => ({ label: name, items }));
|
|
470
449
|
// Untagged extensions go last with no header.
|
|
471
450
|
if (ungrouped.length > 0) {
|
|
472
451
|
result.push({ label: undefined, items: ungrouped });
|