Skip to content

refactor(dashboard): refreshIfNeeded naming and view pass-through cleanup - #1101

Merged
everpcpc merged 1 commit into
mainfrom
refactor/dashboard-row-vm-nits
Sep 25, 2026
Merged

everpcpc merged 1 commit into
mainfrom
refactor/dashboard-row-vm-nits

Conversation

@everpcpc

Copy link
Copy Markdown
Member

Follow-up nits from the review of #1097. No behavior change.

What

  • DashboardPinnedSectionViewModel.refreshIfIdle renamed to refreshIfNeeded: when a refresh is running for a different server the method cancels and restarts it, so "if idle" undersold the behavior.
  • Removed the pass-through computed properties (pagination in DashboardSectionView, pinnedCollections/pinnedReadLists in DashboardPinnedSectionView); the views read viewModel.* directly, per the no-computed-property-clutter convention.
  • AGENTS.md: the dashboard row rule now says pinned rows join a running refresh for the same server, matching the guard in refreshIfNeeded (and the original PR description).

Why

The AGENTS.md rule added in #1097 dropped the same-server qualifier the code actually implements; the rename and the pass-through removal keep the new row view-model seam consistent with repo conventions.

Validation

  • make format clean; make build passes on iOS, macOS, and tvOS.

@everpcpc
everpcpc merged commit ffb8e8d into main Sep 25, 2026
3 checks passed
@everpcpc
everpcpc deleted the refactor/dashboard-row-vm-nits branch September 25, 2026 01:22
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