@skillcdn/console 0.6.0 → 0.6.2
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 +7 -7
- package/dist/agent-page.d.ts.map +1 -1
- package/dist/agent-page.js +58 -35
- package/dist/agent-page.js.map +1 -1
- package/dist/agent-usage.d.ts +51 -0
- package/dist/agent-usage.d.ts.map +1 -0
- package/dist/agent-usage.js +77 -0
- package/dist/agent-usage.js.map +1 -0
- package/dist/api.d.ts +4 -2
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +4 -2
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts +9 -2
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +491 -125
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +46 -4
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +163 -45
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +62 -13
- package/dist/cli/help.js.map +1 -1
- package/dist/cli/machine-check.d.ts +24 -5
- package/dist/cli/machine-check.d.ts.map +1 -1
- package/dist/cli/machine-check.js +128 -16
- package/dist/cli/machine-check.js.map +1 -1
- package/dist/cli/pack.d.ts +11 -8
- package/dist/cli/pack.d.ts.map +1 -1
- package/dist/cli/pack.js +63 -28
- package/dist/cli/pack.js.map +1 -1
- package/dist/cli/runner-host.d.ts +2 -0
- package/dist/cli/runner-host.d.ts.map +1 -1
- package/dist/cli/runner-host.js +1 -0
- package/dist/cli/runner-host.js.map +1 -1
- package/dist/cli/secret-notes.d.ts.map +1 -1
- package/dist/cli/secret-notes.js +9 -1
- package/dist/cli/secret-notes.js.map +1 -1
- package/dist/cli/terminal.d.ts +10 -2
- package/dist/cli/terminal.d.ts.map +1 -1
- package/dist/cli/terminal.js +16 -4
- package/dist/cli/terminal.js.map +1 -1
- package/dist/client.d.ts +30 -7
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +13 -1
- package/dist/client.js.map +1 -1
- package/dist/components/agent-page.d.ts +76 -18
- package/dist/components/agent-page.d.ts.map +1 -1
- package/dist/components/agent-page.js +183 -53
- package/dist/components/agent-page.js.map +1 -1
- package/dist/components/agents.d.ts +2 -0
- package/dist/components/agents.d.ts.map +1 -1
- package/dist/components/agents.js +6 -5
- package/dist/components/agents.js.map +1 -1
- package/dist/components/calendar.d.ts +24 -4
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +79 -36
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/categories.js +2 -2
- package/dist/components/categories.js.map +1 -1
- package/dist/components/comments.js +2 -2
- package/dist/components/comments.js.map +1 -1
- package/dist/components/decision-list.d.ts.map +1 -1
- package/dist/components/decision-list.js +5 -5
- package/dist/components/decision-list.js.map +1 -1
- package/dist/components/documents.d.ts.map +1 -1
- package/dist/components/documents.js +4 -4
- package/dist/components/documents.js.map +1 -1
- package/dist/components/event-feed.d.ts +2 -3
- package/dist/components/event-feed.d.ts.map +1 -1
- package/dist/components/event-feed.js +4 -184
- package/dist/components/event-feed.js.map +1 -1
- package/dist/components/goals.d.ts.map +1 -1
- package/dist/components/goals.js +3 -3
- package/dist/components/goals.js.map +1 -1
- package/dist/components/home.js +9 -9
- package/dist/components/home.js.map +1 -1
- package/dist/components/icon.d.ts.map +1 -1
- package/dist/components/icon.js +11 -2
- package/dist/components/icon.js.map +1 -1
- package/dist/components/notifications.d.ts +65 -0
- package/dist/components/notifications.d.ts.map +1 -0
- package/dist/components/notifications.js +162 -0
- package/dist/components/notifications.js.map +1 -0
- package/dist/components/pack-connect.js +1 -1
- package/dist/components/pack-connect.js.map +1 -1
- package/dist/components/pack-token.js +1 -1
- package/dist/components/pack-token.js.map +1 -1
- package/dist/components/people.js +2 -2
- package/dist/components/people.js.map +1 -1
- package/dist/components/pictures.js +1 -1
- package/dist/components/pictures.js.map +1 -1
- package/dist/components/plugin-settings.d.ts +22 -1
- package/dist/components/plugin-settings.d.ts.map +1 -1
- package/dist/components/plugin-settings.js +63 -11
- package/dist/components/plugin-settings.js.map +1 -1
- package/dist/components/projects.js +1 -1
- package/dist/components/projects.js.map +1 -1
- package/dist/components/roadmap.js +2 -2
- package/dist/components/roadmap.js.map +1 -1
- package/dist/components/rules.js +2 -2
- package/dist/components/rules.js.map +1 -1
- package/dist/components/runs.d.ts.map +1 -1
- package/dist/components/runs.js +1 -1
- package/dist/components/runs.js.map +1 -1
- package/dist/components/sessions.js +1 -1
- package/dist/components/sessions.js.map +1 -1
- package/dist/components/shell.d.ts +2 -0
- package/dist/components/shell.d.ts.map +1 -1
- package/dist/components/shell.js +1 -1
- package/dist/components/shell.js.map +1 -1
- package/dist/components/sign-in.js +2 -2
- package/dist/components/sign-in.js.map +1 -1
- package/dist/components/skills.d.ts.map +1 -1
- package/dist/components/skills.js +1 -1
- package/dist/components/skills.js.map +1 -1
- package/dist/components/task-view.d.ts +6 -0
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +3 -2
- package/dist/components/task-view.js.map +1 -1
- package/dist/components/tokens.js +1 -1
- package/dist/components/tokens.js.map +1 -1
- package/dist/components/ui.d.ts +21 -2
- package/dist/components/ui.d.ts.map +1 -1
- package/dist/components/ui.js +24 -3
- package/dist/components/ui.js.map +1 -1
- package/dist/components/work.js +1 -1
- package/dist/components/work.js.map +1 -1
- package/dist/console.css +506 -289
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +193 -16
- package/dist/console.js.map +1 -1
- package/dist/data.d.ts +17 -1
- package/dist/data.d.ts.map +1 -1
- package/dist/data.js +31 -0
- package/dist/data.js.map +1 -1
- package/dist/desk-page.js +5 -5
- package/dist/desk-page.js.map +1 -1
- package/dist/feed-words.d.ts +5 -0
- package/dist/feed-words.d.ts.map +1 -0
- package/dist/feed-words.js +193 -0
- package/dist/feed-words.js.map +1 -0
- package/dist/i18n/en.d.ts +93 -1
- package/dist/i18n/en.d.ts.map +1 -1
- package/dist/i18n/en.js +103 -15
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.d.ts.map +1 -1
- package/dist/i18n/ko.js +105 -22
- package/dist/i18n/ko.js.map +1 -1
- package/dist/icons/glyphs.d.ts +370 -104
- package/dist/icons/glyphs.d.ts.map +1 -1
- package/dist/icons/glyphs.js +72 -66
- package/dist/icons/glyphs.js.map +1 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +9 -1
- package/dist/icons/index.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/limits.d.ts +7 -0
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +7 -0
- package/dist/limits.js.map +1 -1
- package/dist/notifications.d.ts +124 -0
- package/dist/notifications.d.ts.map +1 -0
- package/dist/notifications.js +147 -0
- package/dist/notifications.js.map +1 -0
- package/dist/onboarding.d.ts.map +1 -1
- package/dist/onboarding.js +7 -12
- package/dist/onboarding.js.map +1 -1
- package/dist/plugin/capabilities.d.ts +1 -1
- package/dist/plugin/capabilities.d.ts.map +1 -1
- package/dist/plugin/capabilities.js +10 -0
- package/dist/plugin/capabilities.js.map +1 -1
- package/dist/plugin/context.d.ts +85 -1
- package/dist/plugin/context.d.ts.map +1 -1
- package/dist/plugin/limits.d.ts +7 -0
- package/dist/plugin/limits.d.ts.map +1 -1
- package/dist/plugin/limits.js +7 -0
- package/dist/plugin/limits.js.map +1 -1
- package/dist/plugin/manifest.d.ts +8 -0
- package/dist/plugin/manifest.d.ts.map +1 -1
- package/dist/plugin/manifest.js +13 -0
- package/dist/plugin/manifest.js.map +1 -1
- package/dist/plugin/rest-schemas.d.ts +22 -0
- package/dist/plugin/rest-schemas.d.ts.map +1 -1
- package/dist/plugin/rest-schemas.js +19 -3
- package/dist/plugin/rest-schemas.js.map +1 -1
- package/dist/plugin/testing.d.ts +2 -0
- package/dist/plugin/testing.d.ts.map +1 -1
- package/dist/plugin/testing.js +2 -0
- package/dist/plugin/testing.js.map +1 -1
- package/dist/plugin.d.ts +1 -1
- package/dist/plugin.d.ts.map +1 -1
- package/dist/plugin.js +1 -1
- package/dist/plugin.js.map +1 -1
- package/dist/router.d.ts +6 -0
- package/dist/router.d.ts.map +1 -1
- package/dist/router.js +5 -0
- package/dist/router.js.map +1 -1
- package/dist/routes.d.ts +2 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +2 -0
- package/dist/routes.js.map +1 -1
- package/dist/rules.js +1 -1
- package/dist/rules.js.map +1 -1
- package/dist/runner/acp.d.ts.map +1 -1
- package/dist/runner/acp.js +12 -97
- package/dist/runner/acp.js.map +1 -1
- package/dist/runner/browser.d.ts +50 -0
- package/dist/runner/browser.d.ts.map +1 -0
- package/dist/runner/browser.js +104 -0
- package/dist/runner/browser.js.map +1 -0
- package/dist/runner/claude.d.ts +1 -2
- package/dist/runner/claude.d.ts.map +1 -1
- package/dist/runner/claude.js +352 -13
- package/dist/runner/claude.js.map +1 -1
- package/dist/runner/codex.d.ts +9 -10
- package/dist/runner/codex.d.ts.map +1 -1
- package/dist/runner/codex.js +809 -346
- package/dist/runner/codex.js.map +1 -1
- package/dist/runner/config.d.ts +14 -3
- package/dist/runner/config.d.ts.map +1 -1
- package/dist/runner/config.js +27 -7
- package/dist/runner/config.js.map +1 -1
- package/dist/runner/desk.d.ts +3 -1
- package/dist/runner/desk.d.ts.map +1 -1
- package/dist/runner/desk.js +17 -5
- package/dist/runner/desk.js.map +1 -1
- package/dist/runner/message.d.ts +53 -3
- package/dist/runner/message.d.ts.map +1 -1
- package/dist/runner/message.js +201 -20
- package/dist/runner/message.js.map +1 -1
- package/dist/runner/registry.d.ts +6 -0
- package/dist/runner/registry.d.ts.map +1 -1
- package/dist/runner/registry.js.map +1 -1
- package/dist/runner/rpc.d.ts +31 -0
- package/dist/runner/rpc.d.ts.map +1 -0
- package/dist/runner/rpc.js +102 -0
- package/dist/runner/rpc.js.map +1 -0
- package/dist/runner/runner.d.ts +41 -1
- package/dist/runner/runner.d.ts.map +1 -1
- package/dist/runner/runner.js +695 -52
- package/dist/runner/runner.js.map +1 -1
- package/dist/runner/slack.d.ts +17 -8
- package/dist/runner/slack.d.ts.map +1 -1
- package/dist/runner/slack.js +1250 -78
- package/dist/runner/slack.js.map +1 -1
- package/dist/runner/types.d.ts +160 -8
- package/dist/runner/types.d.ts.map +1 -1
- package/dist/runner/types.js.map +1 -1
- package/dist/runner/usage.d.ts +105 -0
- package/dist/runner/usage.d.ts.map +1 -0
- package/dist/runner/usage.js +218 -0
- package/dist/runner/usage.js.map +1 -0
- package/dist/runner.d.ts +4 -4
- package/dist/runner.d.ts.map +1 -1
- package/dist/runner.js +3 -3
- package/dist/runner.js.map +1 -1
- package/dist/schemas.d.ts +673 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +205 -1
- package/dist/schemas.js.map +1 -1
- package/dist/services.js +3 -3
- package/dist/services.js.map +1 -1
- package/dist/setup-guide.d.ts +4 -3
- package/dist/setup-guide.d.ts.map +1 -1
- package/dist/setup-guide.js +11 -13
- package/dist/setup-guide.js.map +1 -1
- package/dist/text.d.ts +7 -0
- package/dist/text.d.ts.map +1 -1
- package/dist/text.js +18 -0
- package/dist/text.js.map +1 -1
- package/dist/vocabulary.d.ts +4 -2
- package/dist/vocabulary.d.ts.map +1 -1
- package/dist/vocabulary.js +4 -1
- package/dist/vocabulary.js.map +1 -1
- package/docs/specs/cli.md +26 -19
- package/docs/specs/plugins.md +16 -10
- package/docs/specs/rest.md +28 -10
- package/docs/specs/runner.md +132 -44
- package/package.json +4 -4
- package/skills/building-a-console/SKILL.md +2 -2
- package/skills/building-a-console/references/configuring.md +1 -1
- package/skills/building-a-plugin/SKILL.md +4 -4
- package/skills/planning-the-board/SKILL.md +1 -1
- package/skills/planning-the-board/references/setting-up.md +2 -2
- package/skills/running-an-agent/SKILL.md +15 -64
- package/skills/running-an-agent/references/preparing-the-machine.md +17 -0
- package/skills/running-an-agent/references/several-tasks.md +37 -0
- package/skills/running-an-agent/references/slack-app.md +70 -13
- package/skills/running-an-agent/references/the-account-and-the-invitation.md +5 -0
- package/skills/running-an-agent/references/what-was-not-seen-run-yet.md +3 -0
- package/skills/running-an-agent/references/when-the-agent-could-not-go-on.md +16 -0
- package/skills/running-an-agent/references/your-first-task.md +14 -0
- package/skills/working-the-board/SKILL.md +9 -12
- package/skills/working-the-board/references/a-pack-skills-questions.md +3 -0
- package/skills/working-the-board/references/a-plugins-commands.md +3 -0
- package/skills/working-the-board/references/a-review.md +3 -0
- package/skills/working-the-board/references/an-open-run.md +3 -0
- package/skills/working-the-board/references/requirements.md +7 -0
- package/skills/working-the-board/references/the-pack.md +2 -2
- package/skills/working-the-board/references/what-they-were-told.md +3 -0
- package/skills/working-the-board/references/work-given-in-chat.md +5 -0
- package/src/agent-page.tsx +76 -47
- package/src/agent-usage.ts +113 -0
- package/src/api.ts +62 -0
- package/src/cli/cli.ts +634 -162
- package/src/cli/format.ts +190 -47
- package/src/cli/help.ts +77 -12
- package/src/cli/machine-check.ts +182 -29
- package/src/cli/pack.ts +81 -40
- package/src/cli/runner-host.ts +3 -0
- package/src/cli/secret-notes.ts +9 -1
- package/src/cli/terminal.ts +20 -4
- package/src/client.ts +94 -6
- package/src/components/agent-page.tsx +280 -63
- package/src/components/agents.tsx +23 -3
- package/src/components/calendar.tsx +93 -37
- package/src/components/categories.tsx +2 -2
- package/src/components/comments.tsx +5 -5
- package/src/components/decision-list.tsx +13 -10
- package/src/components/documents.tsx +13 -8
- package/src/components/event-feed.tsx +4 -203
- package/src/components/goals.tsx +6 -4
- package/src/components/home.tsx +12 -12
- package/src/components/icon.tsx +16 -3
- package/src/components/notifications.tsx +419 -0
- package/src/components/pack-connect.tsx +1 -1
- package/src/components/pack-token.tsx +5 -5
- package/src/components/people.tsx +3 -3
- package/src/components/pictures.tsx +1 -1
- package/src/components/plugin-settings.tsx +128 -23
- package/src/components/projects.tsx +1 -1
- package/src/components/roadmap.tsx +2 -2
- package/src/components/rules.tsx +2 -2
- package/src/components/runs.tsx +6 -3
- package/src/components/sessions.tsx +2 -2
- package/src/components/shell.tsx +3 -0
- package/src/components/sign-in.tsx +3 -3
- package/src/components/skills.tsx +5 -3
- package/src/components/task-view.tsx +18 -7
- package/src/components/tokens.tsx +2 -2
- package/src/components/ui.tsx +70 -5
- package/src/components/work.tsx +2 -2
- package/src/console.tsx +269 -12
- package/src/data.ts +54 -0
- package/src/desk-page.tsx +5 -5
- package/src/feed-words.ts +214 -0
- package/src/i18n/en.ts +114 -15
- package/src/i18n/ko.ts +115 -22
- package/src/icons/glyphs.ts +74 -68
- package/src/icons/index.ts +9 -1
- package/src/index.ts +11 -0
- package/src/limits.ts +7 -0
- package/src/notifications.ts +205 -0
- package/src/onboarding.ts +10 -14
- package/src/plugin/capabilities.ts +13 -0
- package/src/plugin/context.ts +87 -0
- package/src/plugin/limits.ts +7 -0
- package/src/plugin/manifest.ts +14 -0
- package/src/plugin/rest-schemas.ts +27 -3
- package/src/plugin/testing.ts +4 -0
- package/src/plugin.ts +2 -0
- package/src/router.ts +7 -0
- package/src/routes.ts +2 -0
- package/src/rules.ts +1 -1
- package/src/runner/acp.ts +12 -118
- package/src/runner/browser.ts +128 -0
- package/src/runner/claude.ts +399 -12
- package/src/runner/codex.ts +904 -400
- package/src/runner/config.ts +30 -7
- package/src/runner/desk.ts +22 -6
- package/src/runner/message.ts +251 -21
- package/src/runner/registry.ts +6 -0
- package/src/runner/rpc.ts +140 -0
- package/src/runner/runner.ts +863 -53
- package/src/runner/slack.ts +1535 -85
- package/src/runner/types.ts +150 -5
- package/src/runner/usage.ts +299 -0
- package/src/runner.ts +16 -1
- package/src/schemas.ts +249 -0
- package/src/services.ts +3 -3
- package/src/setup-guide.ts +12 -14
- package/src/styles/README.md +11 -7
- package/src/styles/console.css +2 -0
- package/src/styles/drawn-by-pages.json +7 -82
- package/src/styles/pages/agents.css +46 -35
- package/src/styles/pages/calendar.css +0 -1
- package/src/styles/pages/connect.css +0 -14
- package/src/styles/pages/decisions.css +2 -43
- package/src/styles/pages/documents.css +0 -29
- package/src/styles/pages/home.css +4 -16
- package/src/styles/pages/people.css +2 -17
- package/src/styles/pages/plugins.css +9 -12
- package/src/styles/pages/roadmap.css +0 -16
- package/src/styles/pages/settings.css +0 -28
- package/src/styles/pages/sign-in.css +2 -17
- package/src/styles/pages/thread.css +4 -50
- package/src/styles/pages/work.css +0 -5
- package/src/styles/parts/button.css +31 -0
- package/src/styles/parts/count.css +10 -0
- package/src/styles/parts/divider.css +17 -0
- package/src/styles/parts/frame.css +12 -0
- package/src/styles/parts/icon.css +39 -0
- package/src/styles/parts/menu.css +184 -0
- package/src/styles/parts/panel.css +7 -0
- package/src/styles/parts/progress.css +63 -0
- package/src/styles/parts/settings.css +2 -0
- package/src/styles/parts/sheet.css +28 -0
- package/src/styles/parts/text.css +34 -0
- package/src/text.ts +19 -0
- package/src/vocabulary.ts +4 -1
- package/template/plugin/package.json +1 -1
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
type RestProject,
|
|
13
13
|
type RestProvider,
|
|
14
14
|
type RestWorkspace,
|
|
15
|
+
usageStanding,
|
|
15
16
|
} from "../api.js";
|
|
16
17
|
import { type AvatarSet, avatarScanlines, MAX_AVATAR_PIXELS, pngFile } from "../avatar.js";
|
|
17
18
|
import { useWords } from "../i18n/index.js";
|
|
@@ -22,7 +23,7 @@ import {
|
|
|
22
23
|
MAX_PERSON_TITLE_LENGTH,
|
|
23
24
|
} from "../limits.js";
|
|
24
25
|
import { agentLoginOf } from "../services.js";
|
|
25
|
-
import { AgentStateBadge } from "./agent-page.js";
|
|
26
|
+
import { AgentStateBadge, AgentUsage } from "./agent-page.js";
|
|
26
27
|
import { supervisedBy } from "./people.js";
|
|
27
28
|
import { Picker } from "./picker.js";
|
|
28
29
|
import { peopleSearch } from "./searches.js";
|
|
@@ -115,6 +116,8 @@ export interface AgentAccountListProps {
|
|
|
115
116
|
readonly empty?: React.ReactNode;
|
|
116
117
|
/** Where an account's own page is; given, the whole card leads there, and left out, nothing does. */
|
|
117
118
|
readonly href?: ((agent: RestAgent) => string) | undefined;
|
|
119
|
+
/** The moment a window of an account's allowance is read against; now, where none is given. */
|
|
120
|
+
readonly now?: number | undefined;
|
|
118
121
|
}
|
|
119
122
|
|
|
120
123
|
/**
|
|
@@ -142,6 +145,7 @@ export function AgentAccountList(props: AgentAccountListProps) {
|
|
|
142
145
|
const title = person.title ?? "";
|
|
143
146
|
const state = agent.state ?? null;
|
|
144
147
|
const product = agent.runner?.product ?? null;
|
|
148
|
+
const usage = usageStanding(agent.usage, props.now ?? Date.now());
|
|
145
149
|
const model = agent.runner?.running?.model ?? agent.runner?.settings.model ?? null;
|
|
146
150
|
return (
|
|
147
151
|
<li
|
|
@@ -194,6 +198,14 @@ export function AgentAccountList(props: AgentAccountListProps) {
|
|
|
194
198
|
{states.since.before}
|
|
195
199
|
<Time iso={state.since} precision="clock" />
|
|
196
200
|
{states.since.after}
|
|
201
|
+
{state.until !== undefined && state.until !== null && (
|
|
202
|
+
<>
|
|
203
|
+
{" · "}
|
|
204
|
+
{states.until.before}
|
|
205
|
+
<Time iso={state.until} precision="clock" />
|
|
206
|
+
{states.until.after}
|
|
207
|
+
</>
|
|
208
|
+
)}
|
|
197
209
|
</span>
|
|
198
210
|
</span>
|
|
199
211
|
)}
|
|
@@ -210,6 +222,14 @@ export function AgentAccountList(props: AgentAccountListProps) {
|
|
|
210
222
|
</dd>
|
|
211
223
|
</div>
|
|
212
224
|
)}
|
|
225
|
+
{usage.length > 0 && (
|
|
226
|
+
<div className="sc-person-fact sc-agent-card-usage">
|
|
227
|
+
<dt>{accounts.usage}</dt>
|
|
228
|
+
<dd>
|
|
229
|
+
<AgentUsage usage={usage} />
|
|
230
|
+
</dd>
|
|
231
|
+
</div>
|
|
232
|
+
)}
|
|
213
233
|
{manager?.id !== props.me?.id || manager === null ? (
|
|
214
234
|
<div className="sc-person-fact">
|
|
215
235
|
<dt>{words.people.manager}</dt>
|
|
@@ -472,8 +492,8 @@ export function AgentAccountForm(props: AgentAccountFormProps) {
|
|
|
472
492
|
onClick={() => choose(proposal)}
|
|
473
493
|
>
|
|
474
494
|
<AvatarPicture parts={proposal.avatarParts} className="sc-avatar sc-avatar-lg" />
|
|
475
|
-
<span className="sc-
|
|
476
|
-
<span className="sc-
|
|
495
|
+
<span className="sc-name">{proposal.name}</span>
|
|
496
|
+
<span className="sc-fine">@{proposal.handle}</span>
|
|
477
497
|
</button>
|
|
478
498
|
))}
|
|
479
499
|
</div>
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
addDays,
|
|
12
12
|
addMonths,
|
|
13
|
+
dayOf,
|
|
13
14
|
daysBetween,
|
|
14
15
|
deviceLanguage,
|
|
15
16
|
firstDayOfWeek,
|
|
@@ -31,17 +32,59 @@ import { CategoryBadge, cx, PersonChip, personName, StateBadge, Time, Workers }
|
|
|
31
32
|
// The calendar of a project (ADR-0019): the month as a grid, or one week on its own. A task
|
|
32
33
|
// planned from a start to a due day lies across its days as a bar, in a lane of its own within
|
|
33
34
|
// each week so that the bars of one week never cross; a task with one day alone, a due day or
|
|
34
|
-
// a start, sits on that day as a dot.
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
//
|
|
38
|
-
//
|
|
35
|
+
// a start, sits on that day as a dot. A task with no day of its plan lies where it was worked,
|
|
36
|
+
// by the moments the board keeps, a bar or a dot the same way (ADR-0159). On a project's
|
|
37
|
+
// calendar the person who has a task stands before its title, since the days hold several
|
|
38
|
+
// people's work. Who has what says whether the work is on its days. The task under the pointer
|
|
39
|
+
// is shown in full within its item, with the facts its own page lists, above or below it where
|
|
40
|
+
// there is more room. Takes its data as props and nothing from the network; the month or the
|
|
41
|
+
// week shown is the address's (ADR-0010).
|
|
39
42
|
|
|
40
43
|
const isOpen = (task: RestTaskBrief): boolean => OPEN_TASK_STATES.includes(task.state);
|
|
41
44
|
|
|
42
|
-
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
+
/** The day a moment fell on, by this machine's clock, as the calendar spells a day. */
|
|
46
|
+
function dayOfMoment(moment: string | null): string | undefined {
|
|
47
|
+
if (moment === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
const date = new Date(moment);
|
|
51
|
+
return Number.isNaN(date.getTime()) ? undefined : dayOf(date);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/** The days a task lies on, on a calendar: the first and the last, one day where it lies on one. */
|
|
55
|
+
export interface TaskDays {
|
|
56
|
+
readonly from: string;
|
|
57
|
+
readonly to: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Where a task lies on a calendar, counted from `today`, or nowhere. A task with a day of its
|
|
62
|
+
* plan lies on its plan (ADR-0019): from its start to its due day, or on the one day it has. A
|
|
63
|
+
* task with none lies where it was worked, by the moments the board keeps (ADR-0159): from the
|
|
64
|
+
* day it was started through today while it is in progress, and else through the day its last
|
|
65
|
+
* run ended, which is where its work ended however long it waits for its review; with no run
|
|
66
|
+
* that ended, through the day it was done, or on the day it was started alone. The plan is read
|
|
67
|
+
* and never written: a task neither planned nor started lies nowhere.
|
|
68
|
+
*/
|
|
69
|
+
export function daysOf(task: RestTaskBrief, today: string): TaskDays | undefined {
|
|
70
|
+
const planned = task.dueOn ?? task.startsOn;
|
|
71
|
+
if (planned !== null) {
|
|
72
|
+
const begins = task.startsOn !== null && task.startsOn < planned ? task.startsOn : planned;
|
|
73
|
+
return { from: begins, to: planned };
|
|
74
|
+
}
|
|
75
|
+
const done = dayOfMoment(task.doneAt);
|
|
76
|
+
// A task done before the board kept when it was started has the day it was done alone.
|
|
77
|
+
const from = dayOfMoment(task.startedAt) ?? done;
|
|
78
|
+
if (from === undefined) {
|
|
79
|
+
return undefined;
|
|
80
|
+
}
|
|
81
|
+
const ended = dayOfMoment(task.lastRunEndedAt ?? null);
|
|
82
|
+
// A run left open by hand may end after the task was done, which ended the work.
|
|
83
|
+
const over = ended !== undefined && done !== undefined && done < ended ? done : (ended ?? done);
|
|
84
|
+
const to = task.state === "in_progress" ? today : (over ?? from);
|
|
85
|
+
// The reader's clock may be behind the board's: such a task sits on the day it reaches.
|
|
86
|
+
return to < from ? { from: to, to } : { from, to };
|
|
87
|
+
}
|
|
45
88
|
|
|
46
89
|
export interface CalendarProps<T extends RestTaskBrief = RestTaskBrief> {
|
|
47
90
|
readonly tasks: readonly T[];
|
|
@@ -77,11 +120,14 @@ export interface WeekSegment<T extends RestTaskBrief = RestTaskBrief> {
|
|
|
77
120
|
/**
|
|
78
121
|
* The bars of one week: every task lying across days that touches the week, cut to it, each
|
|
79
122
|
* in the first lane where it crosses nothing that was laid before it. The longest and earliest
|
|
80
|
-
* go first, so that the lanes stay few.
|
|
123
|
+
* go first, so that the lanes stay few. A task with no day of its plan lies across the days it
|
|
124
|
+
* was worked, through `today` while it is at work ({@link daysOf}); the browser's today when left
|
|
125
|
+
* out.
|
|
81
126
|
*/
|
|
82
127
|
export function weekSegments<T extends RestTaskBrief>(
|
|
83
128
|
week: readonly GridDay[],
|
|
84
129
|
tasks: readonly T[],
|
|
130
|
+
today: string = todayOf(),
|
|
85
131
|
): WeekSegment<T>[] {
|
|
86
132
|
const first = week[0]?.day;
|
|
87
133
|
const last = week[week.length - 1]?.day;
|
|
@@ -89,16 +135,14 @@ export function weekSegments<T extends RestTaskBrief>(
|
|
|
89
135
|
return [];
|
|
90
136
|
}
|
|
91
137
|
const cut = tasks
|
|
92
|
-
.filter(spans)
|
|
93
138
|
.flatMap((task) => {
|
|
94
|
-
const
|
|
95
|
-
|
|
96
|
-
if (dueOn < first || startsOn > last) {
|
|
139
|
+
const days = daysOf(task, today);
|
|
140
|
+
if (days === undefined || days.from === days.to || days.to < first || days.from > last) {
|
|
97
141
|
return [];
|
|
98
142
|
}
|
|
99
|
-
const from =
|
|
100
|
-
const to =
|
|
101
|
-
return [{ task, from, to, begins:
|
|
143
|
+
const from = days.from < first ? 0 : daysBetween(first, days.from);
|
|
144
|
+
const to = days.to > last ? week.length - 1 : daysBetween(first, days.to);
|
|
145
|
+
return [{ task, from, to, begins: days.from >= first, ends: days.to <= last }];
|
|
102
146
|
})
|
|
103
147
|
.sort(
|
|
104
148
|
(a, b) => a.from - b.from || b.to - b.from - (a.to - a.from) || a.task.number - b.task.number,
|
|
@@ -125,16 +169,19 @@ function push<T extends RestTaskBrief>(map: Map<string, T[]>, day: string, task:
|
|
|
125
169
|
}
|
|
126
170
|
}
|
|
127
171
|
|
|
128
|
-
/**
|
|
129
|
-
|
|
172
|
+
/**
|
|
173
|
+
* The tasks that sit on one day each, by day: due on it, beginning on it with no due day yet,
|
|
174
|
+
* or, with no day of its plan, worked on it alone ({@link daysOf}).
|
|
175
|
+
*/
|
|
176
|
+
function onDays<T extends RestTaskBrief>(
|
|
177
|
+
tasks: readonly T[],
|
|
178
|
+
today: string,
|
|
179
|
+
): ReadonlyMap<string, readonly T[]> {
|
|
130
180
|
const on = new Map<string, T[]>();
|
|
131
181
|
for (const task of tasks) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
const day = task.dueOn ?? task.startsOn;
|
|
136
|
-
if (day !== null) {
|
|
137
|
-
push(on, day, task);
|
|
182
|
+
const days = daysOf(task, today);
|
|
183
|
+
if (days !== undefined && days.from === days.to) {
|
|
184
|
+
push(on, days.from, task);
|
|
138
185
|
}
|
|
139
186
|
}
|
|
140
187
|
// Within a day, what is still open comes first; the rest reads as what was.
|
|
@@ -144,14 +191,20 @@ function onDays<T extends RestTaskBrief>(tasks: readonly T[]): ReadonlyMap<strin
|
|
|
144
191
|
return on;
|
|
145
192
|
}
|
|
146
193
|
|
|
147
|
-
/**
|
|
148
|
-
|
|
194
|
+
/**
|
|
195
|
+
* The tasks of one day: those on it alone and those lying across it, the open ones first;
|
|
196
|
+
* counted from `today` as {@link daysOf} counts, the browser's today when left out.
|
|
197
|
+
*/
|
|
198
|
+
export function tasksOn<T extends RestTaskBrief>(
|
|
199
|
+
day: string,
|
|
200
|
+
tasks: readonly T[],
|
|
201
|
+
today: string = todayOf(),
|
|
202
|
+
): T[] {
|
|
149
203
|
return tasks
|
|
150
|
-
.filter((task) =>
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
)
|
|
204
|
+
.filter((task) => {
|
|
205
|
+
const days = daysOf(task, today);
|
|
206
|
+
return days !== undefined && days.from <= day && day <= days.to;
|
|
207
|
+
})
|
|
155
208
|
.sort((a, b) => Number(isOpen(b)) - Number(isOpen(a)) || a.number - b.number);
|
|
156
209
|
}
|
|
157
210
|
|
|
@@ -242,7 +295,7 @@ export function TaskTip(props: TaskTipProps) {
|
|
|
242
295
|
style={{ left: place.shift }}
|
|
243
296
|
aria-hidden="true"
|
|
244
297
|
>
|
|
245
|
-
<p className="sc-task-tip-title">
|
|
298
|
+
<p className="sc-task-tip-title sc-name">
|
|
246
299
|
#{task.number} {task.title}
|
|
247
300
|
</p>
|
|
248
301
|
<dl className="sc-task-tip-facts">
|
|
@@ -595,11 +648,14 @@ export function Calendar<T extends RestTaskBrief>(props: CalendarProps<T>) {
|
|
|
595
648
|
const now = props.today ?? todayOf();
|
|
596
649
|
const firstDay = firstDayOfWeek(deviceLanguage(tag), props.weekStart);
|
|
597
650
|
const weeks = monthGrid(props.month, firstDay);
|
|
598
|
-
const onPicked = picked === null ? [] : tasksOn(picked, props.tasks);
|
|
599
|
-
const on = onDays(props.tasks);
|
|
651
|
+
const onPicked = picked === null ? [] : tasksOn(picked, props.tasks, now);
|
|
652
|
+
const on = onDays(props.tasks, now);
|
|
600
653
|
const goalsOn = props.goalHref === undefined ? undefined : goalsOnDays(props.goals ?? []);
|
|
601
654
|
const inMonth = (day: string) => monthOf(day) === props.month;
|
|
602
|
-
const monthWeeks = weeks.map((week) => ({
|
|
655
|
+
const monthWeeks = weeks.map((week) => ({
|
|
656
|
+
week,
|
|
657
|
+
segments: weekSegments(week, props.tasks, now),
|
|
658
|
+
}));
|
|
603
659
|
const nothing =
|
|
604
660
|
[...on.keys()].every((day) => !inMonth(day)) &&
|
|
605
661
|
monthWeeks.every(({ week, segments }) =>
|
|
@@ -732,8 +788,8 @@ export function Week<T extends RestTaskBrief>(props: WeekProps<T>) {
|
|
|
732
788
|
const first = days[0] ?? now;
|
|
733
789
|
const last = days[days.length - 1] ?? now;
|
|
734
790
|
const week: GridDay[] = days.map((day) => ({ day, inMonth: true }));
|
|
735
|
-
const on = onDays(props.tasks);
|
|
736
|
-
const segments = weekSegments(week, props.tasks);
|
|
791
|
+
const on = onDays(props.tasks, now);
|
|
792
|
+
const segments = weekSegments(week, props.tasks, now);
|
|
737
793
|
const nothing = segments.length === 0 && days.every((day) => !on.has(day));
|
|
738
794
|
return (
|
|
739
795
|
<div className="sc-calendar sc-week">
|
|
@@ -40,14 +40,14 @@ function CategoryRow(props: {
|
|
|
40
40
|
const changed = name.trim() !== category.name || color !== category.color;
|
|
41
41
|
if (props.onChange === undefined) {
|
|
42
42
|
return (
|
|
43
|
-
<li className="sc-category-row">
|
|
43
|
+
<li className="sc-sheet sc-category-row">
|
|
44
44
|
<CategoryBadge category={category} />
|
|
45
45
|
<code className="sc-project-key">{category.key}</code>
|
|
46
46
|
</li>
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
return (
|
|
50
|
-
<li className="sc-category-row">
|
|
50
|
+
<li className="sc-sheet sc-category-row">
|
|
51
51
|
<form
|
|
52
52
|
className="sc-category-form"
|
|
53
53
|
onSubmit={(event) => {
|
|
@@ -47,7 +47,7 @@ export function CommentCard(props: CommentCardProps) {
|
|
|
47
47
|
const following = comment.files.filter((file) => !placed(comment.body, file.file.name));
|
|
48
48
|
return (
|
|
49
49
|
<article
|
|
50
|
-
className="sc-comment"
|
|
50
|
+
className="sc-panel sc-panel-small sc-comment"
|
|
51
51
|
aria-label={words.comments.label(personName(comment.author))}
|
|
52
52
|
id={comment.id}
|
|
53
53
|
>
|
|
@@ -58,7 +58,7 @@ export function CommentCard(props: CommentCardProps) {
|
|
|
58
58
|
{words.feed.as(agentLabel(comment.agent))}
|
|
59
59
|
</span>
|
|
60
60
|
)}
|
|
61
|
-
<span className="sc-comment-meta">
|
|
61
|
+
<span className="sc-comment-meta sc-note">
|
|
62
62
|
<Time iso={comment.createdAt} />
|
|
63
63
|
</span>
|
|
64
64
|
</header>
|
|
@@ -71,7 +71,7 @@ export function CommentCard(props: CommentCardProps) {
|
|
|
71
71
|
/>
|
|
72
72
|
)}
|
|
73
73
|
{following.length > 0 && (
|
|
74
|
-
<ul className="sc-comment-files" aria-label={words.comments.files}>
|
|
74
|
+
<ul className="sc-small sc-comment-files" aria-label={words.comments.files}>
|
|
75
75
|
{following.map((attached) => {
|
|
76
76
|
const href = hrefOf(attached);
|
|
77
77
|
const { file } = attached;
|
|
@@ -191,9 +191,9 @@ export function CommentForm(props: CommentFormProps) {
|
|
|
191
191
|
onPaste={paste}
|
|
192
192
|
/>
|
|
193
193
|
{files.length > 0 && (
|
|
194
|
-
<ul className="sc-
|
|
194
|
+
<ul className="sc-chosen-files" aria-label={words.files}>
|
|
195
195
|
{files.map((file) => (
|
|
196
|
-
<li key={file.name} className="sc-
|
|
196
|
+
<li key={file.name} className="sc-chosen-file">
|
|
197
197
|
<span>{file.name}</span> <span className="sc-muted">{formatBytes(file.size)}</span>{" "}
|
|
198
198
|
<Button
|
|
199
199
|
variant="ghost"
|
|
@@ -329,7 +329,7 @@ function Outcome(props: {
|
|
|
329
329
|
}
|
|
330
330
|
return (
|
|
331
331
|
<section className="sc-decision-section" aria-label={words.decisions.whatFollowed}>
|
|
332
|
-
<h4 className="sc-decision-label">{words.decisions.whatFollowed}</h4>
|
|
332
|
+
<h4 className="sc-decision-label sc-eyebrow">{words.decisions.whatFollowed}</h4>
|
|
333
333
|
{writing ? (
|
|
334
334
|
<form
|
|
335
335
|
className="sc-outcome-form"
|
|
@@ -430,7 +430,10 @@ export function DecisionCard(props: DecisionCardProps) {
|
|
|
430
430
|
const following = files.filter((file) => !placed(decision.body, file.file.name));
|
|
431
431
|
|
|
432
432
|
return (
|
|
433
|
-
<article
|
|
433
|
+
<article
|
|
434
|
+
id={decision.id}
|
|
435
|
+
className={cx("sc-panel", "sc-decision", answered && "sc-decision-answered")}
|
|
436
|
+
>
|
|
434
437
|
<header>
|
|
435
438
|
<h3 className="sc-decision-question">
|
|
436
439
|
{props.href === undefined ? (
|
|
@@ -461,7 +464,7 @@ export function DecisionCard(props: DecisionCardProps) {
|
|
|
461
464
|
</header>
|
|
462
465
|
{decision.body.length > 0 && (
|
|
463
466
|
<section className="sc-decision-section" aria-label={words.decisions.context}>
|
|
464
|
-
<h4 className="sc-decision-label">{words.decisions.context}</h4>
|
|
467
|
+
<h4 className="sc-decision-label sc-eyebrow">{words.decisions.context}</h4>
|
|
465
468
|
<Markdown
|
|
466
469
|
source={decision.body}
|
|
467
470
|
docHref={props.docHref}
|
|
@@ -472,8 +475,8 @@ export function DecisionCard(props: DecisionCardProps) {
|
|
|
472
475
|
)}
|
|
473
476
|
{following.length > 0 && (
|
|
474
477
|
<section className="sc-decision-section" aria-label={words.decisions.files}>
|
|
475
|
-
<h4 className="sc-decision-label">{words.decisions.files}</h4>
|
|
476
|
-
<ul className="sc-decision-files">
|
|
478
|
+
<h4 className="sc-decision-label sc-eyebrow">{words.decisions.files}</h4>
|
|
479
|
+
<ul className="sc-small sc-decision-files">
|
|
477
480
|
{following.map((attached) => {
|
|
478
481
|
const href = hrefOf(attached);
|
|
479
482
|
const { file } = attached;
|
|
@@ -517,7 +520,7 @@ export function DecisionCard(props: DecisionCardProps) {
|
|
|
517
520
|
<Chosen decision={decision} />
|
|
518
521
|
</p>
|
|
519
522
|
{decision.answer.note !== null && (
|
|
520
|
-
<div className="sc-answer-note">
|
|
523
|
+
<div className="sc-answer-note sc-note">
|
|
521
524
|
<Markdown source={decision.answer.note} docHref={props.docHref} />
|
|
522
525
|
</div>
|
|
523
526
|
)}
|
|
@@ -612,7 +615,7 @@ function RecordRow(props: {
|
|
|
612
615
|
const { decision, task } = props;
|
|
613
616
|
const { answer } = decision;
|
|
614
617
|
return (
|
|
615
|
-
<li className="sc-decision-record-row">
|
|
618
|
+
<li className="sc-sheet sc-small sc-decision-record-row">
|
|
616
619
|
<div className="sc-decision-record-asked">
|
|
617
620
|
<p className="sc-decision-record-question">
|
|
618
621
|
{props.href === undefined ? (
|
|
@@ -629,7 +632,7 @@ function RecordRow(props: {
|
|
|
629
632
|
</a>
|
|
630
633
|
))}
|
|
631
634
|
</p>
|
|
632
|
-
<p className="sc-decision-record-meta">
|
|
635
|
+
<p className="sc-decision-record-meta sc-fine">
|
|
633
636
|
<Asked decision={decision} day />
|
|
634
637
|
{props.project}
|
|
635
638
|
</p>
|
|
@@ -640,11 +643,11 @@ function RecordRow(props: {
|
|
|
640
643
|
<Chosen decision={decision} />
|
|
641
644
|
</p>
|
|
642
645
|
{answer.note !== null && (
|
|
643
|
-
<div className="sc-decision-record-note">
|
|
646
|
+
<div className="sc-decision-record-note sc-muted">
|
|
644
647
|
<Markdown source={answer.note} docHref={props.docHref} />
|
|
645
648
|
</div>
|
|
646
649
|
)}
|
|
647
|
-
<p className="sc-decision-record-meta">
|
|
650
|
+
<p className="sc-decision-record-meta sc-fine">
|
|
648
651
|
<PersonChip person={answer.by} /> {answeredWord(words, answer.agent)}{" "}
|
|
649
652
|
<Time iso={answer.at} precision="day" />
|
|
650
653
|
</p>
|
|
@@ -100,12 +100,15 @@ export function DocumentList(props: DocumentListProps) {
|
|
|
100
100
|
return (
|
|
101
101
|
<ul className="sc-docs" aria-label={words.pages}>
|
|
102
102
|
{props.items.map((document) => (
|
|
103
|
-
<li
|
|
103
|
+
<li
|
|
104
|
+
key={document.id}
|
|
105
|
+
className="sc-sheet sc-sheet-large sc-sheet-raised sc-sheet-hover sc-doc-row"
|
|
106
|
+
>
|
|
104
107
|
<a className="sc-doc-title" href={props.docHref(document.path)}>
|
|
105
108
|
{document.title}
|
|
106
109
|
</a>
|
|
107
110
|
{document.archivedAt !== null && <Badge tone="neutral">{words.archived}</Badge>}
|
|
108
|
-
<span className="sc-doc-meta">
|
|
111
|
+
<span className="sc-doc-meta sc-fine">
|
|
109
112
|
<code className="sc-doc-path">{document.path}</code> · {words.version(document.version)}{" "}
|
|
110
113
|
· <Writer by={document.updatedBy} agent={document.agent} />{" "}
|
|
111
114
|
<Time iso={document.updatedAt} />
|
|
@@ -451,7 +454,9 @@ export function DocumentFiles(props: DocumentFilesProps) {
|
|
|
451
454
|
onChange={(event) => setChosen(event.target.files?.[0] ?? undefined)}
|
|
452
455
|
/>
|
|
453
456
|
</label>
|
|
454
|
-
<span
|
|
457
|
+
<span
|
|
458
|
+
className={cx("sc-small", "sc-doc-attach-chosen", chosen === undefined && "sc-muted")}
|
|
459
|
+
>
|
|
455
460
|
{chosen === undefined ? words.noFileChosen : chosen.name}
|
|
456
461
|
</span>
|
|
457
462
|
</div>
|
|
@@ -535,7 +540,7 @@ export function DocumentView(props: DocumentViewProps) {
|
|
|
535
540
|
</header>
|
|
536
541
|
<div className="sc-task-body">
|
|
537
542
|
<div className="sc-task-main">
|
|
538
|
-
{archived && <p className="sc-doc-notice">{docs.archivedNotice}</p>}
|
|
543
|
+
{archived && <p className="sc-sheet sc-muted sc-doc-notice">{docs.archivedNotice}</p>}
|
|
539
544
|
{props.error !== undefined && (
|
|
540
545
|
<p className="sc-form-error" role="alert">
|
|
541
546
|
{props.error}
|
|
@@ -640,9 +645,9 @@ export function DocumentView(props: DocumentViewProps) {
|
|
|
640
645
|
{props.versions !== undefined && props.versions.length > 0 && (
|
|
641
646
|
<section className="sc-task-section" aria-label={docs.versions}>
|
|
642
647
|
<h2 className="sc-section-title">{docs.versions}</h2>
|
|
643
|
-
<ol className="sc-versions">
|
|
648
|
+
<ol className="sc-divided sc-versions">
|
|
644
649
|
{props.versions.map((entry) => (
|
|
645
|
-
<li key={entry.number} className="sc-version">
|
|
650
|
+
<li key={entry.number} className="sc-small sc-version">
|
|
646
651
|
{props.versionHref === undefined || entry.number === shown.number ? (
|
|
647
652
|
<span className="sc-version-number">{docs.version(entry.number)}</span>
|
|
648
653
|
) : (
|
|
@@ -655,8 +660,8 @@ export function DocumentView(props: DocumentViewProps) {
|
|
|
655
660
|
{docs.version(entry.number)}
|
|
656
661
|
</a>
|
|
657
662
|
)}
|
|
658
|
-
<span className="sc-version-title">{entry.title}</span>
|
|
659
|
-
<span className="sc-version-meta">
|
|
663
|
+
<span className="sc-version-title sc-name">{entry.title}</span>
|
|
664
|
+
<span className="sc-version-meta sc-fine">
|
|
660
665
|
<Writer by={entry.author} agent={entry.agent} />{" "}
|
|
661
666
|
<Time iso={entry.createdAt} />
|
|
662
667
|
</span>
|