Skip to content

Screens: connect an app offered as a sign-in with its key instead - #2121

Merged
davidmckayv merged 3 commits into
mainfrom
key-instead-screens
Nov 24, 2026
Merged

davidmckayv merged 3 commits into
mainfrom
key-instead-screens

Conversation

@davidmckayv

Copy link
Copy Markdown
Contributor

What

Some apps that connect with a key are offered as a sign-in instead (PostHog). The sign-in stays the row's action. This adds a quiet second way to connect the same app with its key, which often offers far more actions. Uses the API from PR 2120.

  • Browse apps (from Connections): under the app's description, "Connect with a key instead for 686 actions." One press adds the key version and opens its key form.
  • Admin's Apps directory: "Add with a key instead for 686 actions." It only adds; each person connects their own.
  • A member who asks for apps is offered nothing new.
  • Once added: "Also added with a key as PostHog (key).", linking to its page.
  • The sign-in's own app page (the vendor's server or the directory's sign-in app) makes the same offer to somebody who may add apps.
  • The key version is titled "PostHog (key)" so it reads apart from "PostHog". Sentences about the person's account at the vendor still name the vendor: "Get a key from PostHog", "Needs a key from PostHog".
  • Arriving at another app's page from an app's page now reads ?connect again, so the key form opens.

The secondary action is the existing small underlined inline link style (as in the sign-in note), not a new component. The primary Add / Connect button and the row layout are unchanged. The chat card is unchanged.

Screenshots

Browse apps before (sign-in only) and after (the quiet key line), the key form, Connections with both added, and Admin's directory, checked in Chrome and headless WebKit against a live server on 127.0.0.1.

Tests

  • app/tests/key-version.test.tsx: a routed entry keeps its sign-in and offers the key, which sends connectsWith: "key" and lands on the key form; no offer without a key version; the added link; Admin's add-only wording; nothing for a member; the app page's offer.
  • app/tests/vendor-name.test.ts: the vendor's name in key sentences for "PostHog (key)".
  • app/tests/connection-page-arrival.test.tsx: arriving at another app's page with ?connect opens that app's key form (fails without the fix, passes with it).

Some apps the directory offers as a sign-in through the vendor can also be connected with their key, which often gives far more actions. The sign-in stays the row's action. Under it, Browse apps now offers a quiet "Connect with a key instead", which adds the key version and opens its key form in one press. Admin's directory offers "Add with a key instead", which only adds. A member, who asks for apps, is offered nothing. Once the key version is added, the row links to it by its own title.

The sign-in version's own page makes the same offer to somebody who may add apps, read from the directory entry the app was added as.
…r the key on a vendor server's page

A key version is titled "PostHog (key)" so it reads apart from the sign-in, and the sentences about the person's account at the vendor now say "your PostHog account" and "Get a key from PostHog". The offer on an app's page now shows for the vendor's own sign-in server too, lines up with the note above it, and arriving at the key version's page from another app's page opens its key form.
The connection page keeps its component when the router moves from one app's page to another's, so the connect-on-arrival read on first mount stayed with the first app and the second app's key form never opened. This pins the client-side move from a sign-in app's page to a key app's page with connect set, which is what Connect with a key instead does.
@davidmckayv
davidmckayv merged commit 9dfdbcf into main Nov 24, 2026
23 checks passed
@davidmckayv
davidmckayv deleted the key-instead-screens branch November 24, 2026 05:52
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