Repository navigation
fix(flow): enforce root routes and scroll grid sentinels - #45
Conversation
- Add subroute URL and fallback title helpers in project_route. - Exit collection and editor subroutes before workspace title edits. - Scope set_title to the workspace header and reject subroute paths. - Read Jk and PROJECT_DETAILS titles in the bound project store. - Scroll load-more-sentinel up to 50 pages and strip icon ligatures.
byteland-app
left a comment
There was a problem hiding this comment.
ts/projects_ops.ts:195–224 can spend more than 120 seconds on one sentinel scan. Project deletion calls the full scan again after the confirmation click at lines 702–722. A client can get a timeout while Flow has already deleted the project. Use one deadline for pagination and confirmation. Stop scanning when the target is found, and report an unknown outcome if confirmation expires after the write. Verify a slow grid with many pages.
- Share one 45s deadline across grid pagination and confirmation - Stop scanning grid pages as soon as the target project matches - Confirm deletion on rendered cards without rescanning all pages - Return outcome_unknown if confirmation expires after the write - Document outcome_unknown for flow_projects delete in all guides
|
Addressed in commit
|
|
Changes requested.
|
- Keep /collection/<cid> routes on workspace callers except rename - Wait for active grid sentinels until completion or deadline expiry - Strip at most one Google Flow wrapper on fallback document titles - Match /character route segments without matching /characters - Move home grid deadline setup into open_signed_in_home_page
|
Addressed in
|
|
I reviewed this pull request on top of current
Please rebase on |
…nation-jm0-808d7af3-e66f-45d4-80c8-1fcd24d36dbb
…nation-jm0-808d7af3-e66f-45d4-80c8-1fcd24d36dbb
Summary
url_route_path,is_project_subroute_url(url, allow_collection),collection_id_from_url,is_character_route_url, andclean_project_title(raw, verified)insrc/project_route.rsso workspace callers (allow_collection = trueacrossupload.rs,generation.rs,scenes.rs,voices.rs, andcharacters.rs) keep/project/<id>/collection/<cid>grid pages intact while exiting/chat,/edit/*,/scene/*,/character/*,/collection/<cid>/character,/trash/*, and/toolssubroutes,rename_project(allow_collection = false) exits/collection/<cid>to/project/<id>, and character route checks match/charactersegments without matching/characters.ensure_project_route/ensure_project_workspace_root(src/project.rs),projectNav("exit_subroute" | "exit_to_root")(ts/project_nav.ts),rename_project(src/project.rs),characterOp(ts/character_ops.ts), andexit_character_editor(src/characters.rs) so collection views remain active on workspace operations while project renames always run on/project/<id>.projectsOp({ action: "set_title" })(ts/projects_ops.ts) and scope editable title selection strictly toflow-project-page flow-tile-view-header flow-navigation-header flow-editable-text, ignoring sidenav<flow-editable-text>inputs.title: "Jk"toProjectStoreFormat(ts/frontend_builds.ts), exposegetTitle()andisTitleVerified()ints/project_store.tswithPROJECT_DETAILSandPROJECTquery cache fallbacks, removeEditable textDOM scraping ints/read_store_snapshot.ts, unwrap at most one"Google Flow - "or"- Google Flow"wrapper on unverified fallbackdocument.titlevalues without touching"Flow - ..."user titles, and propagate verified titles throughget_flow_state,open_project,confirm_project_title,read_project_assets, andflow_assets.ts/projects_grid.tsand share one 45-second deadline (open_signed_in_home_page/timeout_ms) across home-page navigation,.load-more-sentinelpagination, and project deletion confirmation: wait while.load-more-sentinelremains active until new cards load,hasNextPagereachesfalse,stopWhenmatches,MAX_GRID_PAGESis reached, or the deadline expires (truncated: true), aggregate multi-query (PROJECTS+SHARED_PROJECTS) pagination signals, verify deletion against rendered cards without rescanning sentinel pages, returnproject_scan_timeoutif the deadline expires before the confirmation click, returnoutcome_unknown(stage: "confirm_project_delete") if confirmation expires after the write, and read icon-free.project-title-texttitles viaTreeWalkerwithout stripping single-word titles.Verification
cargo xtask ci: Passed formatting, license headers, LF line endings, 800-code-line ceiling (src/project.rs:756/800,src/characters.rs:780/800,ts/projects_grid.ts:716/800), forbidden construct checks, contract checks,tsc --noEmit, Clippy (-D warnings), rustdoc (--document-private-items), workspace build, andcargo deny.flow-mcp --headless doctor --json): Confirmed compatibility against liveboq_labs-ai-sandbox-frontend_20261120.00_p0.> 2retries,4.8spage latency) loading page-2 targets withtruncated: false, slow-network budget expiry with active.load-more-sentinelreportingtruncated: true(timeout instead of"No project matches"), dual-query (PROJECTS+SHARED_PROJECTS) pagination,/collection/<cid>preservation on workspace ops vs./project/<id>root exit onrename_project, single"Google Flow"wrapper unwrapping preserving"Flow - Notes"and single-word card titles ("Edit","Share"),/charactersegment matching rejecting/characters, early target stop ondeletewith zero post-confirm sentinel scrolls, and post-write confirmation expiry returningoutcome_unknown.