@dsdenes/devboard 0.1.560 → 0.1.563
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/AGENTS.md +59 -0
- package/README.md +2497 -26
- package/bin/devboard.mjs +352 -118
- package/client/App.svelte +523 -0
- package/client/FeedbackOverlay.svelte +1125 -0
- package/client/FlowMode.svelte +1015 -0
- package/client/app.css +3922 -0
- package/client/env.d.ts +23 -0
- package/client/lib/commands.ts +836 -0
- package/client/lib/components/ActivityBar.svelte +295 -0
- package/client/lib/components/AdrTable.svelte +241 -0
- package/client/lib/components/CommandPalette.svelte +198 -0
- package/client/lib/components/ConceptKind.svelte +66 -0
- package/client/lib/components/ConfirmDialog.svelte +62 -0
- package/client/lib/components/DataTable.svelte +243 -0
- package/client/lib/components/DetailSplit.svelte +68 -0
- package/client/lib/components/DiscoverOverview.svelte +898 -0
- package/client/lib/components/DiscoverWorkspace.svelte +437 -0
- package/client/lib/components/DraftsPage.svelte +186 -0
- package/client/lib/components/GoalWorkspace.svelte +1042 -0
- package/client/lib/components/IssuesAgentFocus.svelte +117 -0
- package/client/lib/components/IssuesAgentLog.svelte +50 -0
- package/client/lib/components/IssuesQuestion.svelte +95 -0
- package/client/lib/components/IssuesWorkspace.svelte +577 -0
- package/client/lib/components/MermaidDiagram.svelte +89 -0
- package/client/lib/components/MonacoEditor.svelte +190 -0
- package/client/lib/components/NotificationRegion.svelte +195 -0
- package/client/lib/components/PaneHandle.svelte +25 -0
- package/client/lib/components/ScoutIssues.svelte +215 -0
- package/client/lib/components/ScoutWorkspace.svelte +180 -0
- package/client/lib/components/Sidebar.svelte +622 -0
- package/client/lib/components/StatusBar.svelte +118 -0
- package/client/lib/components/Terminal.svelte +193 -0
- package/client/lib/components/WatchdogWorkspace.svelte +537 -0
- package/client/lib/components/ui/button.svelte +56 -0
- package/client/lib/components/ui/icon-button.svelte +56 -0
- package/client/lib/components/ui/input.svelte +19 -0
- package/client/lib/components/ui/page-header.svelte +120 -0
- package/client/lib/components/ui/stage-track.svelte +141 -0
- package/client/lib/components/watchdog-indicator.svelte +189 -0
- package/client/lib/connection.svelte.ts +210 -0
- package/client/lib/dependency-diagram.test.ts +90 -0
- package/client/lib/dependency-diagram.ts +75 -0
- package/client/lib/discover-format.test.ts +265 -0
- package/client/lib/discover-format.ts +394 -0
- package/client/lib/discover.svelte.ts +412 -0
- package/client/lib/draft-format.test.ts +48 -0
- package/client/lib/draft-format.ts +13 -0
- package/client/lib/flow-save.test.ts +148 -0
- package/client/lib/flow.svelte.ts +445 -0
- package/client/lib/goal-reconnect.test.ts +282 -0
- package/client/lib/goal.svelte.ts +652 -0
- package/client/lib/issues.svelte.ts +439 -0
- package/client/lib/layout.svelte.ts +234 -0
- package/client/lib/notification-issue.test.ts +53 -0
- package/client/lib/notification-issue.ts +27 -0
- package/client/lib/notifications.svelte.ts +62 -0
- package/client/lib/poll-status.test.ts +141 -0
- package/client/lib/poll-status.ts +88 -0
- package/client/lib/record-status.test.ts +19 -0
- package/client/lib/record-status.ts +25 -0
- package/client/lib/scout.svelte.ts +164 -0
- package/client/lib/skill-document.test.ts +77 -0
- package/client/lib/skill-document.ts +57 -0
- package/client/lib/status-tone.test.ts +40 -0
- package/client/lib/status-tone.ts +33 -0
- package/client/lib/types.ts +578 -0
- package/client/lib/utils.ts +6 -0
- package/client/lib/viewport.svelte.ts +20 -0
- package/client/lib/watchdog.svelte.ts +69 -0
- package/client/main.ts +7 -0
- package/dist/apple-touch-icon.png +0 -0
- package/dist/assets/abnfDiagram-VCTEODGH-CmBSMArZ.js +1 -0
- package/dist/assets/arc-BZgCSX2H.js +1 -0
- package/dist/assets/architecture-7GRP2DOG-CF9MHlfo.js +1 -0
- package/dist/assets/architectureDiagram-5GKGNRK7-DzWB6xiQ.js +36 -0
- package/dist/assets/array-BifhSqXX.js +1 -0
- package/dist/assets/blockDiagram-I7D4REHJ-BtmGJ0hn.js +129 -0
- package/dist/assets/c4Diagram-7LVT6UL2-D5CHrrRX.js +38 -0
- package/dist/assets/channel-CgM4lcUW.js +1 -0
- package/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
- package/dist/assets/chunk-4HAMMTFA-DeIufjFl.js +62 -0
- package/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
- package/dist/assets/chunk-75Z2AOVW-DbtzyKUg.js +2 -0
- package/dist/assets/chunk-DU6HZSFF-C0fdbx3K.js +127 -0
- package/dist/assets/chunk-F27PBJKO-HObL2IvF.js +1 -0
- package/dist/assets/chunk-FOHPRMQF-DD4dKubD.js +161 -0
- package/dist/assets/chunk-GMAD6QVW-fg8wvtPY.js +72 -0
- package/dist/assets/chunk-GVQU2GXP-C0TaHOrD.js +1 -0
- package/dist/assets/chunk-IMKFNOWR-BVoIdx20.js +231 -0
- package/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
- package/dist/assets/chunk-L3NEJ4N5-B_kmqfk5.js +1 -0
- package/dist/assets/chunk-OSK3NFVY-DO0vhxHH.js +10 -0
- package/dist/assets/chunk-P2QGCYS3-CjljLvFj.js +1 -0
- package/dist/assets/chunk-POPQ4Y6H-BU0C7tw6.js +1 -0
- package/dist/assets/chunk-PWAF6VOD-Dn0OjBt0.js +1 -0
- package/dist/assets/chunk-SHT3W25Y-CMCZE2xx.js +168 -0
- package/dist/assets/chunk-SVP7TREG-BIRmRy_W.js +88 -0
- package/dist/assets/chunk-TICWLB2K-C1bc2CDE.js +206 -0
- package/dist/assets/chunk-XXDRQBXY-Cc38QUmR.js +1 -0
- package/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
- package/dist/assets/classDiagram-ZZMXUADV-BDh5w6Nc.js +1 -0
- package/dist/assets/classDiagram-v2-VYDZK3BY-BDh5w6Nc.js +1 -0
- package/dist/assets/cose-bilkent-JH36ORCC-B7pU7qhM.js +1 -0
- package/dist/assets/cynefin-OW5HDTMX-76dswSqS.js +1 -0
- package/dist/assets/cynefinDiagram-5FMLGOSQ-2kS4q01d.js +62 -0
- package/dist/assets/cytoscape.esm-BegBNzOV.js +321 -0
- package/dist/assets/dagre-D7JM2Yhv.js +1 -0
- package/dist/assets/dagre-GXQ25YYZ-B5Y21TQM.js +4 -0
- package/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
- package/dist/assets/diagram-S7CK7UJ4-CY6td7Et.js +30 -0
- package/dist/assets/diagram-UQ7AKVKN-DmDqnGZf.js +41 -0
- package/dist/assets/diagram-VSXAHHWV-KGLWOOcE.js +3 -0
- package/dist/assets/diagram-VX7I27RA-D5syUraJ.js +24 -0
- package/dist/assets/diagram-Z3DM3KII-Dtrbs1Om.js +24 -0
- package/dist/assets/dist-Dce-2YbA.js +1 -0
- package/dist/assets/ebnfDiagram-PWID7BFC-CQpJLtU3.js +1 -0
- package/dist/assets/editor.worker-BmdWdrHZ.js +33 -0
- package/dist/assets/erDiagram-RLTQ6QDP-cMTzKLu_.js +99 -0
- package/dist/assets/eventmodeling-NTZA5JFV-CMzLdNaL.js +1 -0
- package/dist/assets/flowDiagram-HODETNUW-BMUajB-G.js +1 -0
- package/dist/assets/ganttDiagram-EL5Y4UJY-DseBS5Fs.js +292 -0
- package/dist/assets/gitGraph-4MIJSDKK-CUQZRpxJ.js +1 -0
- package/dist/assets/gitGraphDiagram-WWUBYQGX-CfMfsJ3b.js +106 -0
- package/dist/assets/graphlib-DS17s2tU.js +1 -0
- package/dist/assets/index-ByQ-XX38.css +1 -0
- package/dist/assets/index-CIf5TpfY.js +214 -0
- package/dist/assets/info-A6RAGUB7-D3nAKZ8M.js +1 -0
- package/dist/assets/infoDiagram-27XIBGKW-zu1O0WOy.js +2 -0
- package/dist/assets/init-C-OQMol4.js +1 -0
- package/dist/assets/ishikawaDiagram-5VMMS53U-DKC7BO9p.js +70 -0
- package/dist/assets/journeyDiagram-3NMN7TZE-Ld5mXse7.js +139 -0
- package/dist/assets/kanban-definition-UXKFOSKX-CH7_QlHL.js +89 -0
- package/dist/assets/katex-DJhrJSbw.js +257 -0
- package/dist/assets/line-N9XiCREw.js +1 -0
- package/dist/assets/linear-C9hnqmJv.js +1 -0
- package/dist/assets/mermaid-parser.core-DgPwV5Bh.js +7 -0
- package/dist/assets/mermaid.core-BKqynXLR.js +44 -0
- package/dist/assets/mindmap-definition-YA3MSWOX-DkiL-wiW.js +96 -0
- package/dist/assets/monaco-DjpsE8to.css +1 -0
- package/dist/assets/monaco-DqzJaNIe.js +908 -0
- package/dist/assets/ordinal-BDEzSJ7C.js +1 -0
- package/dist/assets/packet-AYTQ26CC-DuMTvpEJ.js +1 -0
- package/dist/assets/path-fybaL0A-.js +1 -0
- package/dist/assets/pegDiagram-XKGWAZYB-DvMl_xSe.js +1 -0
- package/dist/assets/pie-WAS4IAKB-Da0xPaD8.js +1 -0
- package/dist/assets/pieDiagram-E7YTZNPT-amANNRJY.js +39 -0
- package/dist/assets/quadrantDiagram-AXDQQJYC-BrgvDMnk.js +7 -0
- package/dist/assets/radar-RG4KPBEZ-Dz3Ih5-N.js +1 -0
- package/dist/assets/railroad-74A4TZTK-CKMW-IV2.js +1 -0
- package/dist/assets/railroad-abnf-HS5TGJTU-ChqmSWSF.js +1 -0
- package/dist/assets/railroad-ebnf-LZEXJU2U-V3R4fFdb.js +1 -0
- package/dist/assets/railroad-peg-WCYAUIDC-B-RuhUQW.js +1 -0
- package/dist/assets/railroadDiagram-O6MQD6OU-FjG-6OLu.js +1 -0
- package/dist/assets/requirementDiagram-BXWQKSXE-Cnj8RfE4.js +84 -0
- package/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
- package/dist/assets/sankeyDiagram-P5KCCOFB-DMu1fnEh.js +40 -0
- package/dist/assets/sequenceDiagram-WJ2MYXX4-CtCtaRpW.js +162 -0
- package/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
- package/dist/assets/src-CGp3bfio.js +1 -0
- package/dist/assets/stateDiagram-D77RDMKH-xcJbLNhz.js +1 -0
- package/dist/assets/stateDiagram-v2-MP3YSRHH-DYHrQmJJ.js +1 -0
- package/dist/assets/swimlanes-42K2YHIH-BwLln_ga.js +1 -0
- package/dist/assets/swimlanesDiagram-VR7AAH4N-BcDfUQ0A.js +8 -0
- package/dist/assets/timeline-definition-24CTP7MA-ucNGsUUz.js +120 -0
- package/dist/assets/treeView-Q6P3EWNA-3uOomRue.js +1 -0
- package/dist/assets/treemap-WGGIJYW6-iGK7vwID.js +1 -0
- package/dist/assets/vennDiagram-4TSXK5OY-B9LgGe16.js +34 -0
- package/dist/assets/wardley-WFR3VGLG-FupMOf6k.js +1 -0
- package/dist/assets/wardleyDiagram-VM6X3IG4-CGZdEXM2.js +78 -0
- package/dist/assets/xterm-BrP-ENHg.css +1 -0
- package/dist/assets/xterm-C8zLTNGk.js +16 -0
- package/dist/assets/xychartDiagram-S5SC5T6Z-DafZrSBJ.js +7 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +6 -0
- package/dist/index.html +34 -0
- package/extensions/implement-goal-issue.ts +368 -0
- package/extensions/implement-next-epic.ts +835 -0
- package/index.html +28 -0
- package/install.sh +111 -0
- package/issues/control.ts +91 -0
- package/issues/guards.ts +12 -0
- package/issues/ledger.ts +122 -0
- package/issues/legacy.ts +68 -0
- package/issues/lock.ts +305 -0
- package/issues/paths.ts +76 -0
- package/issues/preflight.ts +189 -0
- package/issues/repository.ts +203 -0
- package/issues/scout/actions.ts +255 -0
- package/issues/scout/control.ts +80 -0
- package/issues/scout/github.ts +358 -0
- package/issues/scout/paths.ts +129 -0
- package/issues/scout/preflight.ts +277 -0
- package/issues/scout/recommendation.ts +400 -0
- package/issues/scout/scan.ts +143 -0
- package/issues/scout/state.ts +448 -0
- package/issues/scout/worker.ts +1282 -0
- package/issues/state.ts +584 -0
- package/issues/tracker.ts +271 -0
- package/issues/worker.ts +1065 -0
- package/lib/dependencies.ts +61 -0
- package/lib/forge-auth.ts +953 -0
- package/lib/forge.ts +141 -0
- package/lib/gitea.ts +729 -0
- package/lib/github-release.ts +318 -0
- package/lib/inventory.test.ts +79 -0
- package/lib/inventory.ts +53 -0
- package/lib/release.test.ts +269 -0
- package/lib/release.ts +801 -0
- package/omp/commands/adr-resolve.md +8 -0
- package/omp/commands/discover.md +6 -0
- package/omp/commands/epic-next.md +8 -0
- package/omp/commands/flow-change.md +8 -0
- package/omp/commands/flow-goal.md +8 -0
- package/omp/commands/flow-implement.md +8 -0
- package/omp/commands/flow-widget.md +8 -0
- package/omp/commands/goal-draft.md +8 -0
- package/omp/commands/goal-outcome.md +8 -0
- package/omp/commands/implement-issue.md +8 -0
- package/omp/commands/prepare-skills.md +6 -0
- package/omp/commands/scout-recommendations.md +8 -0
- package/omp/commands/setup-devboard.md +24 -0
- package/omp/config.yml +12 -0
- package/omp/extensions/implement-goal-issue.ts +2 -0
- package/omp/extensions/implement-next-epic.ts +2 -0
- package/omp/mcp.json +9 -0
- package/package.json +86 -7
- package/prompts/adr-resolve.md +130 -0
- package/prompts/discover.md +541 -0
- package/prompts/epic-next.md +533 -0
- package/prompts/flow-change.md +76 -0
- package/prompts/flow-goal.md +126 -0
- package/prompts/flow-implement.md +103 -0
- package/prompts/flow-widget.md +54 -0
- package/prompts/goal-draft.md +147 -0
- package/prompts/goal-outcome.md +87 -0
- package/prompts/implement-issue.md +66 -0
- package/prompts/prepare-skills.md +142 -0
- package/prompts/scout-recommendations.md +143 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +6 -0
- package/server/acp.ts +540 -0
- package/server/activity.test.ts +96 -0
- package/server/activity.ts +48 -0
- package/server/app.test.ts +882 -0
- package/server/app.ts +6179 -0
- package/server/ask.test.ts +543 -0
- package/server/ask.ts +589 -0
- package/server/dependencies.test.ts +118 -0
- package/server/discover-remote.test.ts +1602 -0
- package/server/discover-sheet.test.ts +176 -0
- package/server/discover.test.ts +1510 -0
- package/server/discover.ts +3198 -0
- package/server/feedback.test.ts +458 -0
- package/server/feedback.ts +369 -0
- package/server/fixtures/adr-source.ts +71 -0
- package/server/fixtures/hang-download.ts +14 -0
- package/server/fixtures/stub-agent.ts +1870 -0
- package/server/fixtures/stub-forge.ts +141 -0
- package/server/fixtures/stub-gh.ts +57 -0
- package/server/flow-pr.test.ts +976 -0
- package/server/flow.test.ts +1632 -0
- package/server/flow.ts +2655 -0
- package/server/forge-pr.ts +387 -0
- package/server/goal-creation.test.ts +957 -0
- package/server/goal-draft.test.ts +348 -0
- package/server/goal-drafts.ts +449 -0
- package/server/goal-proposal.test.ts +479 -0
- package/server/goal-proposal.ts +232 -0
- package/server/goal-revision.test.ts +613 -0
- package/server/goal-slug.test.ts +56 -0
- package/server/goal-slug.ts +96 -0
- package/server/goal.ts +20 -0
- package/server/index.ts +147 -0
- package/server/issue-close.test.ts +100 -0
- package/server/issue-close.ts +178 -0
- package/server/issues.test.ts +167 -0
- package/server/issues.ts +479 -0
- package/server/journal.test.ts +350 -0
- package/server/journal.ts +329 -0
- package/server/lifecycle-pause.test.ts +1795 -0
- package/server/lifecycle.test.ts +1879 -0
- package/server/parallel-lifecycle.test.ts +1029 -0
- package/server/persistence-restart.test.ts +723 -0
- package/server/persistence.test.ts +1935 -0
- package/server/records.test.ts +180 -0
- package/server/records.ts +99 -0
- package/server/reset-implementation.test.ts +997 -0
- package/server/run.test.ts +611 -0
- package/server/scout.test.ts +877 -0
- package/server/scout.ts +459 -0
- package/server/skills-preparation.test.ts +1073 -0
- package/server/state.ts +249 -0
- package/server/tracker.ts +369 -0
- package/server/updates.test.ts +444 -0
- package/server/updates.ts +198 -0
- package/server/version.test.ts +140 -0
- package/server/version.ts +151 -0
- package/server/watchdog.ts +389 -0
- package/svelte.config.js +5 -0
- package/templates/host-AGENTS.md +235 -0
- package/tsconfig.json +21 -0
- package/vite.config.ts +21 -0
- package/watchdog/cleanup-main.ts +98 -0
- package/watchdog/cleanup.ts +301 -0
- package/watchdog/collect.ts +311 -0
- package/watchdog/coordinator.ts +397 -0
- package/watchdog/delivery.ts +107 -0
- package/watchdog/discovery.ts +209 -0
- package/watchdog/findings.ts +211 -0
- package/watchdog/github.ts +189 -0
- package/watchdog/history.ts +138 -0
- package/watchdog/install.ts +103 -0
- package/watchdog/ledger.ts +188 -0
- package/watchdog/lock.ts +63 -0
- package/watchdog/main.ts +106 -0
- package/watchdog/status.ts +71 -0
- package/watchdog/systemd.ts +96 -0
- package/watchdog/uninstall.ts +30 -0
- package/watchdog/units/devboard-watchdog.service +9 -0
- package/watchdog/units/devboard-watchdog.timer +10 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { onMount } from "svelte";
|
|
3
|
+
import * as monaco from "monaco-editor/editor/editor.api";
|
|
4
|
+
import "monaco-editor/languages/definitions/markdown/register";
|
|
5
|
+
import EditorWorker from "monaco-editor/editor/editor.worker?worker";
|
|
6
|
+
import { layout } from "../layout.svelte";
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
value: string;
|
|
10
|
+
label: string;
|
|
11
|
+
"data-testid": string;
|
|
12
|
+
language?: string;
|
|
13
|
+
readOnly?: boolean;
|
|
14
|
+
dirty?: boolean;
|
|
15
|
+
minHeight?: number;
|
|
16
|
+
onchange?: (value: string) => void;
|
|
17
|
+
onsave?: () => void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
let {
|
|
21
|
+
value,
|
|
22
|
+
label,
|
|
23
|
+
"data-testid": testid,
|
|
24
|
+
language = "markdown",
|
|
25
|
+
readOnly = false,
|
|
26
|
+
dirty = false,
|
|
27
|
+
minHeight = 0,
|
|
28
|
+
onchange,
|
|
29
|
+
onsave,
|
|
30
|
+
}: Props = $props();
|
|
31
|
+
|
|
32
|
+
let host: HTMLDivElement;
|
|
33
|
+
let editor: monaco.editor.IStandaloneCodeEditor | undefined;
|
|
34
|
+
let applyingExternal = false;
|
|
35
|
+
|
|
36
|
+
const environment = self as unknown as { MonacoEnvironment: unknown };
|
|
37
|
+
environment.MonacoEnvironment = {
|
|
38
|
+
getWorker: () => new EditorWorker(),
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
monaco.editor.defineTheme("devboard-dark", {
|
|
42
|
+
base: "vs-dark",
|
|
43
|
+
inherit: true,
|
|
44
|
+
rules: [
|
|
45
|
+
{ token: "keyword", foreground: "ff7b72" },
|
|
46
|
+
{ token: "string", foreground: "a5d6ff" },
|
|
47
|
+
{ token: "comment", foreground: "8b949e", fontStyle: "italic" },
|
|
48
|
+
{ token: "heading", foreground: "79c0ff", fontStyle: "bold" },
|
|
49
|
+
{ token: "strong", foreground: "e6edf3", fontStyle: "bold" },
|
|
50
|
+
{ token: "emphasis", foreground: "e6edf3", fontStyle: "italic" },
|
|
51
|
+
],
|
|
52
|
+
colors: {
|
|
53
|
+
"editor.background": "#0d1117",
|
|
54
|
+
"editor.foreground": "#e6edf3",
|
|
55
|
+
"editorLineNumber.foreground": "#6e7681",
|
|
56
|
+
"editorLineNumber.activeForeground": "#c9d1d9",
|
|
57
|
+
"editor.selectionBackground": "#264f78",
|
|
58
|
+
"editor.lineHighlightBackground": "#161b22",
|
|
59
|
+
"editorCursor.foreground": "#58a6ff",
|
|
60
|
+
"editorWidget.background": "#161b22",
|
|
61
|
+
"editorWidget.border": "#6e7681",
|
|
62
|
+
"scrollbarSlider.background": "#484f5866",
|
|
63
|
+
"scrollbarSlider.hoverBackground": "#6e768199",
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
monaco.editor.defineTheme("devboard-light", {
|
|
68
|
+
base: "vs",
|
|
69
|
+
inherit: true,
|
|
70
|
+
rules: [
|
|
71
|
+
{ token: "keyword", foreground: "cf222e" },
|
|
72
|
+
{ token: "string", foreground: "0a3069" },
|
|
73
|
+
{ token: "comment", foreground: "57606a", fontStyle: "italic" },
|
|
74
|
+
{ token: "heading", foreground: "0550ae", fontStyle: "bold" },
|
|
75
|
+
],
|
|
76
|
+
colors: {
|
|
77
|
+
"editor.background": "#ffffff",
|
|
78
|
+
"editor.foreground": "#1f2328",
|
|
79
|
+
"editorLineNumber.foreground": "#8c959f",
|
|
80
|
+
"editorLineNumber.activeForeground": "#1f2328",
|
|
81
|
+
"editor.selectionBackground": "#b6d7ff",
|
|
82
|
+
"editor.lineHighlightBackground": "#f6f8fa",
|
|
83
|
+
"editorCursor.foreground": "#0969da",
|
|
84
|
+
"editorWidget.background": "#ffffff",
|
|
85
|
+
"editorWidget.border": "#6e7781",
|
|
86
|
+
},
|
|
87
|
+
});
|
|
88
|
+
|
|
89
|
+
function currentTheme(): string {
|
|
90
|
+
return document.documentElement.dataset.theme === "light" ? "devboard-light" : "devboard-dark";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
onMount(() => {
|
|
94
|
+
if (host === undefined) return;
|
|
95
|
+
editor = monaco.editor.create(host, {
|
|
96
|
+
value,
|
|
97
|
+
language,
|
|
98
|
+
theme: currentTheme(),
|
|
99
|
+
ariaLabel: label,
|
|
100
|
+
readOnly,
|
|
101
|
+
domReadOnly: readOnly,
|
|
102
|
+
automaticLayout: true,
|
|
103
|
+
minimap: { enabled: false },
|
|
104
|
+
scrollBeyondLastLine: false,
|
|
105
|
+
wordWrap: "on",
|
|
106
|
+
fontSize: 13,
|
|
107
|
+
lineHeight: 20,
|
|
108
|
+
fontFamily:
|
|
109
|
+
'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace',
|
|
110
|
+
padding: { top: 8, bottom: 8 },
|
|
111
|
+
renderLineHighlight: "line",
|
|
112
|
+
lineNumbersMinChars: 3,
|
|
113
|
+
folding: false,
|
|
114
|
+
glyphMargin: false,
|
|
115
|
+
overviewRulerBorder: false,
|
|
116
|
+
overviewRulerLanes: 0,
|
|
117
|
+
scrollbar: { verticalScrollbarSize: 9, horizontalScrollbarSize: 9 },
|
|
118
|
+
contextmenu: true,
|
|
119
|
+
stickyScroll: { enabled: false },
|
|
120
|
+
});
|
|
121
|
+
|
|
122
|
+
for (const area of host.querySelectorAll("textarea")) {
|
|
123
|
+
area.setAttribute("aria-label", label);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
editor.onDidChangeModelContent(() => {
|
|
127
|
+
if (applyingExternal) return;
|
|
128
|
+
onchange?.(editor?.getValue() ?? "");
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
window.__devboardEditors ??= new Map();
|
|
132
|
+
window.__devboardEditors.set(testid, {
|
|
133
|
+
getValue: () => editor?.getValue() ?? "",
|
|
134
|
+
setValue: (text: string) => editor?.setValue(text),
|
|
135
|
+
isDirty: () => dirty,
|
|
136
|
+
save: () => onsave?.(),
|
|
137
|
+
focus: () => editor?.focus(),
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
return () => {
|
|
141
|
+
window.__devboardEditors?.delete(testid);
|
|
142
|
+
editor?.dispose();
|
|
143
|
+
editor = undefined;
|
|
144
|
+
};
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
$effect(() => {
|
|
148
|
+
const next = value;
|
|
149
|
+
if (editor === undefined) return;
|
|
150
|
+
if (editor.getValue() === next) return;
|
|
151
|
+
applyingExternal = true;
|
|
152
|
+
editor.setValue(next);
|
|
153
|
+
applyingExternal = false;
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
$effect(() => {
|
|
157
|
+
editor?.updateOptions({ readOnly, domReadOnly: readOnly });
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
$effect(() => {
|
|
161
|
+
monaco.editor.setTheme(layout.theme === "light" ? "devboard-light" : "devboard-dark");
|
|
162
|
+
});
|
|
163
|
+
</script>
|
|
164
|
+
|
|
165
|
+
<div
|
|
166
|
+
class="monaco-host"
|
|
167
|
+
class:is-dirty={dirty}
|
|
168
|
+
style:min-height={minHeight > 0 ? `${minHeight}px` : undefined}
|
|
169
|
+
data-testid={testid}
|
|
170
|
+
data-monaco-editor={testid}
|
|
171
|
+
data-dirty={dirty ? "true" : "false"}
|
|
172
|
+
aria-label={label}
|
|
173
|
+
role="group"
|
|
174
|
+
bind:this={host}
|
|
175
|
+
></div>
|
|
176
|
+
|
|
177
|
+
<style>
|
|
178
|
+
.monaco-host {
|
|
179
|
+
border: 1px solid var(--border);
|
|
180
|
+
border-radius: 4px;
|
|
181
|
+
height: 100%;
|
|
182
|
+
min-height: 120px;
|
|
183
|
+
overflow: hidden;
|
|
184
|
+
width: 100%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.monaco-host.is-dirty {
|
|
188
|
+
border-color: var(--warning);
|
|
189
|
+
}
|
|
190
|
+
</style>
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { Dialog } from "bits-ui";
|
|
3
|
+
import X from "lucide-svelte/icons/x";
|
|
4
|
+
import { notificationReport } from "../notification-issue";
|
|
5
|
+
import { notifications, type AppNotification } from "../notifications.svelte";
|
|
6
|
+
import Button from "./ui/button.svelte";
|
|
7
|
+
|
|
8
|
+
interface Props {
|
|
9
|
+
feedbackenabled: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
let { feedbackenabled }: Props = $props();
|
|
13
|
+
|
|
14
|
+
const visible = $derived(notifications.items.slice(0, 4));
|
|
15
|
+
/** Bounds shared with the server's report context. */
|
|
16
|
+
const MAX_DOM_EXCERPT = 4000;
|
|
17
|
+
const MAX_VISIBLE_TEXT = 1500;
|
|
18
|
+
|
|
19
|
+
/** The notification whose issue is being filed, if any. */
|
|
20
|
+
let filing = $state<number | null>(null);
|
|
21
|
+
/** Filed issue URLs, keyed by notification id. */
|
|
22
|
+
let filed = $state<Record<number, string>>({});
|
|
23
|
+
/** Filing failures, keyed by notification id; an empty value is cleared. */
|
|
24
|
+
let failed = $state<Record<number, string>>({});
|
|
25
|
+
|
|
26
|
+
function setHistoryOpen(open: boolean): void {
|
|
27
|
+
if (open) notifications.openHistory();
|
|
28
|
+
else notifications.closeHistory();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function timestamp(value: string): string {
|
|
32
|
+
const date = new Date(value);
|
|
33
|
+
return Number.isNaN(date.getTime()) ? value : date.toLocaleTimeString();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** Files one notification as a UI issue, with the card as its captured context. */
|
|
37
|
+
async function fileIssue(item: AppNotification, event: MouseEvent): Promise<void> {
|
|
38
|
+
const element = (event.currentTarget as Element | null)?.closest(".notification") ?? null;
|
|
39
|
+
if (element === null || filing !== null || filed[item.id] !== undefined) return;
|
|
40
|
+
filing = item.id;
|
|
41
|
+
failed = { ...failed, [item.id]: "" };
|
|
42
|
+
const payload = {
|
|
43
|
+
action: "report",
|
|
44
|
+
report: notificationReport(item),
|
|
45
|
+
route: window.location.pathname,
|
|
46
|
+
url: window.location.href,
|
|
47
|
+
selector: `.notification[data-notification-id="${item.id}"]`,
|
|
48
|
+
dom_excerpt: (element.outerHTML ?? "").slice(0, MAX_DOM_EXCERPT),
|
|
49
|
+
visible_text: ((element as HTMLElement).innerText ?? element.textContent ?? "").slice(
|
|
50
|
+
0,
|
|
51
|
+
MAX_VISIBLE_TEXT,
|
|
52
|
+
),
|
|
53
|
+
viewport: `${window.innerWidth}x${window.innerHeight} @${window.devicePixelRatio}x`,
|
|
54
|
+
captured_at: new Date().toISOString(),
|
|
55
|
+
};
|
|
56
|
+
try {
|
|
57
|
+
const response = await fetch("/api/feedback", {
|
|
58
|
+
method: "POST",
|
|
59
|
+
headers: { "content-type": "application/json" },
|
|
60
|
+
body: JSON.stringify(payload),
|
|
61
|
+
});
|
|
62
|
+
const body = (await response.json().catch(() => null)) as {
|
|
63
|
+
url?: unknown;
|
|
64
|
+
error?: unknown;
|
|
65
|
+
} | null;
|
|
66
|
+
if (!response.ok || typeof body?.url !== "string") {
|
|
67
|
+
throw new Error(
|
|
68
|
+
typeof body?.error === "string"
|
|
69
|
+
? body.error
|
|
70
|
+
: `The server refused the report (${response.status}).`,
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
filed = { ...filed, [item.id]: body.url };
|
|
74
|
+
} catch (error) {
|
|
75
|
+
failed = {
|
|
76
|
+
...failed,
|
|
77
|
+
[item.id]: error instanceof Error ? error.message : String(error),
|
|
78
|
+
};
|
|
79
|
+
} finally {
|
|
80
|
+
filing = null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</script>
|
|
84
|
+
|
|
85
|
+
{#snippet actions(item: AppNotification)}
|
|
86
|
+
<div class="notification__actions">
|
|
87
|
+
{#if filed[item.id] !== undefined}
|
|
88
|
+
<a
|
|
89
|
+
class="notification__link"
|
|
90
|
+
href={filed[item.id]}
|
|
91
|
+
target="_blank"
|
|
92
|
+
rel="noreferrer"
|
|
93
|
+
title="Open the filed issue"
|
|
94
|
+
>
|
|
95
|
+
Open issue
|
|
96
|
+
</a>
|
|
97
|
+
{:else if feedbackenabled && (item.severity === "error" || item.severity === "warning")}
|
|
98
|
+
<Button
|
|
99
|
+
variant="ghost"
|
|
100
|
+
size="sm"
|
|
101
|
+
class="notification__file"
|
|
102
|
+
aria-label="File an issue from this notification"
|
|
103
|
+
title="File an issue from this notification"
|
|
104
|
+
disabled={filing !== null}
|
|
105
|
+
onclick={(event) => void fileIssue(item, event)}
|
|
106
|
+
>
|
|
107
|
+
{filing === item.id ? "Filing…" : "File issue"}
|
|
108
|
+
</Button>
|
|
109
|
+
{/if}
|
|
110
|
+
<button
|
|
111
|
+
type="button"
|
|
112
|
+
class="workspace-tab__close"
|
|
113
|
+
aria-label="Dismiss notification"
|
|
114
|
+
title="Dismiss notification"
|
|
115
|
+
data-command="app.notifications.dismiss"
|
|
116
|
+
onclick={() => notifications.dismiss(item.id)}
|
|
117
|
+
>
|
|
118
|
+
<X size={12} aria-hidden="true" />
|
|
119
|
+
</button>
|
|
120
|
+
</div>
|
|
121
|
+
{/snippet}
|
|
122
|
+
|
|
123
|
+
<section
|
|
124
|
+
class="notification-region"
|
|
125
|
+
data-testid="notifications"
|
|
126
|
+
aria-label="Notifications"
|
|
127
|
+
aria-live="polite"
|
|
128
|
+
>
|
|
129
|
+
{#each visible as item (item.id)}
|
|
130
|
+
<div class="notification" data-severity={item.severity} data-notification-id={item.id}>
|
|
131
|
+
<div class="notification__body">
|
|
132
|
+
<div class="notification__meta">{item.severity} · {timestamp(item.at)}</div>
|
|
133
|
+
<p class="notification__text" role={item.severity === "error" ? "alert" : "status"}>
|
|
134
|
+
{item.text}
|
|
135
|
+
</p>
|
|
136
|
+
{#if failed[item.id]}
|
|
137
|
+
<p class="notification__error" role="alert">Issue not filed: {failed[item.id]}</p>
|
|
138
|
+
{/if}
|
|
139
|
+
</div>
|
|
140
|
+
{@render actions(item)}
|
|
141
|
+
</div>
|
|
142
|
+
{/each}
|
|
143
|
+
</section>
|
|
144
|
+
|
|
145
|
+
<Dialog.Root open={notifications.historyOpen} onOpenChange={setHistoryOpen}>
|
|
146
|
+
<Dialog.Portal>
|
|
147
|
+
<Dialog.Overlay class="dialog-overlay" />
|
|
148
|
+
<Dialog.Content class="dialog-content" aria-label="Notification history" data-testid="notification-history">
|
|
149
|
+
<div class="dialog-header">
|
|
150
|
+
<Dialog.Title class="dialog-title">Notification history</Dialog.Title>
|
|
151
|
+
<Button variant="ghost" size="sm" onclick={() => notifications.closeHistory()}>
|
|
152
|
+
Close
|
|
153
|
+
</Button>
|
|
154
|
+
</div>
|
|
155
|
+
<div class="dialog-body">
|
|
156
|
+
{#if notifications.items.length === 0}
|
|
157
|
+
<p class="empty">No notifications.</p>
|
|
158
|
+
{:else}
|
|
159
|
+
<div class="history-list">
|
|
160
|
+
{#each notifications.items as item (item.id)}
|
|
161
|
+
<div
|
|
162
|
+
class="notification"
|
|
163
|
+
data-severity={item.severity}
|
|
164
|
+
data-notification-id={item.id}
|
|
165
|
+
>
|
|
166
|
+
<div class="notification__body">
|
|
167
|
+
<div class="notification__meta">
|
|
168
|
+
{item.severity} · {timestamp(item.at)}
|
|
169
|
+
</div>
|
|
170
|
+
<p class="notification__text">{item.text}</p>
|
|
171
|
+
{#if failed[item.id]}
|
|
172
|
+
<p class="notification__error" role="alert">
|
|
173
|
+
Issue not filed: {failed[item.id]}
|
|
174
|
+
</p>
|
|
175
|
+
{/if}
|
|
176
|
+
</div>
|
|
177
|
+
{@render actions(item)}
|
|
178
|
+
</div>
|
|
179
|
+
{/each}
|
|
180
|
+
</div>
|
|
181
|
+
{/if}
|
|
182
|
+
</div>
|
|
183
|
+
<div class="dialog-footer">
|
|
184
|
+
<Button
|
|
185
|
+
variant="outline"
|
|
186
|
+
disabled={notifications.items.length === 0}
|
|
187
|
+
data-command="app.notifications.clear"
|
|
188
|
+
onclick={() => notifications.clear()}
|
|
189
|
+
>
|
|
190
|
+
Clear history
|
|
191
|
+
</Button>
|
|
192
|
+
</div>
|
|
193
|
+
</Dialog.Content>
|
|
194
|
+
</Dialog.Portal>
|
|
195
|
+
</Dialog.Root>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { PaneResizer } from "paneforge";
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
orientation: "horizontal" | "vertical";
|
|
6
|
+
minimum: number;
|
|
7
|
+
maximum: number;
|
|
8
|
+
current: number;
|
|
9
|
+
label: string;
|
|
10
|
+
ondblclick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
let { orientation, minimum, maximum, current, label, ondblclick }: Props = $props();
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<PaneResizer
|
|
17
|
+
class="pane-handle"
|
|
18
|
+
data-testid="pane-handle"
|
|
19
|
+
aria-orientation={orientation}
|
|
20
|
+
aria-valuemin={Math.round(minimum)}
|
|
21
|
+
aria-valuemax={Math.round(maximum)}
|
|
22
|
+
aria-valuenow={Math.round(current)}
|
|
23
|
+
aria-label={label}
|
|
24
|
+
{ondblclick}
|
|
25
|
+
/>
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import Inbox from "lucide-svelte/icons/inbox";
|
|
3
|
+
import type { ScoutIssueRow } from "../types";
|
|
4
|
+
|
|
5
|
+
interface Props {
|
|
6
|
+
issues: ScoutIssueRow[];
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
let { issues }: Props = $props();
|
|
10
|
+
|
|
11
|
+
/** A local clock reading; the raw ISO value stays in the cell tooltip. */
|
|
12
|
+
function createdLabel(value: string): string {
|
|
13
|
+
const date = new Date(value);
|
|
14
|
+
if (Number.isNaN(date.getTime())) return value;
|
|
15
|
+
return date.toLocaleString([], {
|
|
16
|
+
month: "short",
|
|
17
|
+
day: "numeric",
|
|
18
|
+
hour: "2-digit",
|
|
19
|
+
minute: "2-digit",
|
|
20
|
+
hour12: false,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/** Newest creation first; the number breaks a same-instant tie. */
|
|
25
|
+
const rows = $derived(
|
|
26
|
+
[...issues].sort((left, right) => {
|
|
27
|
+
const leftAt = Date.parse(left.createdAt);
|
|
28
|
+
const rightAt = Date.parse(right.createdAt);
|
|
29
|
+
if (Number.isFinite(leftAt) && Number.isFinite(rightAt) && leftAt !== rightAt) {
|
|
30
|
+
return rightAt - leftAt;
|
|
31
|
+
}
|
|
32
|
+
return right.number - left.number;
|
|
33
|
+
}),
|
|
34
|
+
);
|
|
35
|
+
</script>
|
|
36
|
+
|
|
37
|
+
<section class="panel" aria-label="Auto Scout issues">
|
|
38
|
+
<div class="panel__header">
|
|
39
|
+
<h2 class="panel__title">Filed issues</h2>
|
|
40
|
+
<span class="panel__subtitle">{rows.length}</span>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="panel__body panel__body--flush" data-testid="scout-issues">
|
|
43
|
+
{#if rows.length === 0}
|
|
44
|
+
<div class="scout-issues__empty" data-testid="scout-issues-empty">
|
|
45
|
+
<div class="scout-issues__empty-body">
|
|
46
|
+
<span class="scout-issues__empty-icon" aria-hidden="true">
|
|
47
|
+
<Inbox size={20} strokeWidth={1.5} />
|
|
48
|
+
</span>
|
|
49
|
+
<p class="scout-issues__empty-title">No issues filed yet</p>
|
|
50
|
+
<p class="scout-issues__empty-copy">
|
|
51
|
+
Auto Scout files significant findings here after each scan.
|
|
52
|
+
</p>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
{:else}
|
|
56
|
+
<div class="table-wrap">
|
|
57
|
+
<table class="scout-issues-table">
|
|
58
|
+
<thead>
|
|
59
|
+
<tr>
|
|
60
|
+
<th scope="col">Title</th>
|
|
61
|
+
<th scope="col">Created</th>
|
|
62
|
+
<th scope="col">Category</th>
|
|
63
|
+
<th scope="col">State</th>
|
|
64
|
+
<th scope="col">Shipped</th>
|
|
65
|
+
</tr>
|
|
66
|
+
</thead>
|
|
67
|
+
<tbody>
|
|
68
|
+
{#each rows as row (row.number)}
|
|
69
|
+
<tr
|
|
70
|
+
data-testid="scout-issue"
|
|
71
|
+
data-number={row.number}
|
|
72
|
+
data-state={row.state}
|
|
73
|
+
data-version={row.version ?? "—"}
|
|
74
|
+
>
|
|
75
|
+
<td class="scout-issues-table__title">
|
|
76
|
+
<a
|
|
77
|
+
data-testid="scout-issue-title"
|
|
78
|
+
href={row.url}
|
|
79
|
+
target="_blank"
|
|
80
|
+
rel="noreferrer"
|
|
81
|
+
title={row.title}
|
|
82
|
+
>
|
|
83
|
+
{row.title}
|
|
84
|
+
</a>
|
|
85
|
+
</td>
|
|
86
|
+
<td class="mono" data-testid="scout-issue-created" title={row.createdAt}>
|
|
87
|
+
<time datetime={row.createdAt}>{createdLabel(row.createdAt)}</time>
|
|
88
|
+
</td>
|
|
89
|
+
<td data-testid="scout-issue-type">{row.category ?? "—"}</td>
|
|
90
|
+
<td>
|
|
91
|
+
<span
|
|
92
|
+
class="badge"
|
|
93
|
+
data-tone={row.state === "pending" ? "accent" : "success"}
|
|
94
|
+
data-testid="scout-issue-state"
|
|
95
|
+
>
|
|
96
|
+
{row.state}
|
|
97
|
+
</span>
|
|
98
|
+
</td>
|
|
99
|
+
<td class="mono" data-testid="scout-issue-version">{row.version ?? "—"}</td>
|
|
100
|
+
</tr>
|
|
101
|
+
{/each}
|
|
102
|
+
</tbody>
|
|
103
|
+
</table>
|
|
104
|
+
</div>
|
|
105
|
+
{/if}
|
|
106
|
+
</div>
|
|
107
|
+
</section>
|
|
108
|
+
|
|
109
|
+
<style>
|
|
110
|
+
.scout-issues__empty {
|
|
111
|
+
align-items: center;
|
|
112
|
+
display: flex;
|
|
113
|
+
justify-content: center;
|
|
114
|
+
min-height: 100%;
|
|
115
|
+
padding: 24px 16px;
|
|
116
|
+
text-align: center;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.scout-issues__empty-body {
|
|
120
|
+
align-items: center;
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
gap: 4px;
|
|
124
|
+
max-width: 360px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.scout-issues__empty-icon {
|
|
128
|
+
color: var(--muted-foreground);
|
|
129
|
+
display: flex;
|
|
130
|
+
margin-bottom: 4px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.scout-issues__empty-title {
|
|
134
|
+
font-size: 13px;
|
|
135
|
+
font-weight: 600;
|
|
136
|
+
line-height: 1.3;
|
|
137
|
+
margin: 0;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.scout-issues__empty-copy {
|
|
141
|
+
color: var(--muted-foreground);
|
|
142
|
+
font-size: 12px;
|
|
143
|
+
line-height: 1.45;
|
|
144
|
+
margin: 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.table-wrap {
|
|
148
|
+
overflow: auto;
|
|
149
|
+
width: 100%;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
tbody tr:hover {
|
|
153
|
+
background: var(--row-hover);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
table {
|
|
157
|
+
border-collapse: collapse;
|
|
158
|
+
font-size: 12px;
|
|
159
|
+
table-layout: fixed;
|
|
160
|
+
width: 100%;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
th {
|
|
164
|
+
background: var(--surface);
|
|
165
|
+
border-bottom: 1px solid var(--border);
|
|
166
|
+
color: var(--muted-foreground);
|
|
167
|
+
font-size: 10px;
|
|
168
|
+
font-weight: 700;
|
|
169
|
+
letter-spacing: 0.06em;
|
|
170
|
+
padding: 2px 8px;
|
|
171
|
+
text-align: left;
|
|
172
|
+
text-transform: uppercase;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
td {
|
|
176
|
+
border-bottom: 1px solid var(--border-subtle);
|
|
177
|
+
height: 28px;
|
|
178
|
+
line-height: 26px;
|
|
179
|
+
max-width: 0;
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
padding: 0 8px;
|
|
182
|
+
text-overflow: ellipsis;
|
|
183
|
+
white-space: nowrap;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
th:nth-child(1) {
|
|
187
|
+
width: 40%;
|
|
188
|
+
}
|
|
189
|
+
th:nth-child(2) {
|
|
190
|
+
width: 20%;
|
|
191
|
+
}
|
|
192
|
+
th:nth-child(3) {
|
|
193
|
+
width: 12%;
|
|
194
|
+
}
|
|
195
|
+
th:nth-child(4) {
|
|
196
|
+
width: 15%;
|
|
197
|
+
}
|
|
198
|
+
th:nth-child(5) {
|
|
199
|
+
width: 13%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.scout-issues-table__title {
|
|
203
|
+
overflow-wrap: anywhere;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.scout-issues-table__title a {
|
|
207
|
+
color: var(--foreground);
|
|
208
|
+
text-decoration: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.scout-issues-table__title a:hover {
|
|
212
|
+
color: var(--accent);
|
|
213
|
+
text-decoration: underline;
|
|
214
|
+
}
|
|
215
|
+
</style>
|