Repository navigation
fix(flow): cascade read-only stores and add UI fallbacks - #62
Open
google-labs-stitch[bot] wants to merge 3 commits into
Conversation
- Cascade verified project stores from newest to oldest for reads - Pair snapshot, scene, upload, and tile slot keys with bound store - Gate internal store mutations and hooks on verified builds only - Guard Angular LView tile locators with signal checks on slot keys - Bind trash confirmation dialogs to target tiles with 40-poll cap - Add confirmed DOM fallbacks for upload, character, and title edits - Split frontend types, character preview, and project CRUD modules
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.
Summary
When Google Flow updates
window.WIZ_global_data.cfb2hto a build label that is not yet inVERIFIED_BUILDS, read-only store operations and confirmed DOM fallbacks now continue to work while internal minified store mutations and component hooks stay gated onVERIFIED_BUILDS.Synced with current
main(v2.5.0, Google Flow build20261202.00_p0, commitd34417e).Changes
ts/frontend_builds.ts,ts/state.ts,ts/project_store.ts,ts/discover_store.ts,ts/frontend_compatibility.ts):CASCADED_BUILDSandCASCADED_PROJECT_STORESfromVERIFIED_BUILDS(includingRECENT_BUILDS) in newest-to-oldest order ($P20261202.00_p0->tQ20261201.00_p0->LQ20261129.06_p0->GO20261120.00_p0->jO20261118.14_p0->VN20261117.10_p0).runtimeState.storeFormatwhen binding a store and resolvesnapshotFormat(),sceneTileFormat(),uploadMediaFields(),lContextViewFields(), andtileSlotKeys()fromboundOrActiveBuild().hasReadableCascadedTilesand stop immediately withunsupported_front_endand the activebuildlabel when tile fields change or no store class binds.VERIFIED_BUILDSwrite boundary (ts/frontend_builds.ts,ts/angular.ts,ts/character_ops.ts,ts/character_extra.ts,ts/character_media.ts,ts/character_preview.ts,ts/character_voices.ts,ts/projects_ops.ts,ts/scene_ops.ts):characterPreviewFormat,characterVoiceFormat,characterCreateFormat,projectTitleFormat,voiceConfirmation) onVERIFIED_BUILDSonly.sceneOpblocks write actions on unverified builds.LViewtile locator and target-bound trash dialog (ts/tile_dom.ts,ts/frontend_builds.ts,ts/angular.ts,src/tile_menu.rs):"tile","Ha","Ia","Oa") throughtileSlotKeys()ints/frontend_builds.tsand invoke zero-argument functions onLViewslots only whenisAngularSignalis true.wait_trashedat6 + 34 = 40polls.src/assets.rs,src/collections.rs,src/upload.rs,src/character_bio.rs,src/characters.rs,src/project.rs,src/projects_ops.rs,src/project_store.rs,ts/frontend_types.ts,ts/character_preview.ts):ProjectStoreSessioninrename_assets, add menu/form/header DOM fallbacks with store or DOM read-back confirmation for media rename/trash, workspace library upload, character bio/name edits, and project title edits, and shareis_store_write_unavailableandsnapshot_collections.ts/frontend_types.ts,ts/character_preview.ts, andsrc/projects_ops.rsas flat leaf modules so every source file stays well below the 800-code-line limit.Verification
cargo fmt --all -- --checkcargo xtask ci(fmt, license headers, LF line endings, 800-line limit, forbidden patterns,tsc --noEmit,xtaskcontracts,clippy --all-targets -- -D warnings,rustdoc --document-private-items -D warnings,cargo build --locked --workspace,cargo deny)cargo deny --locked --workspace checkcargo xtask collect-licensesRUSTFLAGS="-D warnings" cargo build --release --locked --bin flow-mcpflow-mcp --headless doctor --json(flow-build: okonboq_labs-ai-sandbox-frontend_20261202.00_p0)DECEMBER_02_STORE($P),DECEMBER_01_STORE(tQ),NOVEMBER_29_STORE(LQ), andNOVEMBER_17_STORE(VN) runtime verification on unverified builds: