feat/input-reader
5
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
49b9084c1c |
feat: an alpha says what it is and asks first - Alpha notice + tick box, the alpha Agent's wait, ALPHA badge/banner, ledger copy; EULA 1.6, Disclaimer 2.12 (D73-D75) (beta.32 PR-2) (#346)
* feat: an alpha says what it is and asks first - the Alpha notice with its own tick box, the alpha Agent's wait, ALPHA badge and banner, the ledger copy before an alpha opens it; EULA 1.6, Disclaimer 2.12 (D73-D75) (beta.32 PR-2) The owner's decisions of 2026-10-31, asked while planning: the alpha replaces the beta and shares its data folder, copying the ledger before it first opens it (D73); a versioned Alpha notice with its own tick box in the Legal Gate, the alpha's Agent waiting for it, a badge and a banner (D74); the EULA and the Disclaimer made true about alphas (D75). Nothing of it shows in a beta. - legal/ALPHA_NOTICE.md 1.0 (the approved text), embedded; Shared.AlphaNotice holds its key and version for both processes. LegalDocuments.Load(BuildLine) adds it after the four on the alpha line; About lists it on every line, for information. - First run: on an alpha's gate a second warning box with the tick box; Accept is disabled until it is ticked. While the notice is outstanding the App holds the Agent's start - a hold of its own beside the updater's, set before the host starts (the connection's first round runs under the first-run window) - and Accept releases it and starts the Agent at once. - Agent: an alpha's --serve reads legal_acceptance after opening the ledger and exits 8 until the notice is accepted at this build's version (the logon task can start it first); maintenance verbs are not held. Its log names the release line and the runtime. - The shell: ALPHA badge beside the Agent pill (tooltip: the runtime), window title "FrameLedger Alpha", a Warning InfoBar at every start, closable for the run, opening the notice. About and --diag name the runtime; Settings locks the update channel on an alpha and says why. - The ledger: LedgerDatabase.OpenAsync(backupFirst:) - an alpha copies the ledger with SQLite's online backup into backups\ledger-before-<version>.db before anything opens it for writing, once per version, under a lock of its own (the migration lock's 30 s would time a slow copy out); the newest three are kept and the copy just made is never pruned; a copy that cannot be made refuses the open (App: start-failure dialog; Agent: exit 7). Never for a viewer. - EULA 1.6 (§2B) and Disclaimer 2.12 (§0): "pre-release builds - betas, and alphas". 12 strings in en/vi/ja (ja marked review). - Docs: 08_UI, 06_DATA_MODEL §Migrations, 01_ARCHITECTURE §Lifecycle and §Data directory, 11_UPDATER, 12_BUILD, LIMITATIONS §Alpha builds, guide/11-alpha-builds.md (+ contents, sidebar, the App's page list), guide/01-install, terms-in-plain-words, wiki/Releasing, CHANGELOG. - Tests: FirstRunViewModel (tick, hold release), LegalDocuments (both lines; the constant equals the document's version), AgentConnection (the notice hold survives the updater's release), SettingsViewModel (locked picker), LedgerBackup (once per version, rows copied, keep three, the copy just made survives a skewed clock, a copy that cannot be made refuses the open, no request copies nothing), AlphaNoticeGate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: the ALPHA badge in the accent appearance, the picker's alpha lock on a container, About's legal list in its test (beta.32 PR-2) The local gate's three reds on the previous commit, each a design test doing its job: - ContrastTests: a badge's literal Appearance may not be a palette one (Danger paints outside the theme dictionaries, 08_UI §Contrast) - the ALPHA badge is Primary, the accent with its own text. - ViewerModeTests: the update-channel picker keeps the viewer switch on the control itself; the alpha line's lock is a Grid around it bound to CanChooseUpdateChannel. - DocumentWindowsTests: About's legal list now names legal/ALPHA_NOTICE.md (on every line, D74). App.Tests 725/725. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test: the alpha's start logic out of App.xaml.cs into AlphaStart, tested; the notice window, the exception, the no-op holds (beta.32 PR-2) SonarCloud's quality gate on #346: new-code coverage 69.3 % against 80 %. The uncovered new lines were the App's start helpers, DocumentWindows.ShowAlphaNotice, MainWindowViewModel's alpha properties, LedgerBackupException's constructors and two default interface members. - Services/AlphaStart: BackupFor (the copy only for an alpha over its own folder) and HoldTheAgentForTheNoticeAsync (the hold only while the notice is outstanding), which App.xaml.cs now calls; AlphaStartTests covers both and the viewer's and a window set's no-op members. - DocumentWindowsTests: the alpha banner's button opens the notice in one window and asking again reveals it. LedgerBackupTests: the exception's three constructors. App.Tests 730/730; dotnet format clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs: one Changed heading under [Unreleased] after main came in (beta.32 PR-2) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
f1e518f962 |
feat: a user guide in the app, the GPL shown for information rather than accepted, EULA 1.5 / Disclaimer 2.10 / Privacy 2.6, and a README for players and for developers (D44, D45, beta.12 PR-5) (#257)
- guide/: eight short English pages for players (install and first start, record a game, read your results, anti-cheat and safety, your data, questions and answers, the terms in plain words), embedded in the App and shown under Help > User guide - the first Help item - with Limitations last; links between pages open in the window. Help > Documentation becomes Online documentation: the README at this build's source. - The Legal Gate: LegalDocument.RequiresAcceptance; the GPL is listed as "your licence", with a line saying GPLv3 section 9 needs no acceptance, and Accept writes three rows (an old gpl row stays, unread). The summary names the user-mode exception (it said there was no way to override the refusal) and the one network request (it said nothing is sent anywhere). - EULA 1.5: an unmeasured session also records the game's memory use; the GPL needs no acceptance; where the third-party notices are in an installed copy; consumer rights no agreement can limit, and severability. Disclaimer 2.10: what it reads about a game from outside it; the maintainers' preface moves to docs/legal-drift-history.md. Privacy 2.6: the game's memory use (replacing a video-memory figure never read), a new section 3A on what an export or a bug report carries about you; the history notes move to the same file. - README: a pointer to the guide up front, the safety table's D38 rule and the feature list's memory line corrected, Tier 2 names the game's memory, NOTICE beside the licence, and a section for developers and forks. - Strings: 3 new keys, 6 changed, en/vi/ja (ja marked review). - Tests: GuideDocumentsTests (every page listed and titled, every link leads somewhere, the section anchor exists), the guide in the renderer's nothing-dropped test (17 documents), the guide window, three acceptance rows and the old gpl row left alone, the documentation link. - Docs: 02_SPEC FR-11, 06_DATA_MODEL, 08_UI, 09_I18N, CLAUDE.md layout, CHANGELOG. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ca2275ce85 |
feat(app): documents rendered, not raw Markdown - the Legal Gate, Help > Limitations, the update notes and a tabbed About with the program's legal notices; links open this version's documents (owner request 4, D45, beta.12 PR-4) (#256)
- Markdown/MarkdownRenderer: Markdig 1.4.0 (BSD-2-Clause) into a themed WPF FlowDocument - headings with GitHub anchors, emphasis, strikethrough, code, quotes, nested and numbered lists, pipe tables, rules, links. HTML is off (shown as text), no image is fetched (its description stands in), an unknown node is shown as its source text. The GPL is shown as written, monospace. - Controls/MarkdownView (FlowDocumentScrollViewer: selectable, Ctrl+C, zoom) and Markdown/MarkdownLinks: http, https and mailto through IUrlOpener, #section scrolls, a relative path resolves against the document's place in the repository and opens in the App when the window holds that page; file:, javascript:, drive and UNC paths are never followed. - Services/RepositoryLinks: release.yml stamps -p:FrameLedgerSourceRef (the tag; a rehearsal's commit) as assembly metadata, so every link into the repository opens this version's documents instead of main's. - The Legal Gate renders its documents (a link to another document opens it in the gate; View on GitHub goes through IUrlOpener); Help > Limitations is Windows/DocumentWindow; Help > About is Windows/AboutWindow - This app (the Appropriate Legal Notices: copyright, no warranty, the licence with the NOTICE terms, this version's source), Third-party licences (THIRD_PARTY_NOTICES and the package index, the licences folder), Legal documents (EULA, GPL, Disclaimer, Privacy, NOTICE, Trademarks). The update notes are rendered. - Licences: tools/license-gather.ps1 takes a reviewed override for an expression it has no text for (sixteen self-test cases); tools/license-overrides/Markdig.txt; legal/licenses/nuget (78 packages); a THIRD_PARTY_NOTICES row, and its "About -> Third-party tab" item ticked. The table there had a note line between its rows, which ended it for Markdig; the note is below the table now. - Strings: 22 new keys, 2 removed, en/vi/ja (ja marked review). - Tests: MarkdownRendererTests (each construct; nothing dropped and no table left as source, for all nine embedded documents), MarkdownLinksTests, DocumentWindowsTests, the first-run opener, the legal documents' paths. - Docs: 08_UI, 11_UPDATER, 16_WPFUI_SYNTAX (FlowDocument), 12_BUILD, 20_OPEN_QUESTIONS, CHANGELOG. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ff949afc6f |
feat(legal): NOTICE with the GPLv3 section 7 additional terms, the licence header in every source file, and the documents for people who build, contribute or redistribute (D45, beta.12 PR-1) (#253)
- NOTICE: copyright, GPL-3.0-only, and three additional terms of the kinds section 7 permits - (b) preserve the notices and the attribution in the program's legal notices, (c) mark a modified version as different and do not call it "FrameLedger" alone, (e) no trademark rights in the name. Shipped as licenses\NOTICE.txt; release.yml refuses a published tree without it. - Section 7 wants additional terms named in the source files: every first-party .cs .cpp .h .inl .ps1 .xaml file (1,053; src/native/third_party excluded) opens with the SPDX line and a pointer to NOTICE. tools/notice-check.ps1 is the gate (six self-test cases, both directions; -Fix writes a missing header) and tools/resx-gen.ps1 generates the string accessors with the header. - The native VERSIONINFO LegalCopyright said GPL-3.0-or-later; it now names the real licence. - CONTRIBUTING.md, FORKING.md, CODE_OF_CONDUCT.md (Contributor Covenant 2.1 by reference), legal/TRADEMARKS.md. - 12_BUILD gate list, CLAUDE.md layout and conventions. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
06440454e2 |
feat(app): first run, the Legal Gate (FR-11), and P3's closing sweep (P3 PR-9) (#164)
FirstRunWindow / FirstRunContent / FirstRunViewModel, shown by ApplicationHostService before the
shell whenever LegalGate says a document has no acceptance at this build's version -- a first run,
or a document whose version moved. The four documents ride in the assembly (legal/EULA.md, LICENSE
as the GPLv3 text, legal/DISCLAIMER.md, legal/PRIVACY_POLICY.md; embedded at build so the App shows
the text this build was reviewed with; authoring comments stripped; {{RELEASE_DATE}} left for
release.yml). One Accept writes four legal_acceptance rows with each document's own **Version:**
line (GPL-3.0-only for the licence); Decline ends the host; a closed window is a decline. Step 2
is the Agent setup (unelevated by default, elevation optional and required by no tier, the
HelloAck facts as they arrive); step 3 the hooking explainer, reusing the consent dialog's reviewed
Tier 1 / Tier 2 paragraphs and saying hooking stays off until enabled per game; step 4 the import
placeholder. Settings > Reopen the legal documents shows them read-only. D8 unchanged.
NFR-4: the first window's time from process start is logged every run (0.83 s for the first-run
window, 1.3-1.5 s for the shell on the dev box); the 100-session query is asserted under 500 ms;
charts draw at most 2 x 2000 points per series per draw.
Closing sweep: 08_UI first-run built note with the numbers, 06_DATA_MODEL legal_acceptance (who
writes the version), 20_OPEN_QUESTIONS section G legal-versioning row answered, 15_ROADMAP P3
code-complete, 09_I18N scope line, CLAUDE.md's App line, HANDOFF row 9 struck and the one START
HERE moved to a P4 pointer.
Tests: App 120 (LegalDocumentsTests, FirstRunViewModelTests, the Settings reopen, both first-run
steps in PagesLoadTests). 29 App strings en/vi/ja.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
|