Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ Openza Reader is a Windows-first, read-only Markdown reader.
- Keep remote assets explicit and local app assets bundled; no CDN dependencies.
- Preserve the native Windows feel with WinUI 3 controls and system theme behavior.

## Desktop UI Direction
- Treat Openza Reader as a desktop document app, not a mobile-style centered card app. Use the available window space for start, recents, settings, about, and document-management surfaces.
- Avoid narrow centered panels for substantial surfaces. Prefer desktop-width layouts with clear regions, such as a left identity/action column and a flexible main content region, or a full settings/about page when content has multiple sections.
- Use `ContentDialog` only for small blocking decisions or compact information. Do not put multi-section settings, large link collections, recent-file lists, or other page-like experiences into cramped modal layouts.
- Settings should follow WinUI Gallery-style settings layouts: grouped sections, card-like rows, icons where helpful, descriptions, right-aligned controls on wide layouts, and stacked controls on narrow layouts.
- About should feel like a native desktop app identity surface: app icon/name/version, concise purpose, and structured icon rows for documentation, source, issues, security, license, and notices. Avoid loose hyperlink lists.
- Empty states should include a clear primary action and use the rest of the page for useful recovery or continuation content, especially recent files.
- Reading surfaces may center document controls around the reading column when it improves calm focus. App-management workspaces such as Settings, About, and Recents should remain left-aligned and structured like native desktop pages.
- Before finalizing UI changes, check the same surface at full desktop width, portrait/narrow width, and High Contrast. Watch for wasted space, clipped text, duplicated titles, hidden exits, and toolbar/stat/title overlap.

## Technical Defaults
- .NET 10 LTS
- Windows App SDK 2.0.x
Expand Down
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,11 @@ Install: [Microsoft Store](https://apps.microsoft.com/detail/9NNPMN0JSSW5?hl=en-
- Disable raw HTML in Markdown input
- Highlight fenced code blocks with bundled Prism-compatible assets
- Show a table of contents from document headings
- Search with WebView2's native Find API
- Zoom, copy selected rendered text, reload, and open in the system editor
- Search with an explicit toolbar button backed by WebView2's native Find API
- Switch between Preview, Raw, and Side by side read-only view modes
- Choose reader theme, remote image policy, and default view mode in Settings
- Open recent files from the empty state
- Zoom, copy selected text, reload, and open the current file with an installed Markdown editor through Windows
- Auto reload changed files with debounce
- Ship as MSIX with Markdown file associations

Expand All @@ -29,7 +32,7 @@ Install: [Microsoft Store](https://apps.microsoft.com/detail/9NNPMN0JSSW5?hl=en-
- .NET 10 SDK
- Windows App SDK 2.0.x

The development build is configured as Windows App SDK self-contained so `dotnet run` can launch without first registering a machine-wide Windows App Runtime.
The development build is configured as Windows App SDK self-contained so `dotnet run` can launch without first registering a machine-wide Windows App Runtime. The app manifest and package minimum target Windows 10 22H2 (`10.0.19045.0`), and the app project produces self-contained `win-x64` build output for release validation.

You can install the required WinUI development workload with Microsoft's winget configuration:

Expand All @@ -49,7 +52,7 @@ For Store packaging, open the solution in Visual Studio and use **Publish > Crea

## Security Posture

Markdown is rendered as untrusted content. Raw HTML is disabled, WebView2 host objects and web messages are disabled, app navigation is intercepted, and external links are launched through the Windows shell instead of inside the embedded WebView.
Markdown is rendered as untrusted content. Raw HTML is disabled, WebView2 host objects and web messages are disabled, app navigation is intercepted, and external links are launched through the Windows shell instead of inside the embedded WebView. Remote images can be blocked from Settings.

See [SECURITY.md](SECURITY.md) and [docs/security.md](docs/security.md) for reporting and implementation details.

Expand Down
68 changes: 68 additions & 0 deletions docs/release-readiness-checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Openza Reader Release Readiness Checklist

Use this checklist before a public Store update or GitHub release. It separates developer validation from user-install validation so packaging issues are not hidden by a working development machine.

## Developer Validation

- Confirm release blockers are closed or explicitly deferred:
- [ ] #12: self-contained .NET runtime packaging verified.
- [ ] #13: Windows minimum version matches project, source manifest, generated package, README, website, and Store copy.
- [ ] #14: WebView2 missing-runtime behavior verified and documented.
- [ ] #16: this checklist is current for the release.
- Run restore:

```powershell
dotnet restore src/Openza.Reader.Tests/Openza.Reader.Tests.csproj
```

- Run tests:

```powershell
dotnet test src/Openza.Reader.Tests/Openza.Reader.Tests.csproj -c Release --no-restore
```

- Run app build:

```powershell
dotnet build src/Openza.Reader/Openza.Reader.csproj -c Release --no-restore
```

- Run public hygiene scan:

```powershell
gitleaks detect --source . --verbose
```

- Inspect the built runtime config. A self-contained package should not require a separate `Microsoft.NETCore.App` install prompt for normal users.
- Inspect the generated `AppxManifest.xml` or MSIX manifest and confirm `MinVersion="10.0.19045.0"`.
- Confirm package size impact from bundling the .NET runtime and record it in release notes. The 2026-05-23 Release x64 build layout was about 217 MiB before MSIX packaging.
- Generate/update screenshots after the final UI is stable.
- Confirm README, website docs, Store copy, release notes, privacy, security, and third-party notices match shipped behavior.

## Manual App Smoke Test

- Open the app from Start and from a Markdown file association.
- Open `.md` and `.markdown` files by file picker, drag/drop, and File Explorer.
- Verify wide tables scroll horizontally without clipping the document.
- Verify Search button and `Ctrl+F` use native WebView2 find.
- Verify Preview, Raw, and Side by side read-only modes.
- Verify TOC behavior in Preview/Side by side and hidden/disabled behavior in Raw.
- Verify recent files open and clear correctly.
- Verify settings persist after restart.
- Verify Editor opens the Windows app picker for installed Markdown-capable applications.
- Verify System, Light, Dark, Sepia, and Windows High Contrast behavior.
- Verify focus mode hides reader chrome, hides TOC, enters fullscreen, and exits with the visible Exit focus button, Esc, and F11.
- Verify zoom, copy, reload, auto reload, local images, remote image policy, and link interception.
- Verify narrow and portrait windows have no clipped labels, title/stat overlap, or broken settings/about layouts.

## User-Install Validation

- Create the Release x64 package or Store upload package.
- Install on a clean supported Windows 10 22H2 machine or clean VM without .NET 10 installed.
- Confirm the app launches without a separate .NET 10 runtime install prompt.
- Confirm WebView2 Runtime behavior:
- If runtime is present, Markdown preview renders normally.
- If runtime is missing or broken, the app shows a clear WebView2 Runtime error with the official install/repair link.
- Confirm install, update, and uninstall work cleanly.
- Confirm Store package signing and identity are correct.
- Confirm release notes mention runtime/package-size impact and prerequisite behavior.
21 changes: 20 additions & 1 deletion docs/release.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,19 @@ The first public release is an MVP:
- `.md` and `.markdown` file associations work.
- File Explorer activation opens one window per file.
- Markdown rendering is safe and visually polished.
- TOC, search, zoom, copy selection, reload, external editor, and auto reload work.
- TOC, search button, Preview/Raw/Side by side modes, recents, settings, zoom, copy selection, reload, external editor, and auto reload work.
- Unit tests pass.
- Manual smoke tests pass on Windows 10 22H2 and Windows 11.
- Release-blocking GitHub issues #12, #13, #14, and #16 are verified or explicitly deferred in release notes.

See [release-readiness-checklist.md](release-readiness-checklist.md) for the full developer and user-install validation checklist.

## Release Blockers From GitHub

- [#12](https://github.com/openza/reader/issues/12): package should be self-contained for the .NET runtime so normal users do not see a separate .NET 10 runtime prompt.
- [#13](https://github.com/openza/reader/issues/13): Windows minimum version must match project, source manifest, generated package, README, website, and Store metadata.
- [#14](https://github.com/openza/reader/issues/14): missing or broken WebView2 Runtime behavior must be verified and user-facing.
- [#16](https://github.com/openza/reader/issues/16): release readiness checklist must be repeatable and current.

## Current Distribution

Expand All @@ -20,6 +30,15 @@ Openza Reader is live on the Microsoft Store:

Microsoft Store remains the trusted public install and update channel for V1.

## Runtime And Platform Notes

- Supported OS target: Windows 10 22H2 (`10.0.19045.0`) or later, and Windows 11.
- V1 architecture: x64.
- The app project is configured for Windows App SDK self-contained deployment and .NET self-contained build output for `win-x64`.
- The 2026-05-23 Release x64 build output used `includedFrameworks` for `Microsoft.NETCore.App` in `Openza.Reader.runtimeconfig.json` and was about 217 MiB before MSIX packaging.
- Final package validation must still install on a clean machine or VM without .NET 10.
- Openza Reader uses WebView2. Windows 11 normally includes the runtime; if WebView2 is absent or broken, the app surfaces a WebView2 Runtime install/repair link.

## Out Of Scope

- Direct winget publishing before Store availability has been verified
Expand Down
135 changes: 135 additions & 0 deletions docs/roadmap-progress-tracker.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
# Openza Reader Roadmap Progress Tracker

Last updated: 2026-05-23

Use this document as the living tracker for the roadmap batches implemented from the Openza Tasks export and Apostrophe research. Keep adding progress notes here after future implementation, QA, Store work, or product decisions.

## Status Legend

- `Done`: implemented and automated verification passed where applicable.
- `Partial`: implemented partly, or code is present but manual/release verification remains.
- `Pending`: not implemented yet.
- `Deferred`: intentionally out of scope for the current plan.

## Current Snapshot

| Batch | Status | Notes |
| --- | --- | --- |
| Batch 1: Fix Reading Basics First | Done | Wide table CSS, Search button, and related reading basics are implemented. Automated build/test passed; final manual smoke QA remains before release. |
| Batch 2: Preview / Raw / Side-By-Side Modes | Done | View modes are implemented as a compact toolbar View menu instead of the earlier full-width SelectorBar strip. |
| Batch 3: Settings, About, External Editor, Recents | Done | Desktop in-app settings/about workspaces, Windows editor picker, polished recents, theme/default view/remote image settings are implemented. |
| Batch 4: Reader Polish From Apostrophe Research | Done | Themes, stats, immersive focus mode with visible exit cue, remote image policy, centered reader toolbar, and improved narrow behavior are implemented. Final High Contrast/narrow manual QA remains before release. |
| Batch 5: Public And Store Polish | Partial | README, docs, website docs, Store listing copy, release checklist, and critical GitHub release issues are now tracked. Screenshots/assets, clean-machine install validation, and final release hygiene remain. |
| Deferred: Tabs | Deferred | Tabs remain out of V1 scope unless product decision changes. |

## Batch Details

### Batch 1: Fix Reading Basics First

Status: Done

- Done: rendered content width and table behavior improved in `src/Openza.Reader/Assets/reader.css`.
- Done: explicit Search button added to the toolbar.
- Done: Search button uses WebView2 native Find behavior.
- Done: zoom, TOC, reload, local/remote images, and link interception were preserved through implementation passes.
- Release QA: wide tables, zoom, TOC, reload, local/remote images, and link interception still need final manual smoke verification.

### Batch 2: Preview / Raw / Side-By-Side Modes

Status: Done

- Done: Preview, Raw, and Side by side view modes added.
- Done: mode switch moved to a compact toolbar View menu using checked `RadioMenuFlyoutItem`s.
- Done: Preview remains default.
- Done: Raw view is selectable, read-only Markdown in a monospaced `TextBox`.
- Done: Side by side shows raw Markdown and preview in equal panes.
- Done: TOC is disabled/hidden in Raw and available in Preview/Side by side.
- Done: copy behavior prefers focused/selected raw text, otherwise selected preview text.

### Batch 3: Settings, About, External Editor, Recents

Status: Done

- Done: Settings moved from a modal dialog to a desktop-width in-app workspace with WinUI Gallery-style rows and immediate persistence.
- Done: Settings include default view mode, reader theme, remote image policy, recents controls, and document stats toggle.
- Done: Editor opens the Windows app picker so the user can choose from installed Markdown-capable applications instead of fixed defaults.
- Done: recent files are local-only and shown on a desktop-width empty-state panel with file icons, folder paths, clear action, and long-text trimming; a toolbar Recent command opens the same recents surface while a document is open.
- Done: About moved from a modal dialog to a desktop-width in-app workspace with app identity, icon link rows for docs/source/issues/security/notices, version, and license/security note.

### Batch 4: Reader Polish From Apostrophe Research

Status: Done

- Done: reader themes: System, Light, Dark, Sepia.
- Done: document stats: word count, estimated read time, heading count.
- Done: immersive focus reading mode enters fullscreen, hides title/toolbar/info/TOC/workspace surfaces, shows a visible Exit focus button, and supports Esc/F11 to exit.
- Done: remote image policy can block remote images and tightens generated CSP.
- Done: TOC hides on narrow windows and the view mode control no longer consumes a full row.
- Done: reader toolbar is centered for the document reading surface; Settings/About/Recents remain left-aligned desktop workspaces.
- Done: toolbar order reviewed and adjusted so Focus sits with reader/view controls.
- Release QA: Windows High Contrast, narrow toolbar behavior, TOC behavior on small windows, and visual polish across real documents still need final manual smoke verification.

### Batch 5: Public And Store Polish

Status: Partial

- Done: README updated for view modes, search, settings, recents, privacy, and themes.
- Done: website docs updated for view modes, security model, rendering, reading workflow, architecture, and Store copy.
- Done: Store listing text updated in docs.
- Done: release readiness checklist added in `docs/release-readiness-checklist.md`.
- Partial: critical GitHub release issues are included in this PR/release gate:
- #12: .NET self-contained packaging is configured and build output runtimeconfig now uses `includedFrameworks`; clean-machine install still needs verification.
- #13: package minimum now aligns with the source manifest/docs at Windows 10 22H2 / `10.0.19045.0`; generated build manifest inspection passed with `MaxVersionTested="10.0.26100.0"`.
- #14: WebView2 initialization now shows a user-facing Runtime install/repair link; missing-runtime behavior still needs clean-machine or VM validation.
- #16: checklist exists and separates developer validation from user-install validation.
- Pending: regenerate Store/listing screenshots after UI stabilizes.
- Pending: verify website copy against the actual shipped behavior after final QA.
- Pending: clean Windows 10 22H2 or Windows 11 VM install test without .NET 10.
- Done: `gitleaks detect --source . --verbose` passed outside the sandbox after PATH verification.

## Verification Log

2026-05-22:

- Passed: `dotnet restore src/Openza.Reader.Tests/Openza.Reader.Tests.csproj`
- Passed: `dotnet test src/Openza.Reader.Tests/Openza.Reader.Tests.csproj -c Release --no-restore`
- Passed: `dotnet build src/Openza.Reader/Openza.Reader.csproj -c Release --no-restore`
- Passed: `ASTRO_TELEMETRY_DISABLED=1 npm run build` from `website/`
- Passed: `git diff --check` with only CRLF warnings
- Blocked: `gitleaks detect --source . --verbose` because `gitleaks` was not found

2026-05-23:

- Passed: `dotnet restore src/Openza.Reader.Tests/Openza.Reader.Tests.csproj`
- Passed: `dotnet test src/Openza.Reader.Tests/Openza.Reader.Tests.csproj -c Release --no-restore`
- Passed: `dotnet build src/Openza.Reader/Openza.Reader.csproj -c Release --no-restore`
- Passed: generated build manifest has `MinVersion="10.0.19045.0"` and `MaxVersionTested="10.0.26100.0"`.
- Passed: runtimeconfig uses `includedFrameworks` for `Microsoft.NETCore.App`, indicating self-contained .NET build output.
- Passed: Release x64 build layout measured about 217 MiB before MSIX packaging.
- Passed: `gitleaks detect --source . --verbose` scanned 23 commits and found no leaks.
- Passed: `ASTRO_TELEMETRY_DISABLED=1 npm run build` from `website/`.

## Manual QA Still Needed

- Wide tables render with horizontal scrolling and no document clipping.
- Search button and `Ctrl+F` both use native find flow.
- Raw view is read-only and text selection/copy works.
- Side by side mode uses equal panes with independent scrolling.
- TOC works in Preview and Side by side, and stays hidden/disabled in Raw.
- Recent files open correctly and can be cleared.
- Settings persist after restart.
- Editor button shows installed Windows app choices for the current Markdown file.
- Theme switching works for System, Light, Dark, and Sepia.
- Windows High Contrast remains readable.
- Narrow layout has no toolbar/stat/title overlap.
- Drag/drop, reload, auto reload, local images, remote image policy, and link interception still work.

## Future Progress Notes

Append dated notes below.

- 2026-05-22: Initial tracker created after roadmap implementation pass.
- 2026-05-23: Corrected Editor behavior to use the Windows app picker, polished Recent files, moved Settings/About to desktop in-app workspaces, and added visible/Esc exit affordances for Focus mode.
- 2026-05-23: Centered the reader toolbar, fixed toolbar label persistence, added Recent command while documents are open, improved Settings/About alignment, and moved Focus into the reader/view command group.
- 2026-05-23: Added GitHub release blockers #12, #13, #14, and #16 to the release gate; aligned package minimum Windows version to 10.0.19045.0; configured and verified .NET self-contained build output; added WebView2 Runtime unavailable error; added release readiness checklist; passed gitleaks.
- 2026-05-23: Fixed review findings for focus-mode window restoration, narrow Settings row layout, and Editor launch failure handling; Release build and tests passed.
Loading
Loading