Skip to content

App Store: after a category disappears, the page keeps it selected and shows "No apps found" with no tab highlighted #443

Closed

Description

@nixfred

What happens

Store in web/src/screens/Store.tsx keeps the chosen category in useState (line 54), and the category tabs are rebuilt from the current catalog (categories, line 71, from all). Nothing resets category when the catalog changes. If the selected category no longer exists, shown (line 84) is empty and the page renders the "No apps found / Try a different search." card (line 207), with no category tab highlighted (['all', PLUGINS, ...categories] no longer contains the selected one) and no search typed.

The catalog changes under the user in this app: the Stores sheet is opened from the same page, and Remove (line 316) calls refresh(), which invalidates appStore.registry. If the user was looking at a category that only the removed store provided and then removes that store, the category tab vanishes and the list under it is replaced by "No apps found". The "Check for new apps" button (line 131) does the same when a store drops its last app in a category.

How to reproduce

Found by reading the code; I did not run it in a browser.

  1. Add a community store whose apps use a category no built-in app uses, and select that category tab.
  2. Open Stores, remove that store, and close the sheet.

Actual: "No apps found. Try a different search." with every tab unselected.
Expected: the page falls back to Discover (or the previous tab), or at least highlights a tab.

Suggested fix

Derive the effective category with categories.includes(category) || category === 'all' || category === PLUGINS ? category : 'all', or reset it in an effect when it is no longer in the list.

Environment

Omarchy Server main (6aa7f7d, 0.9.52), Node 26.

Activity

  1. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #526, #342, #525, #524, #527, #133, #102, #777, #129, #239, #243, #236, #233, #232, #142, and #242 share the app store with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. A category that disappears falls back to the full list instead of an empty selection. This ships in #876.

    🤖 Generated with Grok 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions