refactor(PR-02): protocol/reader architecture, /api/documents and reader IA
- migrate crate to RFC-0002 §5.3 Reader layout: src/protocol/{analysis_v2,
trace_v2,tool_v1}.rs, src/reader/{source,markdown,model,assemble,render,
assets}.rs, src/config.rs; lib.rs is the composition root; delete app/project/
semantic/trace/document/presentation/source_map/render/assets top-level files
- split presentation into model (types) and assemble (merge/stale/DocumentService)
- merge controlled project root/path boundary and UTF-8 byte spans into
reader/source.rs; move view.json config to config.rs
- replace GET /api/document with read-only GET /api/documents (documents list +
current outline/function/analysis summary) and add contract tests
- reading UI: drop variable/memory placeholder actions, keep one explicit
unsupported explanation, add simple dark theme toggle over the single token
layer; assert via rendering test
- reorganize tests into Cargo [[test]] suites tests/contract and
tests/integration; record docs/evidence/PR-02
- unit 41 + contract 41 + integration 33 all pass; clippy clean
This commit is contained in:
1 parent
5a61788bc9
commit
5c9a313424
43 files changed
+1222
-936
No files matched your search
@@ -40,6 +40,28 @@
|
||||
--mq-dock-h: 66px;
|
||||
--mq-note-width: 176px;
|
||||
}
|
||||
|
||||
/* Simple dark theme (RFC-VIEW-0002 §1.2 MVP SMALL): one token override
|
||||
* layer, no theme framework, no remote skin. */
|
||||
.mq-reader[data-theme="dark"] {
|
||||
color-scheme: dark;
|
||||
--mq-paper: #1e1b17;
|
||||
--mq-surface: #26221d;
|
||||
--mq-surface-2: #2e2923;
|
||||
--mq-surface-3: #3a332b;
|
||||
--mq-ink: #ece5da;
|
||||
--mq-strong: #f7f2ea;
|
||||
--mq-muted: #ab9c89;
|
||||
--mq-line: #3d362d;
|
||||
--mq-line-strong: #5b5041;
|
||||
--mq-gold: #d0a55f;
|
||||
--mq-gold-soft: #8a6a37;
|
||||
--mq-olive: #a3b482;
|
||||
--mq-ok: #a3b482;
|
||||
--mq-warn: #d7a55a;
|
||||
--mq-error: #e08072;
|
||||
--mq-focus: #e2b877;
|
||||
}
|
||||
}
|
||||
|
||||
@layer reset {
|
||||
|
||||
Reference in new issue
Block a user