Skip to content

App Store search matches the text "undefined" for apps with no tagline or developer #232

Closed

Description

@nixfred

What happens

The App Store search builds its haystack with a template string in web/src/screens/Store.tsx (line 83):

.filter((a) => !q || `${a.name} ${a.tagline} ${a.developer}`.toLowerCase().includes(q.toLowerCase()))

tagline and developer are optional (tagline?: string in RegistryApp). The server leaves them out of the listing when the store's app manifest has none (pickFields in omarchyd/apps.mjs skips undefined values, and JSON drops them). For those apps the haystack contains the literal word "undefined", so searching for "undefined", "undef", "def", "fine" and similar fragments lists every app that lacks a tagline or developer.

How to reproduce

I ran the same expression on sample data in Node:

const apps=[{name:'Immich',tagline:'Photos',developer:'Immich team'},{name:'Notes'},{name:'Plexish',tagline:'Media'}]
apps.filter(a=>`${a.name} ${a.tagline} ${a.developer}`.toLowerCase().includes('undefined')).map(a=>a.name)

Actual: [ 'Notes', 'Plexish' ]. Expected: [].

In the app: add a store that has an app without a tagline, open the App Store and type "undefined" in the search box. The app is listed. (Found by reading the code; I did not run it in a browser.)

Suggested fix

Build the haystack from the defined fields only, for example [a.name, a.tagline, a.developer].filter(Boolean).join(' ').

Environment

Omarchy Server main (0786ba9, 0.9.50), 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, #142, #242, and #443 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. Search no longer treats a missing tagline or developer as the word undefined. 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