-
Notifications
You must be signed in to change notification settings - Fork 2
Add Shiny bindings and adopt htmlwidgets for visualization rendering #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
a2746ab
feat: add Shiny bindings and <ggsql-viz> web component
cpsievert 9938611
style: apply air formatting
cpsievert a929f0e
chore: add build script for vendored Vega dependencies
cpsievert eb6e34e
fix: add display:block and overflow:hidden to ggsql-viz component
cpsievert 9815937
feat: add responsive scale-to-fit and JSDoc types to ggsql-viz
cpsievert 9492b41
fix: guard async ggsql-viz rerenders
cpsievert fb4c95b
fix: remove implicit knitr dependency from resolve_data_refs
cpsievert 8bce55b
feat: adopt htmlwidgets for all HTML rendering
cpsievert fed4e90
refactor: simplify renderGgsql shiny API
cpsievert 5788e57
refactor: restore custom element widget lifecycle
cpsievert d3129ad
chore: keep local-only test artifacts out of branch
cpsievert 97cbd18
refactor: move static ggsql-viz styles to dedicated CSS file
cpsievert 55920f0
refactor: replace embedFn() wrapper with direct window.vegaEmbed call
cpsievert de46bfd
refactor: simplify .ggsql-container selector to single descendant rule
cpsievert 0d395d5
feat: add compound Vega-Lite spec sizing helpers
cpsievert 146b5d5
refactor: remove caption/align from widget, delegate sizing to htmlwi…
cpsievert 0f56295
Run air format
cpsievert e577c01
fix: pass explicit pixel dimensions to Vega instead of width/height: …
cpsievert b1d10b1
refactor: move widget dependencies from YAML to R code
cpsievert fd017fe
refactor: split vega_dependencies() from widget_dependencies()
cpsievert 93f1ca2
feat: add compound Vega-Lite spec sizing for multi-view charts
cpsievert 7ee3ff2
Fix ggsql widget sizing behavior
cpsievert 81e7296
refactor widget resize strategies
cpsievert 1beafd8
move JS tests to inst/htmlwidgets alongside source
cpsievert b1c628d
refactor widget layout sizing contract
cpsievert 0dc55de
test: lock fixed output box sizing contract
cpsievert a7c06ae
test: add legend-insensitive sizing check
cpsievert f463e92
test: guard allocator against encoding access
cpsievert c966a31
test: tighten legend guard coverage
cpsievert d6ec2f7
test: tidy allocator assertions
cpsievert 760db1f
test: normalize autosize across realms
cpsievert 8ce7bf3
refactor: keep widget host size fixed
cpsievert 0777d07
fix: harden widget embed lifecycle
cpsievert 349c492
refactor: allocate compound charts from host viewport
cpsievert 66e9680
test: document fixed output box sizing behavior
cpsievert f62ad81
fix: keep viewport and facet sizing in bounds
cpsievert 1cd66b3
fix: clamp compound cell dimensions
cpsievert 06c2cf6
refactor: simplify widget resize lifecycle
cpsievert bb71f92
chore: drop local-only tests and sandbox artifacts
cpsievert 75f0d03
refactor: migrate widget runtime to srcts with TypeScript build toolc…
cpsievert ab3de04
fix: handle row/column grid facets and prefer clientHeight in readHos…
cpsievert 34bcc70
Fail fast for plain SQL in renderGgsql
cpsievert a9b89a1
ci: add dedicated js check workflow
cpsievert 137ff49
Merge branch 'main' into feat/shiny-bindings
cpsievert 3ab71cd
Run air format
cpsievert 1f63f69
test: run widget tests against TypeScript sources
cpsievert 1a9ed0c
docs: add JS widget workflow notes
cpsievert 31a4213
Remove spec doc; simplify gitignore
cpsievert 73928db
fix: exclude dev-only files from CRAN tarball, deduplicate Vega versions
cpsievert 7a196a7
chore: remove redundant tsc-bin.cjs wrapper
cpsievert 917b71f
Merge commit '490314de9fce70c005014c6904f4702e09226482'
thomasp85 2c09407
formatting
thomasp85 0862faf
only use portable shell commands
thomasp85 6afa19f
fix bad copy-paste
thomasp85 44dde82
don't force integer
thomasp85 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| name: js-check.yaml | ||
|
|
||
| permissions: read-all | ||
|
|
||
| jobs: | ||
| js-check: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "22" | ||
| cache: npm | ||
|
|
||
| - name: Install dependencies | ||
| run: npm ci | ||
|
|
||
| - name: Run JS checks | ||
| run: npm run check |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,5 @@ | ||
| docs | ||
| node_modules | ||
| .worktrees | ||
| .claude | ||
| src/vendor |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, the next release of
htmlwidgetswill movermarkdownfrom Suggests to ImportThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm... I guess this is not too horrible given the prevalence of RMarkdown and the fact that this package provides a knitr engine for it