Skip to content

fix(flow): mutate project titles in store and read query caches - #56

Open
google-labs-stitch[bot] wants to merge 7 commits into
mainfrom
stitch/store-project-titles-and-query-caches-jm1-a778f9c6-0c31-475e-85bb-bafa9c00bb72
Open

google-labs-stitch[bot] wants to merge 7 commits into
mainfrom
stitch/store-project-titles-and-query-caches-jm1-a778f9c6-0c31-475e-85bb-bafa9c00bb72

Conversation

@google-labs-stitch

@google-labs-stitch google-labs-stitch Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Supersedes #49 on current main with full support for Google Flow front end builds boq_labs-ai-sandbox-frontend_20261129.06_p0 and boq_labs-ai-sandbox-frontend_20261202.00_p0.

Summary

  • Define ProjectMetadataFormat in ts/types.ts and map project metadata symbols and home dashboard grid symbols for boq_labs-ai-sandbox-frontend_20261120.00_p0 (Rb, $N, Ag, Lc, YJ, Jk, Sg, pM, AE, tI, Y7, Id, xs, zf, ha, Ub, getMetadata, Qd, Jn in ts/frontend_builds.ts), boq_labs-ai-sandbox-frontend_20261129.06_p0 (oc, ZP, Yf, Ad, IH, xl, qh, sO, hG, iK, K7, Dd, ot, nf, ha, Sb, getMetadata, Ud, ko in ts/frontend_nov29.ts), and boq_labs-ai-sandbox-frontend_20261202.00_p0 (Ub, EL, ug, nd, SI, Zl, Rg, tL, uH, qL, J7, Sd, Ew, Ff, ha, Wb, getMetadata, Qd, Ax in ts/frontend_dec02.ts, registered via RECENT_BUILDS in ts/frontend_recent.ts), add subroute ProjectStore injection slots (ma, Ba, Mx, ya, Ca, Ad on NOVEMBER_29_STORE; ma, wa, Ca, xd, My on DECEMBER_02_STORE), and append metadata_service, metadata_mutator, and project_title_signal checks to probeStore() in ts/frontend_compatibility.ts without changing FRONTEND_OPERATIONS.
  • Add ts/project_metadata.ts and ts/projects_grid_cache.ts as focused leaf modules: dispatch set_project_title (Sg / qh / Rg) through ProjectStore, require loaded PROJECT (Ag / Yf / ug) metadata before mutation, confirm the Jk() / xl() / Zl() title signal, read PROJECT and PROJECT_DETAILS entries from QueryClient through configured getters, and paginate PROJECTS and SHARED_PROJECTS infinite queries up to 50 pages using sharedEnabled (zf / nf / Ff) on the grid or gridFlags (ha).
  • Route create_project and rename_project in src/project.rs through ProjectStoreSession on verified builds so renames run in place on active subroutes without touching <flow-editable-text> inputs.
  • Preserve /project/<id>/collection/<cid> in ensure_project_workspace_root (src/project_route.rs, ts/project_nav.ts), add ensure_project_root_route (exit_to_project_root) for legacy DOM set_title fallback, reject subroute URLs in projectsOp({ action: "set_title" }), and restrict legacy DOM set_title fallback to WORKSPACE_HEADER_SELECTOR (including <header> inside <main>).
  • Read Jk() / xl() / Zl() and QueryClient caches verbatim in readStoreSnapshot (ts/read_store_snapshot.ts), clean "Google Flow" wrappers only on document.title, remove Editable text DOM scraping, and return project_id and project_title from flow_assets (src/assets.rs, src/service.rs, docs/*/tools-reference.md) across subroutes and /trash.
  • Read cached card protobufs for flow_projects list and open, scroll .load-more-sentinel up to 50 pages during delete until the target card mounts, skip mat-icon / [aria-hidden="true"] subtrees via TreeWalker without filtering plain-word titles, and confirm card removal without extra pagination requests.

Verification

  • Run cargo xtask ci and cargo deny --locked --workspace check (CI: OK).
  • Verify end-to-end behavior in headless Chrome across boq_labs-ai-sandbox-frontend_20261120.00_p0, boq_labs-ai-sandbox-frontend_20261129.06_p0, and boq_labs-ai-sandbox-frontend_20261202.00_p0 as well as legacy fallback routes:
    • In-place flow_projects rename across /collection/<cid>, /character/<cid>, /scene/<sid>, /edit/<wid>, and /tool/<tid> updates Jk() / xl() / Zl() with zero edits to subroute or sidenav <flow-editable-text> inputs, and preserves titles such as "Flow", "Trash", "Flow: X", and "X - Flow":
      In-place store rename on collection subroute
    • flow_status (probe: true), probeStore(), and flow_assets (list) read authoritative titles from QueryClient on /project/<id>/trash while cleaning generic "Google Flow - ...: Trash" document.title values to null:
      Authoritative cache title on trash route
    • flow_projects list, open, and delete paginate PROJECTS (Id / Dd / Sd) and SHARED_PROJECTS (xs / ot / Ew) past card 21, ignore raw protobuf arrays when getters return undefined, preserve plain-word DOM titles (edit, add, check, folder, public, lock, share, delete, close), confirm deletion with zero extra pagination requests, and bound faulty pagination at 50 pages:
      Multi-page dashboard grid pagination and card deletion

- Map project metadata mutator and home grid queries in VERIFIED_BUILDS
- Dispatch set_project_title in ProjectStore and verify the Jk signal
- Route project create and rename through ProjectStoreSession
- Exit collection subroutes on workspace return and keep file uploads
- Reject subroutes in fallback set_title and scope inputs to the header
- Read project titles from Jk and QueryClient caches without DOM inputs
- Paginate owned and shared grid queries and strip mat-icon ligatures
- Keep /collection/<cid> in ensure_project_workspace_root
- Add ensure_project_root_route for legacy DOM title fallback
- Clean Google Flow wrappers only on document.title
- Strip icon nodes in card fallback without filtering plain words
- Allow workspace header inside main for legacy title edits
- Read protobuf fields only from configured getters and keys
- Require loaded PROJECT metadata before title mutations
- Confirm card deletion without full-cache list pagination
- Document project_title in flow_assets list reference
- Merge latest main into the feature branch
- Move ProjectMetadataFormat to ts/types.ts for the line limit
- Add build 20261129.06 metadata, grid, and store slot fields
- Read sharedEnabled and cardIdGetter from the active build format
- Resolve build registry merge conflicts with frontend_recent.ts
- Add DECEMBER_02_METADATA and subroute slots to frontend_dec02.ts
- Register project metadata formats in RECENT_BUILDS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants