@copilotz/directory 1.0.0-rc.49 → 1.0.0-rc.50
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/README.md +3 -2
- package/WORDS.md +1 -0
- package/package.json +2 -2
- package/views/web/style.d.ts +1 -1
- package/views/web/style.js +1 -0
- package/views/web/switcher.d.ts +11 -2
- package/views/web/switcher.js +23 -10
- package/views/web/words.d.ts +1 -1
- package/views/web/words.js +5 -0
- package/web.d.ts +2 -1
- package/web.js +10 -3
package/README.md
CHANGED
|
@@ -42,8 +42,9 @@ Deno.serve(dir.fetch);
|
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
In the browser, `directoryWeb` fills the web shell's `orgs` slot: the org switcher at the top of the
|
|
45
|
-
sidebar,
|
|
46
|
-
|
|
45
|
+
sidebar (on the rail, the sidebar folded, the org's face under the app's mark), going between orgs,
|
|
46
|
+
the org's page (`/org`, its sections the `orgSettings` resource's) and staff's console (`/console`).
|
|
47
|
+
Without it, the shell has no switcher:
|
|
47
48
|
|
|
48
49
|
```ts
|
|
49
50
|
import { directoryWeb } from "@copilotz/directory/web";
|
package/WORDS.md
CHANGED
|
@@ -171,6 +171,7 @@ Generated: `deno run -A packages/directory/tests/words.ts`.
|
|
|
171
171
|
| `shell.suspendTitle` | Suspend {name}? |
|
|
172
172
|
| `shell.switchingTo` | Switching to |
|
|
173
173
|
| `shell.switchOrg` | {name}: switch organization |
|
|
174
|
+
| `shell.switchOrgWaiting` | one: {name}: switch organization ({count} invitation) / other: {name}: switch organization ({count} invitations) |
|
|
174
175
|
| `shell.switchTo` | Switch to {name} |
|
|
175
176
|
| `shell.takeBack` | Take back |
|
|
176
177
|
| `shell.takeBackAbout` | Nobody can claim it after this, and that can't be undone. If someone still needs it, make them a new one. |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@copilotz/directory",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.50",
|
|
4
4
|
"description": "Many orgs behind one address: who signs in, which orgs they belong to, and going between them. A Copilotz plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"copilotz",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {},
|
|
57
57
|
"peerDependencies": {
|
|
58
58
|
"@types/react": "^19.3.0",
|
|
59
|
-
"copilotz": "1.0.0-rc.
|
|
59
|
+
"copilotz": "1.0.0-rc.50",
|
|
60
60
|
"react": "^19.3.1"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
package/views/web/style.d.ts
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* going between orgs, staff's line along the top, the org's page and staff's console. Only
|
|
4
4
|
* layout, on the theme's variables.
|
|
5
5
|
*/
|
|
6
|
-
export declare const STYLE = "\n/* The switcher, at the top of the sidebar beside the app's mark */\n.copilotz-org { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px;\n padding: 6px 8px 6px 7px; border: 1px solid transparent; border-radius: var(--radius-lg); background: transparent;\n color: var(--sidebar-foreground); text-align: left; cursor: pointer; transition: background-color .12s, border-color .12s; }\n.copilotz-org:hover, .copilotz-org[aria-expanded=true] { background: var(--sidebar-accent); }\n.copilotz-org[aria-expanded=true] { border-color: var(--sidebar-border); }\n.copilotz-org-text { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }\n.copilotz-org-name { overflow: hidden; font-family: var(--font-display); font-size: 14.5px; font-weight: 650;\n letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-org-sub { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden;\n color: var(--muted-foreground); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-org[data-staff] .copilotz-org-sub { color: var(--warning-text); font-weight: 620; }\n.copilotz-org[data-staff] > .copilotz-avatar { outline: 2px solid var(--warning); outline-offset: 1px; }\n.copilotz-org-chevron { flex: none; color: var(--muted-foreground); }\n.copilotz-org-dot { flex: none; display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px;\n border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); font-size: 11px;\n font-weight: 700; font-variant-numeric: tabular-nums; }\n\n/* What the switcher opens */\n.copilotz-orgs-box { display: grid; gap: 2px; }\n.copilotz-orgs-who { margin: 4px 8px 6px; overflow: hidden; color: var(--muted-foreground); font-size: 12.5px;\n text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-orgs-who b { color: var(--foreground); font-weight: 600; }\n.copilotz-orgs-staff { display: flex; align-items: flex-start; gap: 8px; margin: 0 2px 6px; padding: 9px 10px;\n border: 1px solid var(--warning-border); border-radius: var(--radius-md); background: var(--warning-soft);\n color: var(--warning-text); font-size: 12.5px; line-height: 1.45; }\n.copilotz-orgs-staff > .copilotz-icon { margin-top: 1px; }\n.copilotz-orgs-staff b { font-weight: 650; }\n.copilotz-orgs-staff-back { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: inherit;\n font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }\n.copilotz-orgs-list, .copilotz-orgs-invites ul { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }\n.copilotz-orgs-row, .copilotz-orgs-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;\n padding: 6px 8px; border: 0; border-radius: var(--radius-md); background: transparent; color: inherit;\n font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; outline: none; }\n.copilotz-orgs-row:hover, .copilotz-orgs-row:focus-visible, .copilotz-orgs-action:hover,\n.copilotz-orgs-action:focus-visible { background: var(--accent); color: var(--accent-foreground); }\n.copilotz-orgs-row:focus-visible, .copilotz-orgs-action:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }\n.copilotz-orgs-row[aria-current] { background: color-mix(in oklab, var(--primary-soft) 60%, transparent); }\n.copilotz-orgs-row[aria-disabled] { opacity: .62; cursor: not-allowed; }\n.copilotz-orgs-row-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }\n.copilotz-orgs-row-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-orgs-row-sub { color: var(--muted-foreground); font-size: 12px; }\n.copilotz-orgs-row-error { color: var(--destructive-text); font-size: 12px; white-space: normal; }\n.copilotz-orgs-check { flex: none; color: var(--primary-text); }\n.copilotz-orgs-invites { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }\n.copilotz-orgs-invites h3 { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; color: var(--muted-foreground);\n font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }\n.copilotz-orgs-invites ul { gap: 6px; }\n.copilotz-orgs-invite { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 0 2px; padding: 10px;\n border: 1px solid var(--primary-border); border-radius: var(--radius-lg);\n background: color-mix(in oklab, var(--primary-soft) 45%, var(--popover)); }\n.copilotz-orgs-invite-text { display: grid; gap: 1px; min-width: 0; }\n.copilotz-orgs-invite-name { margin: 0; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }\n.copilotz-orgs-invite-meta { margin: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.copilotz-orgs-invite-meta .copilotz-time { font-size: 12.5px; }\n.copilotz-orgs-invite-answers { display: flex; gap: 6px; margin-top: 8px; }\n.copilotz-orgs-actions { display: grid; gap: 1px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }\n.copilotz-orgs-action { min-height: 38px; color: var(--secondary-foreground); }\n.copilotz-orgs-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted-foreground); }\n.copilotz-orgs-icon-new { border: 1px dashed var(--input); border-radius: var(--radius-sm); }\n\n/* Making one */\n.copilotz-new-org { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }\n.copilotz-new-org-preview { padding-top: 25px; }\n\n/* Going into another org: over everything, until it's there; and a word once it is */\n.copilotz-switching { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;\n border: 0; background: transparent; color: var(--foreground); outline: none; }\n.copilotz-switching::backdrop { background: color-mix(in oklab, var(--background) 84%, transparent);\n -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: copilotz-switching .22s ease-out; }\n.copilotz-switching[open] { display: grid; place-items: center; animation: copilotz-switching .22s ease-out; }\n.copilotz-switching-box { display: grid; justify-items: center; text-align: center;\n animation: copilotz-switching-in .36s cubic-bezier(.2, .8, .2, 1); }\n.copilotz-switching-box .copilotz-avatar { box-shadow: var(--shadow-md); }\n.copilotz-switching-personal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full);\n background: var(--primary-soft); color: var(--primary-text); }\n.copilotz-switching-label { margin: 18px 0 2px; color: var(--muted-foreground); font-size: 13px; }\n.copilotz-switching-name { margin: 0 0 18px; max-width: min(520px, calc(100vw - 48px)); font-family: var(--font-display);\n font-size: 26px; font-weight: 680; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }\n.copilotz-switching .copilotz-spinner { color: var(--muted-foreground); }\n@keyframes copilotz-switching { from { opacity: 0; } }\n@keyframes copilotz-switching-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }\n.copilotz-arrived { position: fixed; z-index: 70; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));\n display: flex; align-items: center; gap: 9px; width: max-content; max-width: min(560px, calc(100vw - 32px));\n padding: 10px 16px;\n border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--popover);\n color: var(--popover-foreground); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.4;\n pointer-events: none; animation: copilotz-arrived 2.6s ease-in-out forwards; }\n.copilotz-arrived b { font-weight: 650; }\n.copilotz-arrived > .copilotz-icon { color: var(--success-text); }\n.copilotz-arrived[data-long] { border-radius: var(--radius-xl); animation-duration: 5.2s; }\n.copilotz-arrived[data-long] > .copilotz-icon { color: var(--info-text); }\n.copilotz-arrived[data-staff] { border-color: var(--warning-border); }\n.copilotz-arrived[data-staff] > .copilotz-icon { color: var(--warning-text); }\n@keyframes copilotz-arrived {\n 0% { opacity: 0; transform: translate(-50%, 10px); }\n 10%, 88% { opacity: 1; transform: translate(-50%, 0); }\n 100% { opacity: 0; transform: translate(-50%, 4px); }\n}\n\n/* Staff in someone's org: a line along the top, always */\n.copilotz-staff-line { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; background: var(--warning);\n pointer-events: none; }\n\n/* The org's page */\n.copilotz-org-held { margin-bottom: 12px; }\n.copilotz-org-tabs { position: sticky; top: 0; z-index: 4; display: flex; width: 100%; margin-top: -2px;\n background: var(--background); }\n.copilotz-org-tabs .copilotz-tab { padding: 0 10px; }\n.copilotz-org-section { padding-top: 22px; }\n.copilotz-org-loading { display: grid; gap: 14px; margin-top: 8px; }\n.copilotz-org-missing { display: grid; place-items: center; padding: 32px; }\n.copilotz-org-page .copilotz-page-badges .copilotz-badge { gap: 4px; }\n\n/* Staff's console: dense, calm */\n.console-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }\n.console-stat { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);\n background: var(--card); }\n.console-stat-label { color: var(--muted-foreground); font-size: 12px; font-weight: 600; }\n.console-stat-value { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.02em;\n line-height: 1.2; font-variant-numeric: tabular-nums; }\n.console-stat[data-tone=warning] .console-stat-value { color: var(--warning-text); }\n.console-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;\n margin: 22px 0 12px; }\n.console-search { flex: 1 1 280px; max-width: 420px; }\n.console-notice { margin-bottom: 12px; }\n.console-loading { display: grid; gap: 6px; }\n.console-table { container: console / inline-size; display: grid; border: 1px solid var(--border);\n border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }\n.console-row { display: grid; grid-template-columns: minmax(220px, 2.4fr) 64px 64px minmax(92px, .9fr) minmax(110px, 1fr) 92px 176px;\n align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 14px; font-size: 13.5px; }\n.console-row + .console-row { border-top: 1px solid var(--border); }\n.console-row:not(.console-head):hover { background: color-mix(in oklab, var(--muted) 45%, var(--card)); }\n.console-row[data-suspended] { background: color-mix(in oklab, var(--warning-soft) 35%, var(--card)); }\n.console-head { min-height: 38px; background: color-mix(in oklab, var(--muted) 55%, var(--card)); color: var(--muted-foreground);\n font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }\n.console-num { text-align: right; font-variant-numeric: tabular-nums; }\n.console-org { display: flex; align-items: center; gap: 11px; min-width: 0; }\n.console-org-text { display: grid; gap: 1px; min-width: 0; }\n.console-org-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-weight: 620;\n text-overflow: ellipsis; white-space: nowrap; }\n.console-org-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted-foreground);\n font-size: 12px; }\n.console-org-meta code { min-width: 0; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }\n.console-org-meta .copilotz-copy { margin: -4px 0; }\n.console-error { color: var(--destructive-text); font-size: 12px; }\n.console-active { color: var(--secondary-foreground); }\n.console-active .copilotz-time { font-size: 13px; }\n.console-placement { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted-foreground); }\n.console-placement code { min-width: 0; overflow: hidden; color: var(--secondary-foreground); font-size: 12.5px;\n text-overflow: ellipsis; white-space: nowrap; }\n.console-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }\n.console-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n.console-foot { margin: 12px 2px 0; color: var(--muted-foreground); font-size: 12.5px; }\n.console-dialog-text { margin: 0 0 12px; color: var(--secondary-foreground); font-size: 14px; line-height: 1.55; }\n.console-move { display: grid; gap: 4px; }\n.console-move-from { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted-foreground);\n font-size: 13px; }\n.console-move-from code { padding: 2px 8px; border-radius: var(--radius-sm); background: var(--muted);\n color: var(--foreground); font-size: 12.5px; }\n.console-mono input { font-family: var(--font-mono); }\n.console-delete { display: grid; gap: 14px; }\n.console-export { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--primary-text);\n font-size: 13.5px; font-weight: 560; text-underline-offset: 3px; }\n.console-name { font-family: var(--font-mono); font-weight: 650; }\n@container console (max-width: 900px) {\n .console-row.console-head { display: none; }\n .console-row > [data-label=Placement] { display: none; }\n .console-row:not([data-suspended]) > [data-label=Status] { display: none; }\n .console-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 10px 12px 14px; }\n .console-row::after { content: \"\"; order: 1; flex-basis: 100%; height: 0; }\n .console-org { flex: 1 1 0; }\n .console-row > [data-label] { order: 2; color: var(--muted-foreground); font-size: 12.5px; text-align: left; }\n .console-row > [data-label=People] { margin-left: 41px; }\n .console-row > [data-label=People]::before, .console-row > [data-label=Spaces]::before,\n .console-row > [data-label=\"Last active\"]::before { content: attr(data-label) \" \"; }\n .console-row > [data-label=People]::before, .console-row > [data-label=Spaces]::before,\n .console-row > [data-label=\"Last active\"]::before { color: var(--muted-foreground); }\n .console-row > [data-label] .copilotz-time, .console-row > [data-label] code { color: var(--foreground); font-size: 12.5px; }\n .console-row > .console-num { color: var(--foreground); }\n}\n@container console (max-width: 520px) {\n .console-actions .copilotz-button { padding: 0 9px; }\n}\n@media (max-width: 760px) {\n .console-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .console-search { max-width: none; }\n .copilotz-org-tabs { position: static; }\n}\n";
|
|
6
|
+
export declare const STYLE = "\n/* The switcher, at the top of the sidebar beside the app's mark */\n.copilotz-org { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 48px;\n padding: 6px 8px 6px 7px; border: 1px solid transparent; border-radius: var(--radius-lg); background: transparent;\n color: var(--sidebar-foreground); text-align: left; cursor: pointer; transition: background-color .12s, border-color .12s; }\n.copilotz-org:hover, .copilotz-org[aria-expanded=true] { background: var(--sidebar-accent); }\n.copilotz-org[aria-expanded=true] { border-color: var(--sidebar-border); }\n.copilotz-org-text { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.25; }\n.copilotz-org-name { overflow: hidden; font-family: var(--font-display); font-size: 14.5px; font-weight: 650;\n letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-org-sub { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden;\n color: var(--muted-foreground); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-org[data-staff] .copilotz-org-sub { color: var(--warning-text); font-weight: 620; }\n.copilotz-org[data-staff] > .copilotz-avatar { outline: 2px solid var(--warning); outline-offset: 1px; }\n.copilotz-org-rail[data-staff] > .copilotz-avatar { outline: 2px solid var(--warning); outline-offset: 1px; }\n.copilotz-org-chevron { flex: none; color: var(--muted-foreground); }\n.copilotz-org-dot { flex: none; display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px;\n border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); font-size: 11px;\n font-weight: 700; font-variant-numeric: tabular-nums; }\n\n/* What the switcher opens */\n.copilotz-orgs-box { display: grid; gap: 2px; }\n.copilotz-orgs-who { margin: 4px 8px 6px; overflow: hidden; color: var(--muted-foreground); font-size: 12.5px;\n text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-orgs-who b { color: var(--foreground); font-weight: 600; }\n.copilotz-orgs-staff { display: flex; align-items: flex-start; gap: 8px; margin: 0 2px 6px; padding: 9px 10px;\n border: 1px solid var(--warning-border); border-radius: var(--radius-md); background: var(--warning-soft);\n color: var(--warning-text); font-size: 12.5px; line-height: 1.45; }\n.copilotz-orgs-staff > .copilotz-icon { margin-top: 1px; }\n.copilotz-orgs-staff b { font-weight: 650; }\n.copilotz-orgs-staff-back { display: block; margin-top: 4px; padding: 0; border: 0; background: none; color: inherit;\n font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }\n.copilotz-orgs-list, .copilotz-orgs-invites ul { list-style: none; display: grid; gap: 1px; margin: 0; padding: 0; }\n.copilotz-orgs-row, .copilotz-orgs-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;\n padding: 6px 8px; border: 0; border-radius: var(--radius-md); background: transparent; color: inherit;\n font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; outline: none; }\n.copilotz-orgs-row:hover, .copilotz-orgs-row:focus-visible, .copilotz-orgs-action:hover,\n.copilotz-orgs-action:focus-visible { background: var(--accent); color: var(--accent-foreground); }\n.copilotz-orgs-row:focus-visible, .copilotz-orgs-action:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }\n.copilotz-orgs-row[aria-current] { background: color-mix(in oklab, var(--primary-soft) 60%, transparent); }\n.copilotz-orgs-row[aria-disabled] { opacity: .62; cursor: not-allowed; }\n.copilotz-orgs-row-text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }\n.copilotz-orgs-row-name { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }\n.copilotz-orgs-row-sub { color: var(--muted-foreground); font-size: 12px; }\n.copilotz-orgs-row-error { color: var(--destructive-text); font-size: 12px; white-space: normal; }\n.copilotz-orgs-check { flex: none; color: var(--primary-text); }\n.copilotz-orgs-invites { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }\n.copilotz-orgs-invites h3 { display: flex; align-items: center; gap: 6px; margin: 0 8px 8px; color: var(--muted-foreground);\n font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }\n.copilotz-orgs-invites ul { gap: 6px; }\n.copilotz-orgs-invite { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; margin: 0 2px; padding: 10px;\n border: 1px solid var(--primary-border); border-radius: var(--radius-lg);\n background: color-mix(in oklab, var(--primary-soft) 45%, var(--popover)); }\n.copilotz-orgs-invite-text { display: grid; gap: 1px; min-width: 0; }\n.copilotz-orgs-invite-name { margin: 0; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }\n.copilotz-orgs-invite-meta { margin: 0; color: var(--muted-foreground); font-size: 12.5px; line-height: 1.45; }\n.copilotz-orgs-invite-meta .copilotz-time { font-size: 12.5px; }\n.copilotz-orgs-invite-answers { display: flex; gap: 6px; margin-top: 8px; }\n.copilotz-orgs-actions { display: grid; gap: 1px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }\n.copilotz-orgs-action { min-height: 38px; color: var(--secondary-foreground); }\n.copilotz-orgs-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--muted-foreground); }\n.copilotz-orgs-icon-new { border: 1px dashed var(--input); border-radius: var(--radius-sm); }\n\n/* Making one */\n.copilotz-new-org { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 16px; }\n.copilotz-new-org-preview { padding-top: 25px; }\n\n/* Going into another org: over everything, until it's there; and a word once it is */\n.copilotz-switching { inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;\n border: 0; background: transparent; color: var(--foreground); outline: none; }\n.copilotz-switching::backdrop { background: color-mix(in oklab, var(--background) 84%, transparent);\n -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: copilotz-switching .22s ease-out; }\n.copilotz-switching[open] { display: grid; place-items: center; animation: copilotz-switching .22s ease-out; }\n.copilotz-switching-box { display: grid; justify-items: center; text-align: center;\n animation: copilotz-switching-in .36s cubic-bezier(.2, .8, .2, 1); }\n.copilotz-switching-box .copilotz-avatar { box-shadow: var(--shadow-md); }\n.copilotz-switching-personal { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full);\n background: var(--primary-soft); color: var(--primary-text); }\n.copilotz-switching-label { margin: 18px 0 2px; color: var(--muted-foreground); font-size: 13px; }\n.copilotz-switching-name { margin: 0 0 18px; max-width: min(520px, calc(100vw - 48px)); font-family: var(--font-display);\n font-size: 26px; font-weight: 680; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }\n.copilotz-switching .copilotz-spinner { color: var(--muted-foreground); }\n@keyframes copilotz-switching { from { opacity: 0; } }\n@keyframes copilotz-switching-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }\n.copilotz-arrived { position: fixed; z-index: 70; left: 50%; bottom: max(24px, env(safe-area-inset-bottom));\n display: flex; align-items: center; gap: 9px; width: max-content; max-width: min(560px, calc(100vw - 32px));\n padding: 10px 16px;\n border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--popover);\n color: var(--popover-foreground); box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.4;\n pointer-events: none; animation: copilotz-arrived 2.6s ease-in-out forwards; }\n.copilotz-arrived b { font-weight: 650; }\n.copilotz-arrived > .copilotz-icon { color: var(--success-text); }\n.copilotz-arrived[data-long] { border-radius: var(--radius-xl); animation-duration: 5.2s; }\n.copilotz-arrived[data-long] > .copilotz-icon { color: var(--info-text); }\n.copilotz-arrived[data-staff] { border-color: var(--warning-border); }\n.copilotz-arrived[data-staff] > .copilotz-icon { color: var(--warning-text); }\n@keyframes copilotz-arrived {\n 0% { opacity: 0; transform: translate(-50%, 10px); }\n 10%, 88% { opacity: 1; transform: translate(-50%, 0); }\n 100% { opacity: 0; transform: translate(-50%, 4px); }\n}\n\n/* Staff in someone's org: a line along the top, always */\n.copilotz-staff-line { position: fixed; z-index: 80; inset: 0 0 auto; height: 3px; background: var(--warning);\n pointer-events: none; }\n\n/* The org's page */\n.copilotz-org-held { margin-bottom: 12px; }\n.copilotz-org-tabs { position: sticky; top: 0; z-index: 4; display: flex; width: 100%; margin-top: -2px;\n background: var(--background); }\n.copilotz-org-tabs .copilotz-tab { padding: 0 10px; }\n.copilotz-org-section { padding-top: 22px; }\n.copilotz-org-loading { display: grid; gap: 14px; margin-top: 8px; }\n.copilotz-org-missing { display: grid; place-items: center; padding: 32px; }\n.copilotz-org-page .copilotz-page-badges .copilotz-badge { gap: 4px; }\n\n/* Staff's console: dense, calm */\n.console-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }\n.console-stat { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);\n background: var(--card); }\n.console-stat-label { color: var(--muted-foreground); font-size: 12px; font-weight: 600; }\n.console-stat-value { font-family: var(--font-display); font-size: 24px; font-weight: 650; letter-spacing: -.02em;\n line-height: 1.2; font-variant-numeric: tabular-nums; }\n.console-stat[data-tone=warning] .console-stat-value { color: var(--warning-text); }\n.console-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;\n margin: 22px 0 12px; }\n.console-search { flex: 1 1 280px; max-width: 420px; }\n.console-notice { margin-bottom: 12px; }\n.console-loading { display: grid; gap: 6px; }\n.console-table { container: console / inline-size; display: grid; border: 1px solid var(--border);\n border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }\n.console-row { display: grid; grid-template-columns: minmax(220px, 2.4fr) 64px 64px minmax(92px, .9fr) minmax(110px, 1fr) 92px 176px;\n align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px 8px 14px; font-size: 13.5px; }\n.console-row + .console-row { border-top: 1px solid var(--border); }\n.console-row:not(.console-head):hover { background: color-mix(in oklab, var(--muted) 45%, var(--card)); }\n.console-row[data-suspended] { background: color-mix(in oklab, var(--warning-soft) 35%, var(--card)); }\n.console-head { min-height: 38px; background: color-mix(in oklab, var(--muted) 55%, var(--card)); color: var(--muted-foreground);\n font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }\n.console-num { text-align: right; font-variant-numeric: tabular-nums; }\n.console-org { display: flex; align-items: center; gap: 11px; min-width: 0; }\n.console-org-text { display: grid; gap: 1px; min-width: 0; }\n.console-org-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-weight: 620;\n text-overflow: ellipsis; white-space: nowrap; }\n.console-org-meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted-foreground);\n font-size: 12px; }\n.console-org-meta code { min-width: 0; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }\n.console-org-meta .copilotz-copy { margin: -4px 0; }\n.console-error { color: var(--destructive-text); font-size: 12px; }\n.console-active { color: var(--secondary-foreground); }\n.console-active .copilotz-time { font-size: 13px; }\n.console-placement { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted-foreground); }\n.console-placement code { min-width: 0; overflow: hidden; color: var(--secondary-foreground); font-size: 12.5px;\n text-overflow: ellipsis; white-space: nowrap; }\n.console-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }\n.console-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n.console-foot { margin: 12px 2px 0; color: var(--muted-foreground); font-size: 12.5px; }\n.console-dialog-text { margin: 0 0 12px; color: var(--secondary-foreground); font-size: 14px; line-height: 1.55; }\n.console-move { display: grid; gap: 4px; }\n.console-move-from { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted-foreground);\n font-size: 13px; }\n.console-move-from code { padding: 2px 8px; border-radius: var(--radius-sm); background: var(--muted);\n color: var(--foreground); font-size: 12.5px; }\n.console-mono input { font-family: var(--font-mono); }\n.console-delete { display: grid; gap: 14px; }\n.console-export { display: inline-flex; align-items: center; gap: 6px; justify-self: start; color: var(--primary-text);\n font-size: 13.5px; font-weight: 560; text-underline-offset: 3px; }\n.console-name { font-family: var(--font-mono); font-weight: 650; }\n@container console (max-width: 900px) {\n .console-row.console-head { display: none; }\n .console-row > [data-label=Placement] { display: none; }\n .console-row:not([data-suspended]) > [data-label=Status] { display: none; }\n .console-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 12px 10px 12px 14px; }\n .console-row::after { content: \"\"; order: 1; flex-basis: 100%; height: 0; }\n .console-org { flex: 1 1 0; }\n .console-row > [data-label] { order: 2; color: var(--muted-foreground); font-size: 12.5px; text-align: left; }\n .console-row > [data-label=People] { margin-left: 41px; }\n .console-row > [data-label=People]::before, .console-row > [data-label=Spaces]::before,\n .console-row > [data-label=\"Last active\"]::before { content: attr(data-label) \" \"; }\n .console-row > [data-label=People]::before, .console-row > [data-label=Spaces]::before,\n .console-row > [data-label=\"Last active\"]::before { color: var(--muted-foreground); }\n .console-row > [data-label] .copilotz-time, .console-row > [data-label] code { color: var(--foreground); font-size: 12.5px; }\n .console-row > .console-num { color: var(--foreground); }\n}\n@container console (max-width: 520px) {\n .console-actions .copilotz-button { padding: 0 9px; }\n}\n@media (max-width: 760px) {\n .console-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }\n .console-search { max-width: none; }\n .copilotz-org-tabs { position: static; }\n}\n";
|
package/views/web/style.js
CHANGED
|
@@ -17,6 +17,7 @@ export const STYLE = `
|
|
|
17
17
|
color: var(--muted-foreground); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
|
18
18
|
.copilotz-org[data-staff] .copilotz-org-sub { color: var(--warning-text); font-weight: 620; }
|
|
19
19
|
.copilotz-org[data-staff] > .copilotz-avatar { outline: 2px solid var(--warning); outline-offset: 1px; }
|
|
20
|
+
.copilotz-org-rail[data-staff] > .copilotz-avatar { outline: 2px solid var(--warning); outline-offset: 1px; }
|
|
20
21
|
.copilotz-org-chevron { flex: none; color: var(--muted-foreground); }
|
|
21
22
|
.copilotz-org-dot { flex: none; display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 6px;
|
|
22
23
|
border-radius: var(--radius-full); background: var(--primary); color: var(--primary-foreground); font-size: 11px;
|
package/views/web/switcher.d.ts
CHANGED
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* app's identity sits (`orgs.switcher`: the org you're in, your standing
|
|
5
5
|
* there; opened, your orgs, Personal first-class, invitations waiting with a
|
|
6
6
|
* badge, to join or decline in place, a new org, the org's settings, and for
|
|
7
|
-
* staff, every org);
|
|
7
|
+
* staff, every org); on the rail, the sidebar folded (`orgs.rail`), the same
|
|
8
|
+
* as the org's face, named beside it, opening beside the rail; beside every
|
|
9
|
+
* page (`orgs.overlay`), the small dialog
|
|
8
10
|
* that makes an org and going between them: a short transition while the
|
|
9
11
|
* page starts over in the other org, and a word once it's there; and what
|
|
10
12
|
* the shell's menu and palette list (`useShellOrgs`). Staff in an org that
|
|
@@ -24,6 +26,11 @@ export declare const style: import("react").JSX.Element;
|
|
|
24
26
|
* of the sidebar, once they're known (the shell draws it once `useShellOrgs` answers).
|
|
25
27
|
*/
|
|
26
28
|
export declare const switcherView: (_: unknown, ctx: ViewContext<ReactNode>) => ReactNode;
|
|
29
|
+
/**
|
|
30
|
+
* The switcher on the rail (`orgs.rail`, the `orgs` slot's), the sidebar folded: the org's face,
|
|
31
|
+
* named beside it, its invitations counted at its corner; it opens the same choices, beside it.
|
|
32
|
+
*/
|
|
33
|
+
export declare const switcherRailView: (_: unknown, ctx: ViewContext<ReactNode>) => ReactNode;
|
|
27
34
|
/**
|
|
28
35
|
* Beside every page (`orgs.overlay`, the `orgs` slot's), outside the sidebar, which is a drawer
|
|
29
36
|
* on a phone: the line along the top while in an org as staff, the dialog that makes an org,
|
|
@@ -46,7 +53,7 @@ export declare function OrgFace({ org, person, size }: {
|
|
|
46
53
|
person: string;
|
|
47
54
|
size?: number;
|
|
48
55
|
}): ReactNode;
|
|
49
|
-
export declare function OrgSwitcher({ orgs, here, standing, staff, onNew }: {
|
|
56
|
+
export declare function OrgSwitcher({ orgs, here, standing, staff, onNew, rail }: {
|
|
50
57
|
orgs: Orgs;
|
|
51
58
|
/** The org the person is in. */
|
|
52
59
|
here?: Org;
|
|
@@ -55,6 +62,8 @@ export declare function OrgSwitcher({ orgs, here, standing, staff, onNew }: {
|
|
|
55
62
|
staff: boolean;
|
|
56
63
|
/** Opens the dialog that makes one. */
|
|
57
64
|
onNew(): void;
|
|
65
|
+
/** On the rail, the sidebar folded: the org's face alone, opening beside it. */
|
|
66
|
+
rail?: boolean;
|
|
58
67
|
}): ReactNode;
|
|
59
68
|
/** The small dialog that makes a team org: its name, then you're in it, its owner. */
|
|
60
69
|
export declare function NewOrg({ open, onClose }: {
|
package/views/web/switcher.js
CHANGED
|
@@ -5,7 +5,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
5
5
|
* app's identity sits (`orgs.switcher`: the org you're in, your standing
|
|
6
6
|
* there; opened, your orgs, Personal first-class, invitations waiting with a
|
|
7
7
|
* badge, to join or decline in place, a new org, the org's settings, and for
|
|
8
|
-
* staff, every org);
|
|
8
|
+
* staff, every org); on the rail, the sidebar folded (`orgs.rail`), the same
|
|
9
|
+
* as the org's face, named beside it, opening beside the rail; beside every
|
|
10
|
+
* page (`orgs.overlay`), the small dialog
|
|
9
11
|
* that makes an org and going between them: a short transition while the
|
|
10
12
|
* page starts over in the other org, and a word once it's there; and what
|
|
11
13
|
* the shell's menu and palette list (`useShellOrgs`). Staff in an org that
|
|
@@ -13,7 +15,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
13
15
|
* the window): what they do is on its record.
|
|
14
16
|
*/
|
|
15
17
|
import { useEffect, useRef, useState, useSyncExternalStore, } from "react";
|
|
16
|
-
import { Avatar, Badge, Button, Dialog, Field, Icon, Input, lang, message, Notice, Popover, Spinner, Time, } from "copilotz/web";
|
|
18
|
+
import { Avatar, Badge, Button, Dialog, Field, Icon, Input, lang, message, Notice, Popover, RailItem, Spinner, Time, } from "copilotz/web";
|
|
17
19
|
import { answerOrgInvite, arrived, asStaff, createOrg, enterOrg, orgName, useOrgs, useSwitching, } from "./orgs.js";
|
|
18
20
|
import { orgRoleName, runs, useStanding, } from "copilotz/plugins/interfaces/contract";
|
|
19
21
|
import { standingName } from "./lists.js";
|
|
@@ -26,13 +28,18 @@ export const style = _jsx("style", { href: "directory-web", precedence: "copilot
|
|
|
26
28
|
* of the sidebar, once they're known (the shell draws it once `useShellOrgs` answers).
|
|
27
29
|
*/
|
|
28
30
|
export const switcherView = (_, ctx) => (_jsx(Switcher, { call: ctx.call }));
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The switcher on the rail (`orgs.rail`, the `orgs` slot's), the sidebar folded: the org's face,
|
|
33
|
+
* named beside it, its invitations counted at its corner; it opens the same choices, beside it.
|
|
34
|
+
*/
|
|
35
|
+
export const switcherRailView = (_, ctx) => (_jsx(Switcher, { call: ctx.call, rail: true }));
|
|
36
|
+
function Switcher({ call, rail }) {
|
|
30
37
|
const orgs = useOrgs();
|
|
31
38
|
const ready = orgs.status === "ready";
|
|
32
39
|
const standing = useStanding(call, ready);
|
|
33
40
|
if (!ready)
|
|
34
41
|
return null;
|
|
35
|
-
return (_jsxs(_Fragment, { children: [style, _jsx(OrgSwitcher, { orgs: orgs.value, here: orgs.here, standing: standing, staff: asStaff(orgs.value), onNew: openNewOrg })] }));
|
|
42
|
+
return (_jsxs(_Fragment, { children: [style, _jsx(OrgSwitcher, { orgs: orgs.value, here: orgs.here, standing: standing, staff: asStaff(orgs.value), onNew: openNewOrg, rail: rail })] }));
|
|
36
43
|
}
|
|
37
44
|
/**
|
|
38
45
|
* Beside every page (`orgs.overlay`, the `orgs` slot's), outside the sidebar, which is a drawer
|
|
@@ -111,7 +118,7 @@ function subline(org, standing, staff) {
|
|
|
111
118
|
return say("justYou");
|
|
112
119
|
return standingName(standing) || " ";
|
|
113
120
|
}
|
|
114
|
-
export function OrgSwitcher({ orgs, here, standing, staff, onNew }) {
|
|
121
|
+
export function OrgSwitcher({ orgs, here, standing, staff, onNew, rail }) {
|
|
115
122
|
const [failed, setFailed] = useState();
|
|
116
123
|
/** Goes in or back as staff: the page starts over, or it stays and says why. */
|
|
117
124
|
const switchTo = (org, staff) => {
|
|
@@ -122,11 +129,17 @@ export function OrgSwitcher({ orgs, here, standing, staff, onNew }) {
|
|
|
122
129
|
const name = here ? orgName(here) : say("organization");
|
|
123
130
|
const mine = [...orgs.orgs].sort((a, b) => Number(b.kind === "personal") - Number(a.kind === "personal") ||
|
|
124
131
|
a.name.localeCompare(b.name, undefined, { sensitivity: "base" }));
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
132
|
+
const face = here
|
|
133
|
+
? _jsx(OrgFace, { org: here, person: orgs.person, size: 28 })
|
|
134
|
+
: _jsx(Avatar, { name: name, kind: "org", size: 28 });
|
|
135
|
+
const title = staff ? say("inAsStaffTitle", { name }) : say("switchOrg", { name });
|
|
136
|
+
return (_jsx(Popover, { label: say("yourOrgs"), width: 312, className: "copilotz-orgs", ...(rail ? { side: "end", align: "start" } : {}), trigger: (props) => rail
|
|
137
|
+
? (_jsx(RailItem, { ...props, className: "copilotz-org-rail", "data-staff": staff || undefined, leading: face,
|
|
138
|
+
// Staff hear first that they're in as staff; anyone else, what waits for them.
|
|
139
|
+
label: waiting && !staff ? say("switchOrgWaiting", { name, count: waiting }) : title, badge: waiting, tooltip: !props["aria-expanded"] }))
|
|
140
|
+
: (_jsxs("button", { type: "button", ...props, className: "copilotz-org", "data-staff": staff || undefined, title: title, children: [face, _jsxs("span", { className: "copilotz-org-text", children: [_jsx("span", { className: "copilotz-org-name", children: name }), _jsxs("span", { className: "copilotz-org-sub", children: [staff ? _jsx(Icon, { name: "shield", size: 12 }) : null, subline(here, standing, staff)] })] }), waiting
|
|
141
|
+
? (_jsx("span", { className: "copilotz-org-dot", "aria-label": say("invitationsCount", { count: waiting }), children: waiting }))
|
|
142
|
+
: null, _jsx(Icon, { name: "selector", size: 15, className: "copilotz-org-chevron" })] })), children: (close) => (_jsxs("div", { className: "copilotz-orgs-box", children: [_jsx("p", { className: "copilotz-orgs-who", children: say.nodes("signedInAs", { who: _jsx("b", { children: orgs.email ?? orgs.person }) }) }), staff && here
|
|
130
143
|
? (_jsxs("div", { className: "copilotz-orgs-staff", children: [_jsx(Icon, { name: "shield", size: 15 }), _jsxs("span", { children: [say.nodes("inAsStaff", { name: _jsx("b", { children: here.name }) }), standing?.role
|
|
131
144
|
? (_jsx("button", { type: "button", "data-popover-item": true, className: "copilotz-orgs-staff-back", onClick: () => switchTo(here, false), children: say("continueAs", { role: standingName(standing) }) }))
|
|
132
145
|
: null] })] }))
|
package/views/web/words.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* app's own words for them still hold; what an org is called where it shows is `directory.<key>`.
|
|
5
5
|
*/
|
|
6
6
|
import { type Phrase } from "copilotz/web/words";
|
|
7
|
-
export declare const say: import("copilotz/web/words").Say<"personal" | "team" | "placement" | "join" | "staff" | "cancel" | "name" | "status" | "suspended" | "rename" | "people" | "spaces" | "active" | "goHome" | "staffLine" | "orgSettings" | "aboutOrg" | "allOrgsConsole" | "organization" | "oneOrg" | "oneOrgAbout" | "notInOrg" | "chooseOrg" | "personalOrg" | "teamOrg" | "staffAccess" | "orgAboutStaff" | "orgAboutPersonal" | "orgAboutRuns" | "orgAboutGuest" | "orgAboutMember" | "orgSection" | "heldBack" | "orgSettingsOf" | "nothingToSet" | "nothingToSetAbout" | "justYou" | "yourOrgs" | "organizations" | "inAsStaffTitle" | "switchOrg" | "invitationsCount" | "signedInAs" | "inAsStaff" | "continueAs" | "invitations" | "newOrgMore" | "enterAsStaff" | "suspendedTitle" | "yourOwn" | "invitedFromAsAt" | "invitedAsAt" | "invitedFromAs" | "invitedAs" | "joinNamed" | "decline" | "newOrg" | "newOrgAbout" | "createOrg" | "newOrgNameHint" | "atMost" | "newOrgPlaceholder" | "goingInto" | "enteringAsStaff" | "switchingTo" | "movedOrg" | "youreIn" | "nameIt" | "createNamed" | "switchTo" | "yourOwnOrg" | "declineOrgInvite" | "keysSwitch" | "keysNewOrg" | "keysOrgSettings" | "keysConsole" | "keysAcceptOrgInvite" | "keysOrgInvite" | "filterAll" | "filterTeams" | "giftCodes" | "consoleTitle" | "forStaff" | "forStaffAbout" | "consoleShows" | "giftCodesAbout" | "consoleAbout" | "refresh" | "teamOrgs" | "searchPlaceholder" | "searchOrgs" | "whichOrgs" | "lastActive" | "actions" | "noMatch" | "nothingMatches" | "nothingYet" | "footAll" | "footSome" | "hereAsStaff" | "youreHere" | "copyOrgId" | "notYet" | "inItAsStaff" | "goIntoAsStaff" | "moreOf" | "renameMore" | "liftMore" | "suspendMore" | "moveMore" | "exportRows" | "deleteMore" | "unsupported" | "renamedTo" | "renameOrg" | "renameOrgAbout" | "liftTitle" | "suspendTitle" | "openAgain" | "isSuspended" | "lift" | "suspend" | "liftAbout" | "suspendAbout" | "nowLivesIn" | "moveTitle" | "moveAbout" | "moveRows" | "moveText" | "nowIn" | "newSchema" | "sameSchema" | "schemaRule" | "isDeleted" | "deleteTitle" | "deleteForGood" | "cantUndo" | "deleteAbout" | "exportFirst" | "typeToConfirm" | "codeWaiting" | "codeClaimed" | "codeRevoked" | "codeExpired" | "sayDollars" | "codesCount" | "newGiftCode" | "tryAgain" | "noCodes" | "noCodesAbout" | "termsLapse" | "termsNoLapse" | "termsLapseClaim" | "termsNoLapseClaim" | "codeShortTitle" | "codeMade" | "claimedBy" | "takeBack" | "makeCode" | "makeTheCode" | "credits" | "lapseOn" | "lapseHint" | "claimBy" | "claimHint" | "whatFor" | "whatForHint" | "notePlaceholder" | "yourCode" | "keptIt" | "copyCode" | "notShownAgain" | "notShownAgainAbout" | "takeBackTitle" | "takeItBack" | "takeBackAbout">;
|
|
7
|
+
export declare const say: import("copilotz/web/words").Say<"personal" | "team" | "placement" | "join" | "staff" | "cancel" | "name" | "status" | "suspended" | "rename" | "people" | "spaces" | "active" | "goHome" | "staffLine" | "orgSettings" | "aboutOrg" | "allOrgsConsole" | "organization" | "oneOrg" | "oneOrgAbout" | "notInOrg" | "chooseOrg" | "personalOrg" | "teamOrg" | "staffAccess" | "orgAboutStaff" | "orgAboutPersonal" | "orgAboutRuns" | "orgAboutGuest" | "orgAboutMember" | "orgSection" | "heldBack" | "orgSettingsOf" | "nothingToSet" | "nothingToSetAbout" | "justYou" | "yourOrgs" | "organizations" | "inAsStaffTitle" | "switchOrg" | "switchOrgWaiting" | "invitationsCount" | "signedInAs" | "inAsStaff" | "continueAs" | "invitations" | "newOrgMore" | "enterAsStaff" | "suspendedTitle" | "yourOwn" | "invitedFromAsAt" | "invitedAsAt" | "invitedFromAs" | "invitedAs" | "joinNamed" | "decline" | "newOrg" | "newOrgAbout" | "createOrg" | "newOrgNameHint" | "atMost" | "newOrgPlaceholder" | "goingInto" | "enteringAsStaff" | "switchingTo" | "movedOrg" | "youreIn" | "nameIt" | "createNamed" | "switchTo" | "yourOwnOrg" | "declineOrgInvite" | "keysSwitch" | "keysNewOrg" | "keysOrgSettings" | "keysConsole" | "keysAcceptOrgInvite" | "keysOrgInvite" | "filterAll" | "filterTeams" | "giftCodes" | "consoleTitle" | "forStaff" | "forStaffAbout" | "consoleShows" | "giftCodesAbout" | "consoleAbout" | "refresh" | "teamOrgs" | "searchPlaceholder" | "searchOrgs" | "whichOrgs" | "lastActive" | "actions" | "noMatch" | "nothingMatches" | "nothingYet" | "footAll" | "footSome" | "hereAsStaff" | "youreHere" | "copyOrgId" | "notYet" | "inItAsStaff" | "goIntoAsStaff" | "moreOf" | "renameMore" | "liftMore" | "suspendMore" | "moveMore" | "exportRows" | "deleteMore" | "unsupported" | "renamedTo" | "renameOrg" | "renameOrgAbout" | "liftTitle" | "suspendTitle" | "openAgain" | "isSuspended" | "lift" | "suspend" | "liftAbout" | "suspendAbout" | "nowLivesIn" | "moveTitle" | "moveAbout" | "moveRows" | "moveText" | "nowIn" | "newSchema" | "sameSchema" | "schemaRule" | "isDeleted" | "deleteTitle" | "deleteForGood" | "cantUndo" | "deleteAbout" | "exportFirst" | "typeToConfirm" | "codeWaiting" | "codeClaimed" | "codeRevoked" | "codeExpired" | "sayDollars" | "codesCount" | "newGiftCode" | "tryAgain" | "noCodes" | "noCodesAbout" | "termsLapse" | "termsNoLapse" | "termsLapseClaim" | "termsNoLapseClaim" | "codeShortTitle" | "codeMade" | "claimedBy" | "takeBack" | "makeCode" | "makeTheCode" | "credits" | "lapseOn" | "lapseHint" | "claimBy" | "claimHint" | "whatFor" | "whatForHint" | "notePlaceholder" | "yourCode" | "keptIt" | "copyCode" | "notShownAgain" | "notShownAgainAbout" | "takeBackTitle" | "takeItBack" | "takeBackAbout">;
|
|
8
8
|
export declare const sayOrg: import("copilotz/web/words").Say<"personalOrg">;
|
|
9
9
|
/** Every word of the directory's front end, by area (WORDS.md lists them). */
|
|
10
10
|
export declare const PHRASES: Record<string, Record<string, Phrase>>;
|
package/views/web/words.js
CHANGED
|
@@ -39,6 +39,11 @@ const shell = {
|
|
|
39
39
|
organizations: "Organizations",
|
|
40
40
|
inAsStaffTitle: "You're in {name} as platform staff: what you do is on its record",
|
|
41
41
|
switchOrg: "{name}: switch organization",
|
|
42
|
+
// …on the rail, the sidebar folded, with invitations waiting
|
|
43
|
+
switchOrgWaiting: {
|
|
44
|
+
one: "{name}: switch organization ({count} invitation)",
|
|
45
|
+
other: "{name}: switch organization ({count} invitations)",
|
|
46
|
+
},
|
|
42
47
|
invitationsCount: "{count} invitations",
|
|
43
48
|
signedInAs: "Signed in as {who}",
|
|
44
49
|
inAsStaff: "You're in {name} as staff. What you do here is on its record.",
|
package/web.d.ts
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* - **The switcher** (`orgs.switcher`), at the top of the sidebar beside the
|
|
8
8
|
* app's mark: the org you're in and your standing there; opened, your orgs
|
|
9
9
|
* (Personal first), invitations to join or decline in place, a new org, the
|
|
10
|
-
* org's settings, and for staff, every org.
|
|
10
|
+
* org's settings, and for staff, every org. On the rail, the sidebar folded
|
|
11
|
+
* (`orgs.rail`), the org's face under the app's mark, opening the same.
|
|
11
12
|
* - **Beside every page** (`orgs.overlay`): the dialog that makes an org, the
|
|
12
13
|
* short transition while the page goes into another and the word once it's
|
|
13
14
|
* there, and, while in an org as platform staff, a line along the top.
|
package/web.js
CHANGED
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
* - **The switcher** (`orgs.switcher`), at the top of the sidebar beside the
|
|
8
8
|
* app's mark: the org you're in and your standing there; opened, your orgs
|
|
9
9
|
* (Personal first), invitations to join or decline in place, a new org, the
|
|
10
|
-
* org's settings, and for staff, every org.
|
|
10
|
+
* org's settings, and for staff, every org. On the rail, the sidebar folded
|
|
11
|
+
* (`orgs.rail`), the org's face under the app's mark, opening the same.
|
|
11
12
|
* - **Beside every page** (`orgs.overlay`): the dialog that makes an org, the
|
|
12
13
|
* short transition while the page goes into another and the word once it's
|
|
13
14
|
* there, and, while in an org as platform staff, a line along the top.
|
|
@@ -31,7 +32,7 @@
|
|
|
31
32
|
import { definePlugin } from "copilotz";
|
|
32
33
|
import { consoleView } from "./views/web/console.js";
|
|
33
34
|
import { orgView } from "./views/web/org.js";
|
|
34
|
-
import { overlayView, switcherView, useShellOrgs } from "./views/web/switcher.js";
|
|
35
|
+
import { overlayView, switcherRailView, switcherView, useShellOrgs, } from "./views/web/switcher.js";
|
|
35
36
|
export * from "./views/web/orgs.js";
|
|
36
37
|
export { openNewOrg, useShellOrgs } from "./views/web/switcher.js";
|
|
37
38
|
export const directoryWeb = definePlugin({
|
|
@@ -39,12 +40,18 @@ export const directoryWeb = definePlugin({
|
|
|
39
40
|
requires: ["web-shell"],
|
|
40
41
|
views: {
|
|
41
42
|
"orgs.switcher": switcherView,
|
|
43
|
+
"orgs.rail": switcherRailView,
|
|
42
44
|
"orgs.overlay": overlayView,
|
|
43
45
|
org: orgView,
|
|
44
46
|
console: consoleView,
|
|
45
47
|
},
|
|
46
48
|
resources: {
|
|
47
|
-
orgs: {
|
|
49
|
+
orgs: {
|
|
50
|
+
switcher: "orgs.switcher",
|
|
51
|
+
rail: "orgs.rail",
|
|
52
|
+
overlay: "orgs.overlay",
|
|
53
|
+
use: useShellOrgs,
|
|
54
|
+
},
|
|
48
55
|
},
|
|
49
56
|
});
|
|
50
57
|
export default directoryWeb;
|