Fix/recently used section - #336
Open
itsmeakhil wants to merge 4 commits into
Open
Conversation
Saved documents were stamped with the pane they came from and the Load dialog only listed `docsByPane[loadPane]`, so a document saved from the Text pane was invisible in the Tree pane's dialog and vice versa. There was no way to load a saved document into the other pane. - List every saved document regardless of origin pane; loading still targets whichever pane opened the dialog. - Show the origin as Text/Tree instead of the raw left/right key. - Sort newest first — the local router lists oldest-first and saves repeat the auto-generated titles. - Render timestamps as dates. The row printed raw epoch ms because the type said `string` while the Rust router sends i64. New `lib/json-formatter-docs.ts` holds the timestamp parsing (epoch ms and ISO strings both reach the UI) with unit tests.
The Beautify & Minify output was rendered as a plain <pre>, so JSON, CSS, HTML/XML and JavaScript all came out as undifferentiated monospace text. Run the result through the existing highlight.js wrapper (lib/code-screenshot#highlightCode), mapping each beautifier language onto its hljs grammar. Monaco was the other option but @monaco-editor/react has no loader.config here and pulls `vs` from cdn.jsdelivr.net, which is dead in the offline desktop app. The GitHub light/dark token theme moves out of json-schema-generator/ into components/tools/hljs-theme.css and is rescoped .json-schema-hl -> .hljs-theme so both tools share one stylesheet; its only other consumer is updated. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S5dugrrsqWvHDSeVhgNhSU
…ty names
The field cards were labelled with the raw DOM property names — event.key,
event.code, event.keyCode, event.which, event.location — which read as
placeholder text rather than as headings for the values below them.
Replace them with plain words, translated across all 27 locales: Key, Code,
Key code, Which, Location. `which` keeps the English word everywhere; it is a
legacy alias of keyCode with no natural translation, and the literal
interrogative reads like a mistake in most languages.
Messages only — the layout already renders these through t('fields.*').
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S5dugrrsqWvHDSeVhgNhSU
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ThreatCrush Security Scan1 finding(s) MEDIUM: 1
Snippets are redacted; ThreatCrush never prints matched credential material. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.