@cat-factory/app 0.224.1 → 0.225.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/app/components/settings/ApiTokensPanel.vue +12 -4
- package/app/stores/publicApiKeys.spec.ts +1 -0
- package/i18n/locales/de.json +1 -0
- package/i18n/locales/en.json +1 -0
- package/i18n/locales/es.json +1 -0
- package/i18n/locales/fr.json +1 -0
- package/i18n/locales/he.json +1 -0
- package/i18n/locales/it.json +1 -0
- package/i18n/locales/ja.json +1 -0
- package/i18n/locales/pl.json +1 -0
- package/i18n/locales/tr.json +1 -0
- package/i18n/locales/uk.json +1 -0
- package/package.json +2 -2
|
@@ -38,12 +38,20 @@ const auth = useAuthStore()
|
|
|
38
38
|
const store = usePublicApiKeysStore()
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
|
-
* The minter to attribute a key to.
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
41
|
+
* The minter to attribute a key to. When the minter is the signed-in user we show a localized
|
|
42
|
+
* "you"; for another person, the raw `usr_*` id (the list has no user-name lookup, so the audit id
|
|
43
|
+
* is the honest, non-misleading thing to show).
|
|
44
|
+
*
|
|
45
|
+
* A key PROVISIONED HEADLESSLY (`POST /api/v1/keys`) has no user and names the KEY that minted
|
|
46
|
+
* it instead. Reading `createdByKeyId` here is not a nicety: a headless mint stores a null user,
|
|
47
|
+
* so without this branch it would render exactly like a key that predates the audit column, and
|
|
48
|
+
* "nobody knows who made this" would be shown for the one case the platform knows precisely.
|
|
49
|
+
* `null` stays reserved for genuinely unattributed keys, where the row omits the segment.
|
|
45
50
|
*/
|
|
46
51
|
function minterLabel(key: PublicApiKey): string | null {
|
|
52
|
+
if (key.createdByKeyId) {
|
|
53
|
+
return t('settings.apiTokens.list.createdByKey', { id: key.createdByKeyId })
|
|
54
|
+
}
|
|
47
55
|
if (!key.createdByUserId) return null
|
|
48
56
|
return key.createdByUserId === auth.user?.id
|
|
49
57
|
? t('settings.apiTokens.list.createdByYou')
|
package/i18n/locales/de.json
CHANGED
package/i18n/locales/en.json
CHANGED
package/i18n/locales/es.json
CHANGED
package/i18n/locales/fr.json
CHANGED
package/i18n/locales/he.json
CHANGED
package/i18n/locales/it.json
CHANGED
package/i18n/locales/ja.json
CHANGED
package/i18n/locales/pl.json
CHANGED
package/i18n/locales/tr.json
CHANGED
package/i18n/locales/uk.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cat-factory/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.225.0",
|
|
4
4
|
"description": "Reusable Nuxt layer for the Agent Architecture Board SPA (components, stores, composables, pages). Consume it from a thin deployment app via `extends: ['@cat-factory/app']` and point it at your backend with NUXT_PUBLIC_API_BASE. See deploy/frontend for an example.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"valibot": "^1.4.2",
|
|
41
41
|
"vue": "3.5.40",
|
|
42
42
|
"wretch": "^3.0.9",
|
|
43
|
-
"@cat-factory/contracts": "0.
|
|
43
|
+
"@cat-factory/contracts": "0.242.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@toad-contracts/testing": "0.3.2",
|