Daily use 28 follow-ups: bulk ack fallback, runtime doc table, raise the main window #623

Open
opened 2026-11-15 09:20:36 +00:00 by charles · 0 comments
Owner

Follow-up from the review of Daily use 28 (PR #618), all minor:

  1. Read-state ack fallback sends one request per entry. When POST /read-states/ack answers 404/405, apps/fluxer/src/dailyuse_rt.rs (AckReadStates fallback) sends automatic entries (from MarkGuildRead) one by one as POST /channels/{c}/messages/{m}/ack {}. The original's postLegacyAckEntries (ReadStates.ts:950-973) sends them in one POST /read-states/ack-bulk and only acks manual entries per message. On such an instance "mark community as read" costs up to 100 requests instead of 1. The plan and the core doc both said "per entry", so update those too.
  2. apps/fluxer/src/runtime.rs module doc: the daily-use paragraph was inserted in the middle of the effect table; the Media and Update rows now render outside it.
  3. Raise window on notification click (crates/fluxer-ui/src/app.rs) acts on window::oldest(): correct while the main window is the first one opened; wrong if a pop-out ever outlives the main window.
Follow-up from the review of Daily use 28 (PR #618), all minor: 1. **Read-state ack fallback sends one request per entry.** When `POST /read-states/ack` answers 404/405, `apps/fluxer/src/dailyuse_rt.rs` (`AckReadStates` fallback) sends automatic entries (from `MarkGuildRead`) one by one as `POST /channels/{c}/messages/{m}/ack {}`. The original's `postLegacyAckEntries` (`ReadStates.ts:950-973`) sends them in one `POST /read-states/ack-bulk` and only acks manual entries per message. On such an instance "mark community as read" costs up to 100 requests instead of 1. The plan and the core doc both said "per entry", so update those too. 2. **`apps/fluxer/src/runtime.rs` module doc:** the daily-use paragraph was inserted in the middle of the effect table; the `Media` and `Update` rows now render outside it. 3. **Raise window on notification click** (`crates/fluxer-ui/src/app.rs`) acts on `window::oldest()`: correct while the main window is the first one opened; wrong if a pop-out ever outlives the main window.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#623
No description provided.