Commit Graph

45 Commits

Author SHA1 Message Date
d78d1aa722 docs: record the UI verification workflow and its limits
- AGENTS §3: UI/GUI verification must be run by the user via
  ui-smoke.cmd; the DSH sandbox blocks named pipes so WebView2 cannot
  start, and Rust->JS calls have no compiler check.
- HANDOFF §4.1: canonical description (why the sandbox fails, the script
  flow, the report/screenshot outputs, when to run it, maintenance notes).
- STATUS §12: current verification matrix; README: command.
2026-11-04 17:33:34 +08:00
1ad4a265c3 docs: record the passing UI smoke and add it to the checklists
ui-smoke.cmd ran on the user's desktop: 8/8 checks, screenshot shows the
page restored (tab bar, headings, VS Dark code block). Add it to the README
build steps and the HANDOFF acceptance checklist, and note the verified run
in STATUS.
2026-11-04 17:30:19 +08:00
2fc3f740ca test: add a bypass wrapper for the UI smoke script
Windows PowerShell with an AllSigned policy refuses unsigned .ps1 files.
ui-smoke.cmd runs ui-smoke.ps1 with a process-scoped -ExecutionPolicy Bypass
(no system policy change) and keeps the window open when double-clicked.
2026-11-04 17:12:32 +08:00
590a9a016c fix: restore the page content call and stop writing the registry
- render_active_document passed the tab id as the first __setContent argument,
  but the page signature starts with previewHtml, so #preview rendered the tab
  id ("1", "2", "3" as tabs were opened) and the window looked blank. The call
  now goes through set_content_script(), and a test pins the exact script plus
  the page signature so the two cannot drift silently.
- remove register_as_default() and the winreg dependency: the app no longer
  writes HKCU on launch. publish.ps1 still refreshes the .md association.
2026-11-04 15:25:13 +08:00
0b97bcb6dc test: add a CDP-based pre-release UI smoke harness
The DSH sandbox blocks named pipes, so Chromium/WebView2 cannot start inside
it (window renders white, msedgewebview2 exits immediately; Edge headless
fails with a Mojo platform-channel access-denied fatal). UI verification
therefore moves to a script the user runs from a normal desktop shell.

- agent/tests/ui-smoke.ps1: launches the built exe with an isolated config
  and --remote-debugging-port, waits for the port, runs the driver, closes.
- agent/tests/ui-smoke.mjs: connects over CDP, snapshots the page (preview
  content, headings, fold toggles, highlighted code, window.ipc bridge),
  saves a screenshot and a JSON report for the agent to read.
- The driver was validated against a mock CDP server; the real end-to-end run
  needs a desktop shell (sandbox cannot host WebView2).
2026-11-04 15:15:24 +08:00
fadba614a8 docs: record the Windows-only split and the next steps
Adds agent/docs/next-2026-11-03.md: the remaining refactor, the decided but
unimplemented HKCU removal (publish.ps1 stays as is) and the editor-styling
design (no implementation chosen yet).
2026-11-03 23:22:33 +08:00
d5ba2495ba docs: record the page/markdown module split 2026-11-03 23:03:44 +08:00
44fe93ec20 docs: allow modular code and refresh the handoff state
- AGENTS.md: new files and module splits need no approval; bug fixes,
  refactors, tests and docs can be done directly with one commit each.
  Only out-of-repo changes, releases, new third-party code and invariant
  changes still stop for a decision. Adds the exe-size and readability
  invariants.
- HANDOFF/STATUS/roadmap/README: correct the stale test count, file
  sizes, session-restore claims and session.json entry; record per-tab
  edit mode/scroll, the .txt removal, and the open editor-styling design
  question.
2026-11-03 22:11:52 +08:00
d2b1630a35 chore: switch to Low workspace and Nutstore-only publish
- build.ps1: dev build only; no copy to a fixed exe
- publish.ps1: user-run Medium publish to Nutstore
- docs: workspace stays D:\Scripts\md-preview, repo under AgentLowWorking
- .gitignore: local test/ scratch directory
2026-11-02 01:26:49 +08:00
301e042bec docs: record v1.4.2-local.5 release 2026-10-30 18:50:21 +08:00
d54b953094 docs: prepare v1.4.2-local.5 release 2026-10-30 18:49:12 +08:00
dd4083fe80 docs: prepare v1.4.2-local.4 release
- Record the New Tab model and English-only UI
- Document the release build hash and deployment
- Add v1.4.2-local.4 release notes
2026-10-28 19:39:23 +08:00
809b7b0299 feat: add Home as the default tab
- Model Home as a tab without a file path (Option<PathBuf>)
- + creates a Home tab; opening a file from Home reuses that tab
- Add a New File button to the Home page (replaces + for file creation)
- Closing the last file tab falls back to a Home tab
- Hide the tab strip while the only tab is Home
- Keep Home tabs out of detach, reveal, watcher, and duplicate checks
2026-10-28 18:21:53 +08:00
abeb426a43 docs: authorize Nutstore mirror after release 2026-10-28 17:41:57 +08:00
47e71cf692 docs: record v1.4.2-local.3 release 2026-10-28 17:38:06 +08:00
52de3f9a0f docs: prepare v1.4.2-local.3 release 2026-10-28 17:36:51 +08:00
5f2234493b docs: update README and release notes for local.3 2026-10-28 15:50:13 +08:00
8c6c862f5a docs: record independent review and review fixes 2026-10-28 15:34:33 +08:00
5f08b71d07 docs: record single-tab menu fix and debug build note 2026-10-28 15:04:55 +08:00
fe32d6fe3e docs: record tab context menu and detach 2026-10-28 14:53:18 +08:00
bab8e96197 docs: record global dedupe and recent-only startup 2026-10-28 14:46:49 +08:00
55d78485dd docs: record phase two window creation 2026-10-28 13:46:51 +08:00
593dc29f21 docs: record phase one window state refactor 2026-10-28 13:39:49 +08:00
625ffdb1b6 docs: plan single-process multi-window refactor 2026-10-28 13:34:54 +08:00
bbfc4cfb0b docs: publish v1.4.2-local.2 and record token path 2026-10-27 12:18:39 +08:00
7fda49b425 docs: add release notes for v1.4.2-local.2 2026-10-27 12:11:29 +08:00
743ae5d6ee docs: record deployment and Nutstore mirror 2026-10-27 12:01:59 +08:00
53c39af0c8 test: cover multiline math with soft-break rewrite 2026-10-27 11:56:52 +08:00
968e89bf98 docs: record markdown compatibility status 2026-10-27 11:56:17 +08:00
07ac99764f feat: widen markdown compatibility for AI output 2026-10-27 11:54:03 +08:00
2a4df2e3c5 docs: record Gitea release v1.4.2-local.1 2026-10-21 17:39:12 +08:00
87fd5fef4b docs: rewrite README and add v1.4.2-local.1 release notes 2026-10-21 17:33:47 +08:00
6a8b03b930 docs: final handoff for completed feature set 2026-10-21 17:24:30 +08:00
7dbd1e85cd chore: keep verification screenshots out of git 2026-10-21 17:21:11 +08:00
a6eb39b127 docs: status after save-failure and layout fixes 2026-10-21 17:07:29 +08:00
ef34b5a29b docs: status after heading folding 2026-10-21 16:53:06 +08:00
f74a04bd13 feat: fold heading sections with hover toggles
- Wrap #preview children into nested section.mdp-fold/.mdp-fold-body by heading level
- Chevron button appears on heading hover; H2 folds to next H2, H3 to next H3, nested sections included
- No persistence: every render starts fully expanded
- Find auto-expands collapsed ancestors before scrolling to a hit
- Print expands all sections and hides the toggles
2026-10-21 16:53:03 +08:00
99e1f0b6bf docs: status after zoom persistence 2026-10-21 16:41:09 +08:00
eb4983813a docs: status after dark code theme 2026-10-21 16:34:09 +08:00
9717dc9690 feat: always-dark VS code blocks, remove Find button
- Replace github light/dark hljs themes with assets/hljs/vs-dark.css (#1e1e1e bg, VS token colors)
- Drop the prefers-color-scheme stylesheet switch; code blocks stay dark in both themes
- Remove the toolbar Find button and its strings/icon; Ctrl+F and the findbar are unchanged
- Print keeps the dark background via print-color-adjust: exact
- Delete unused github.min.css / github-dark.min.css
2026-10-21 16:33:56 +08:00
f95bee8155 docs: correct leftover temp count 2026-10-21 16:23:35 +08:00
ae2d5a3d04 docs: status after Ctrl+wheel zoom 2026-10-21 16:23:15 +08:00
1e8cbea902 feat: zoom content with Ctrl+wheel (5% step, 50-300%)
- Ctrl+wheel zooms preview and editor; 90ms throttle; preventDefault stops WebView2 page zoom
- Range widened to 50-300%, step unified at 5% for wheel, toolbar buttons and Ctrl +/-
- No mouse-anchor (same scrolling behavior as button zoom)
- Add agent/AGENTS.md: workspace boundary is the top rule; build/test temp dirs stay in target/
- build.ps1 redirects TEMP/TMP into target/tmp
2026-10-21 16:23:00 +08:00
1191cdd53b docs: add rolling project status 2026-10-21 16:14:51 +08:00
f63aff47a8 chore: baseline md-preview 1.4.2 + agent workspace 2026-10-21 16:06:27 +08:00