Skip to content

Community store dialog disables Add for links with a port or a ~user path, which the server accepts #236

Closed

Description

@nixfred

What happens

The "Add by link" form in web/src/screens/Store.tsx (line 275) validates the address with:

const valid = /^https:\/\/[\w.-]+\/[\w.\-/]+$/.test(url.trim())

The server check in omarchyd/apps.mjs (checkUrl, line 807) is:

/^https:\/\/[\w.-]+(:\d+)?\/[\w.\-~/]+$/

The server allows an optional :port and ~ in the path; the web check allows neither. A store on a self-hosted Git server such as https://git.home.lan:3000/me/app-store (a normal setup for a home server) leaves the Add button disabled with no message explaining why, although the server would accept it.

How to reproduce

I ran both expressions in Node:

https://github.com/someone/app-store        client true   server true
https://git.home.lan:3000/me/app-store      client false  server true
https://example.com/~bob/store              client false  server true

In the app: Stores, Add by link, paste the second address. Add stays disabled. Expected: enabled.

Suggested fix

Use the same pattern as the server ((:\d+)? after the host and ~ in the path class), or drop the client check and let the server's message show.

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, #233, #232, #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. A community store link may include a port or a ~user path. 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