54 Commits

Author SHA1 Message Date
417fd997a7 feat(registers): deep‑linkable search via ?q=; docs: add docs/ and update README
- Register Explorer:
  - Sync search input with URL query param `q` for shareable deep links
  - Initialize search from `q` on load; update URL on input; remove `q` when cleared
  - Implemented with Next.js `useSearchParams`, `useRouter`, `usePathname`
  - File: src/app/registers/RegisterBrowser.tsx

- Documentation:
  - Add docs/ hub and initial guides
    - docs/index.md (docs index)
    - docs/getting-started.md (install/dev/build/start/lint/deploy)
    - docs/architecture.md (structure, theming, styling, key paths, scripts)
    - docs/registers.md (Register Explorer overview, search, deep links, implementation notes)
  - Rewrite README.md with project overview, features, quick start, scripts, and links to docs

Notes:
- Dev server uses port 4000 (Turbopack) via package.json
- Example deep link: /registers?q=vram

Date: 2025-12-11 13:11 (Junie@lucy.xalior.com)
2025-12-11 13:11:56 +00:00
ea90d72252 Get Junie to propogate the search query to the URL, so we can deeplink searches 2025-12-11 12:12:27 +00:00
ba8ac35f74 Bump next to handle security holes 2025-12-04 11:48:43 +00:00
0a71b5f62e feat(parser): add multi-line footnote support to default register description parser
i
Authored by Junie (AI assistant), not the user. Date: 2025-11-13 15:29 local.

What I changed
•
Implemented multi-line footnote parsing in src/utils/register_parsers/reg_default.ts.
•
Centralized footnote detection so it works both inside and outside access sections (R), (W), (R/W).
•
Added a small parsing state machine for footnotes:
◦
inFootnote: tracks whether we’re currently inside a footnote block.
◦
footnoteBaseIndent: indentation level of the * line that starts the footnote.
◦
currentFootnote: Note: accumulates continued text for the active footnote.
•
When a line starts with *, create a Note and push it to the appropriate collection:
◦
Within an access block → accessData.notes.
◦
Outside an access block → reg.notes.
•
Treat following, more-indented lines as continuations of the same footnote until indentation returns to the base level (or shallower). Continuation lines are appended to the note’s text with their content preserved (trailing spaces trimmed, at least one leading indent removed relative to the base).
•
Ensured any active footnote is closed if EOF is reached.
•
Preserved existing behavior for:
◦
Access sections (R), (W), (R/W) state transitions and finalization to detail.
◦
Bit operation parsing, including extracting trailing * references into footnoteRef.
◦
General text handling, comment skipping (//), and Issue 4 Only flag detection.
•
Minor cleanup: safe optional chaining when computing spaces_at_start.
Why I made these changes
•
The input documentation uses multi-line footnotes that continue on more-indented lines. Previously, only single-line footnotes were supported; continuation lines were misclassified as normal text or operation descriptions.
•
Using indentation to detect continuation cleanly models the authoring style and prevents footnote fragments from leaking into unrelated fields.
•
Centralizing footnote handling avoids duplicate logic and makes the parser more predictable and maintainable.
Notes/assumptions
•
Indentation strictly drives footnote continuation: a line is part of the footnote only if it’s more-indented than the opening * line; returning to the same or shallower indent ends the footnote.
•
Continuation lines remove at least one extra leading indent relative to the base to keep text readable; exact indentation preservation can be adjusted later if required.
•
Data model remains unchanged; only Note typing was imported in this file.
Impact and compatibility
•
No breaking API changes.
•
Behavior is unchanged for non-footnote content.
•
Other parsers unchanged.
Testing and verification
•
Manually exercised the parser against representative excerpts from data/nextreg.txt containing:
◦
Single-line and multi-line footnotes both globally and within access blocks.
◦
Footnote continuation lines with varying indentation.
◦
Bit operation lines with trailing * references.
•
Verified that:
◦
Footnotes aggregate expected text lines.
◦
Access block boundaries and operation parsing remain intact.
◦
Dangling footnotes at EOF are closed without error.
Follow-ups (optional)
•
If exact whitespace fidelity in footnote bodies is desired, adjust continuation concatenation to preserve full leading indentation after the base level.
•
Consider adding parser unit tests that cover footnote edge cases and indentation boundaries.
2025-11-13 15:31:02 +00:00
dd8794af60 GONE 2025-11-13 15:21:30 +00:00
374f4c044d Surpress hydration warning 2025-10-17 13:59:49 +01:00
052b14ca40 Let the server set the theme based on the cookie sent at request time, which should stop flashing 2025-10-17 13:39:25 +01:00
8e687fe176 Attempt 2 to add a darkmode 2025-10-17 12:38:22 +01:00
59d16ebde1 Attempt 1 to add a darkmode 2025-10-17 12:35:48 +01:00
8df71a6457 Manual fixes to GPTs search cache 2025-10-17 11:28:29 +01:00
0beba170a3 Fix dev runner 2025-10-17 11:27:33 +01:00
c306976f3a Adding notes for future work 2025-10-15 23:04:08 +01:00
5b39e84b02 Update parsers to handle more wikilink formats 2025-10-14 13:51:24 +01:00
7c4d93d7ba Fixing up wikilinks 2025-10-13 18:36:05 +01:00
9bc2557ff2 More whitespace, more footnotes, more Case Matching 2025-10-13 18:31:07 +01:00
1bc613dd4e Update whitespace and bullet point refs 2025-10-13 18:12:27 +01:00
d5253f073b Make searching just more robust, by making it a lot dumber 2025-10-13 15:27:55 +01:00
6ce8f6dbdc Make searching just more robust, by making it a lot dumber 2025-10-13 15:19:14 +01:00
ce95d7bcaf Adding more versatile searching 2025-10-13 13:08:52 +01:00
d721ca1758 Some **MANUAL** 😱 CSS changes 2025-10-10 21:14:50 +01:00
3ba737eb03 More whitespace changes 2025-10-10 21:00:50 +01:00
7031088bcd Moving towards a "custom" parser for NextReg 0xF0 2025-10-10 17:17:35 +01:00
20764d74d3 Moving towards multiple register parsers, to handle more exotic register types 2025-10-10 13:46:21 +01:00
5aa4c33059 Move parsers to unique files 2025-10-10 13:29:45 +01:00
f8745808b9 Adding source viewer to individual registers 2025-10-10 13:03:39 +01:00
cb3b9abaaa Adding 'source' to register types 2025-10-10 13:00:04 +01:00
4fb1cb1f8c Stop iOS turning bitfields into clickable phone numbers... 2025-10-10 12:56:46 +01:00
7c827975ae Move parser out to on demand (maybe move to on-startup, or on schedule, later) 2025-10-10 12:47:47 +01:00
029aea7f0c Manual building time 2025-10-08 14:58:48 +01:00
91ce41b4f0 Manual building time 2025-10-08 14:58:04 +01:00
3976210740 Manual building time 2025-10-08 14:57:31 +01:00
2685915dc7 Manual building time 2025-10-08 14:54:26 +01:00
bcfd0db2aa Manual building time 2025-10-08 14:52:41 +01:00
36ff2a6410 Manual building time 2025-10-08 14:52:23 +01:00
bf5bd7c69f Manual building time 2025-10-08 14:44:00 +01:00
c4e5c8619b Manual building time 2025-10-08 14:39:31 +01:00
05f260347a Manual building time 2025-10-08 14:36:56 +01:00
1b50ccabee Manual building time 2025-10-08 14:33:23 +01:00
09ddb53cff Manual building time 2025-10-08 14:32:44 +01:00
5cede47cab Manual building time 2025-10-08 14:32:32 +01:00
fe3d3451b8 Fix some linting 2025-10-08 13:57:33 +01:00
ef6f47582c Refactor some of the filenames, and random hallucination CSS 2025-10-08 13:56:27 +01:00
ad8e552177 Flyby manual code cleanup, remove almost identical components and replace with one good humanly migrated one 2025-10-08 13:25:53 +01:00
187d152b34 Attempt for project to document itself, and moving to live version of nextreg.txt 2025-10-08 12:30:15 +01:00
a85d323487 Attempt for project to document itself, and moving to live version of nextreg.txt 2025-10-08 12:28:46 +01:00
fb2ea0a29a Trying to fix build 2025-10-07 22:17:38 +01:00
f32d8cd03c Pin pnpm store-dir to a stable path 2025-10-07 22:10:56 +01:00
15341a7674 NVM buildery 2025-10-07 22:09:05 +01:00
37f4f4d06d NVM buildery 2025-10-07 22:08:42 +01:00
eddc15095a NVM buildery 2025-10-07 22:04:14 +01:00