Repository navigation
feat(viewer): data page viewer for XML, RSS, CSV, YAML and JSON Lines - #39
Merged
Merged
Conversation
… viewer An RFC 4180 CSV parser with delimiter sniffing, a header guess, sorting and filtering; a focused YAML subset reader that reports what it does not support; JSON Lines with per-line errors; an XML tree model with paths, a filter, an indented serializer and RSS / Atom feed summaries.
… to the next line
The JSON page viewer becomes the data page viewer: XML, RSS and Atom as an element tree with a feed summary, CSV and TSV as a sortable, filterable table, YAML and JSON Lines as JSON trees. Detection stays pure in src/lib/data-viewer.ts. The always-on content script is now a small gate that asks the background to inject the viewer only on data pages; the script id and the Options toggle stay the same, relabeled Format data pages, and the palette action becomes Format this data page.
…hat fits the table
…er-formats # Conflicts: # PRODUCT.md # README.md # tests/e2e/server.mjs
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.
The JSON page viewer becomes a data page viewer: XML / RSS / Atom (element tree, attributes, feed summary, parse errors with position, XSLT pages left alone), CSV / TSV (RFC 4180, delimiter sniffing, header guess labeled as a heuristic, sort, filter), YAML (a documented subset reader, raw view with the reason when it hits unsupported syntax) and JSON Lines (one tree per line, invalid lines flagged). The always-on script is now a small gate; the viewer is injected only on data pages. Script id, action id and the Options toggle stay backward compatible. Also fixes site-commands reading keywords moved to the next line.
Closes #27