feat(ENG-3220): show only the notice for apps linked at sign-in
Draft
BG
1mo ago+48+48+01234567890123456789-22-22-01234567890123456789
Context
With Okta account linking (XAA), an employee's accounts on some apps are linked by the identity provider when they sign in to StackOne. The Hub has nothing to connect for them (ENG-3220).
Today a member who opens one of those apps sees:
- The API's notice: "Accounts for this app are linked automatically when you sign in to StackOne through your company's SSO, so there is nothing to connect here".
- "Press Connect below to authenticate" right under it.
- A Connect button that the API refuses with a 422.
Changes
The API now sends linkedAtSignIn: true on those configs (StackOneHQ/unified-cloud-api#9206). With it:
- The no-fields view shows the notices and drops the "Press Connect" prompt.
- The footer shows no actions, as on the list view.
- The title's back arrow stays, so the user can return to the list.
Configs without the flag render exactly as before.
Testing
- Checked in a build of this branch against a local API. An Okta-linked option shows the notice with no Connect button, and a normal connector still shows its form and Connect button.
- The Hub has no component tests yet.
npm run lintandnpm testpass on a cleannpm ci.
After release
- The dashboard needs a
@stackone/hubbump.
Summary by cubic
Shows only the automatic-linking notice for apps whose accounts are linked at sign-in, instead of prompting users to connect and letting them hit a Connect action that errors with a 422.
- Uses the API's
linkedAtSignInflag on connector configs to hide the "Press Connect below to authenticate" prompt and the footer actions; Back stays so users can return to the list. - The flag is read directly from the narrowed config in the fields memo and threaded through the view components.
- Configs without the flag render exactly as before.