Repository navigation
Render the AI builder preview in the sandboxed frame #1427
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
Open
vytisbulkevicius
wants to merge
37
commits into
development
Choose a base branch
from
bugfix/pro/658
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
340e3e5
fix: render the AI builder preview in the sandboxed frame
vytisbulkevicius d034a1a
test: let the sandbox check chart finish its drawing
vytisbulkevicius a941148
fix: give the AI builder its own renderer address and drop stale code…
vytisbulkevicius e0f20ae
Merge remote-tracking branch 'origin/development' into bugfix/pro/658
vytisbulkevicius 9a155cd
fix: give the block editor builder its renderer address and drop supe…
vytisbulkevicius e0abf6d
fix: drop data checks of replaced chart code and version the frame sc…
vytisbulkevicius b933958
fix: show the data of a generated chart at once and check pending dat…
vytisbulkevicius 1cf27b8
fix: show data that arrived during a repair in the preview with the r…
vytisbulkevicius 068cfa1
test: cover a repair whose code fails with data that arrived during it
vytisbulkevicius 046272b
fix: keep data that the preview does not show yet for the next chart …
vytisbulkevicius 0c27706
test: fix the order of the failed-check repair case and cover data th…
vytisbulkevicius 91884d5
test: hold the repair job before the repair can start
vytisbulkevicius cd1c360
fix: read the current code and the newest data in work that outlives …
vytisbulkevicius 4564e37
fix: replace the chart code after the data of the generation is read
vytisbulkevicius d52b6c9
Merge remote-tracking branch 'origin/development' into bugfix/pro/658
vytisbulkevicius ca37631
Merge remote-tracking branch 'origin/development' into bugfix/pro/658
vytisbulkevicius 1462120
fix: lock the AI builder while the chart loads and while it is published
vytisbulkevicius 49dbe50
fix: upload the first data edit after the AI builder unlocks
vytisbulkevicius 4da8b32
fix: take the upload skip of loaded data while the AI builder is locked
vytisbulkevicius ad22e4c
fix: tie uploads, repairs and generations of the AI builder to the ne…
vytisbulkevicius 6915cac
fix: run the uploads of the AI builder one after another
vytisbulkevicius 932fb0d
fix: start no queued upload after the AI builder closes
vytisbulkevicius e31d268
fix: keep the queued uploads of the AI builder while its code editor …
vytisbulkevicius 555092d
Keep one upload queue while the code editor opens and closes
vytisbulkevicius 74916fe
Upload the data of a generation after the uploads before it
vytisbulkevicius 11e18ce
Order the writes of a chart and lock the data source during an import
vytisbulkevicius 5397051
Upload text again after its upload failed
vytisbulkevicius 6049f16
Load a reopened chart after the queued writes
vytisbulkevicius 8054e9b
Return the rows of every source to the builder and keep the data edit…
vytisbulkevicius d8fd387
Keep a data edit that a generation did not get
vytisbulkevicius 6b00350
Compare the rows the job gets and keep the data of a generation on a …
vytisbulkevicius 11af29b
Count a data edit from the moment the user makes it
vytisbulkevicius 15bb2c2
Compare the editor text with the rows the builder has
vytisbulkevicius 15b88e9
Clear the edit marker when the editor is empty
vytisbulkevicius fc42748
Keep any data change that the user started before a generation
vytisbulkevicius 5e72120
Read the owed data changes of the data source at the click
vytisbulkevicius 6fc2e8f
Correct two comments
vytisbulkevicius 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
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.
correctnessA data edit is lost when the user publishes and closes the builder within 700 ms of typing. The edit uploads only when the debounce fires (DataSource.js:245-256). Publish saves only the title and code (index.js:588) and does not wait for the edit. When Publish answers first, Done closes the builder andreturn () => clearTimeout( t )cancels the upload. The published chart keeps the older rows, and the reopened builder shows them. This path was already in the code the earlier review saw. Fix: report Publish as done only when the server holds the editor's data: wait for a pending edit and its queued upload, and report an edit whose upload failed. Add anai-builder.spec.jscase that edits, publishes, clicks Done at once, reopens and expects the edit.