Skip to content

Extensions empty state improvements#1605

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Jul 23, 2026
Merged

Extensions empty state improvements#1605
cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Improves the Extensions window’s empty/loading state behavior by distinguishing a cold start (no catalog loaded yet) from subsequent refreshes, and introduces a small animated empty-state view with an explicit retry action.

Changes:

  • Add hasLoadedIndex to ExtensionsModel and set it once a registry index is successfully loaded.
  • Update the overlay logic to only show a spinner on cold start (phase == .loading && !hasLoadedIndex), otherwise show the empty state (with retry on registry failure).
  • Ensure the AppKit view controller re-tracks model changes when hasLoadedIndex updates.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
MarkEditMac/Sources/Extension/ExtensionsViewController.swift Adds hasLoadedIndex to the observation tracking set so AppKit UI updates when the “catalog has ever loaded” state changes.
MarkEditMac/Sources/Extension/ExtensionsOverlays.swift Refines loading vs empty-state presentation and adds a dedicated EmptyStateView with fade-in and retry wiring.
MarkEditMac/Sources/Extension/ExtensionsModel.swift Introduces hasLoadedIndex and sets it when an index is present during item rebuilds.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread MarkEditMac/Sources/Extension/ExtensionsOverlays.swift
@cyanzhong
cyanzhong merged commit bdc9bb9 into main Jul 23, 2026
1 check passed
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.

2 participants