Skip to content

fix: Froyo widget reads live list from fold row data - #46

Merged
rayvader merged 1 commit into
mainfrom
fix/widget-live-data-items
Nov 5, 2026
Merged

rayvader merged 1 commit into
mainfrom
fix/widget-live-data-items

Conversation

@rayvader

@rayvader rayvader commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

The "Froyo · Upcoming" widget did not show the Fri 6 Nov house reef snorkel trip even after refresh.

Cause: Froyo's v4 page binds open_items_live to the gateway's custom fold row, which is shaped
{data: {items, as_of}, at, writer, stale_after}. Upcoming.extractItems read open_items_live.items,
got null, and fell back to Froyo's hand-written open_items field, which is stale and has no snorkel row.
Froyo's own page reads live.data.items, so the page looked right while the widget did not.

Fix: read open_items_live.data.items first; keep bare items as a fallback; then open_items.

Tested

  • Added theLiveListIsReadFromTheFoldRowsData and aFoldRowWithNoListInItsDataFallsBackToOpenItems in UpcomingTest.
  • No JDK on the authoring host, so unit tests run in CI only.
  • Server side checked: sync job 4cbe3e0f writes open_items every 15 min (security log dashboard_record allowed), and its list has the snorkel item as row 2. Phone requests to /api/members/froyo-personal-butler/dashboard succeed on the fixed path (post-fix: drop dashboard page path from server URL (Froyo widget) #45).

Not merged: needs review.

The gateway's custom fold row for open_items_live is
{data: {items, as_of}, at, writer, stale_after}. The widget read
open_items_live.items, found nothing, and fell back to Froyo's
hand-written open_items, which is stale (no snorkel trip). Read
data.items first, the way Froyo's own page does; keep bare items as
a fallback. Adds tests for the real row shape.
@rayvader
rayvader merged commit bc02c25 into main Nov 5, 2026
8 of 9 checks passed
@rayvader
rayvader deleted the fix/widget-live-data-items branch November 5, 2026 15:35
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.

1 participant