Repository navigation
fix(flow): resolve Angular views, NG0950 inputs, and store loading - #29
Conversation
- Check store format hints and boolean Va or Wa flags for disposal - Share isStoreDestroyed in snapshot reads and character operations - Check tileQuery hints and pending PROJECT_TILES queries on load - Prefer async TanStack mutators such as ld before queue polling - Subscribe to Da and oa error streams without wedging the queue - Scan component properties and flow-scene-builder for active stores - Unwrap LContext objects through lView, zp, Pn, or LView slots
|
Please base the next change on |
- Unwrap upgraded LContext views in resolveLView and bindAngularViews - Read character form, grid tile, and project card LViews safely - Find verified ProjectStore instances on own component fields - Catch NG0950 errors before required project page inputs bind - Report and retry store_loading while project routes load
|
Thank you for the review, @byteland-app. I updated this branch onto
|
- Probe Map instances when projectStoreStatus reports unbound loading - Check sub-route and landing hosts in isProjectRouteLoading - Read lViewId from upgraded LContext wrappers during map capture
byteland-app
left a comment
There was a problem hiding this comment.
I ran cargo xtask ci and reproduced a cold-load failure on this commit. When flow-project-shell exists and the verified GO store's project signal throws NG0950, bindProjectStore returns collection_store_not_bound. The same store binds once its input is ready. ProjectStoreSession::open stops retrying on the unbound result after one discovery pass. Report store_loading for a verified store with an unset project input, and retry without binding stores from other projects. Verify the case with the shell already mounted.
- Report store_loading when a live verified store throws NG0950 - Keep exact project ID checks so other project stores do not bind - Bind ngLViewMap from mounted route hosts in bindProjectStore - Retry ProjectStoreSession::open when discovery sees store_loading
|
Addressed in
|
|
Changes requested.
This PR changes the same files as #41, #45, #46, #48, #49 and #51. Rebase after the order of those PRs is decided. |
- Limit route loading checks to empty roots and inactive outlets. - Run the DOM store probe at most once per project store session. - Read context views only from lView, build fields, or lViewId. - Check active query fetches so disabled queries do not block. - Share LView slot ID lookup and remove findProjectStoreInView.
|
Addressed in
|
|
I reviewed this pull request on top of current Defects:
Please split the change: (a) the |
- Add readLViewSlotId and check lViewId in resolveLView - Read character form views with resolveLView and readLViewSlotId - Read grid tile views with resolveLView in openEditAsset - Read project card views with resolveLView and readLViewSlotId
- Catch unset project signal errors in projectUpload page checks - Catch unset project signal errors in liveBinding for Agent chat
- Share STORE_HOST_SELECTORS between store bind and DOM discovery - Keep idle and paused pending tile queries marked as pending - Check router URL and loading nodes instead of banner tag lists - Retry DOM discovery when an early probe hits store_loading
|
Addressed all six review items on current
Each part was verified individually and together against |
Summary
This pull request aligns the branch baseline with
main(96eacfb,v2.4.0+) and separates the changes into three file-disjoint commits verified onboq_labs-ai-sandbox-frontend_20261129.06_p0:d53c6c6(fix(flow): resolve Angular views and slot IDs in UI helpers):readLViewSlotIdand{ lViewId }fallback lookup ints/angular.ts, guards!(raw instanceof Node)inresolveLView, and updatesbindAngularViews,ts/character_voices.ts,ts/open_edit_asset.ts, andts/projects_ops.tsto read upgraded AngularLContextwrappers ({ lq: lView }on20261129.06_p0) and numericngLViewMapslot IDs while keeping the 25-item array scan limit inextractIdFromObject.c5fcc64(fix(flow): catch NG0950 when project page inputs are unset):NG0950when<flow-project-page>(_.Kv) reads an unset required project input (Kv.oa()) ints/project_upload.ts(isCurrentPage) andts/agent_chat.ts(liveBinding).7edc43d(fix(flow): report store_loading while project store loads):STORE_HOST_SELECTORSlist betweents/project_store.tsandts/discover_store.ts.store_loadingduring cold/project/<id>route loads before lazy route bundles settle (router.urlcheck inisProjectRouteLoadingwithout banner tag heuristics) or while a liveProjectStore(_.LQ) waits for its route project signal (undefinedorNG0950).isPending/state.status === "pending"inisProjectStorePendingsoidle,paused, andfetchingpending tile queries all reportstore_loading.slotandformat.componentSlotsininspectProjectStoreInView, keepsprojectStoreStatusO(1) withoutLViewscans, and keepsdom_probed = falseinProjectStoreSession::openwhen an earlydiscoverStoreprobe returnsstore_loading.Flow Front End Build Label
boq_labs-ai-sandbox-frontend_20261129.06_p0(./target/debug/flow-mcp --headless doctor --jsonreportsflow-build: ok).Steps That Show the Issues on
main(96eacfb)On
boq_labs-ai-sandbox-frontend_20261129.06_p0, Angular Ivy upgrades inspected host contexts to{ lq: lView }(Jga),<flow-project-page>(_.Kv) defines required inputthis.oa = _.kj.required()(which throwsNG0950before input binding), andProjectStore(_.LQ) loads from lazy route modulewO1vlbwiththis.oa = this.va.oa(undefineduntilNavigationEndupdates route parameters):main, when a host carries{ lq: lView },bindAngularViewsreturnsfalse,characterVoiceOp({ action: "list_voices" })misses<flow-character-form>,openEditAssetmisses<flow-grid-tile-container>, andprojectsOp({ action: "list" })returnsid: nullon<flow-project-card>.main, callingprojectUpload,agentBound, oragentBusywhile<flow-project-page>(Kv.oa()) has no bound required input throws an uncaughtNG0950error.main, callingbindProjectStoreordiscoverStorebeforewO1vlbloadsLQor whileLQ.oa()isundefined(or throwsNG0950) returnscollection_store_not_boundinstead ofstore_loading.Verification
cargo fmt --all -- --checkcargo xtask checkcargo clippy --locked --workspace --all-targets -- -D warningsRUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --no-deps --document-private-itemsRUSTFLAGS="-D warnings" cargo build --locked --workspace./target/debug/flow-mcp --headless doctor --jsonagainst liveboq_labs-ai-sandbox-frontend_20261129.06_p0main(96eacfb) onboq_labs-ai-sandbox-frontend_20261129.06_p0: