Skip to content

feat: add user setup flow behind feature flag#469

Open
facundo-herodevs wants to merge 1 commit intomainfrom
544-user-setup
Open

feat: add user setup flow behind feature flag#469
facundo-herodevs wants to merge 1 commit intomainfrom
544-user-setup

Conversation

@facundo-herodevs
Copy link
Member

Summary

  • Added a user-setup flow that runs after hd auth login to check status and complete setup via EOL GraphQL.
  • Introduced a retry helper and consistent GraphQL error extraction to align with existing NES client error handling.
  • Gated the feature behind ENABLE_USER_SETUP.
  • Updated Biome schema version in biome.json.

Key Changes

  • New GraphQL operations: userSetupStatus query and completeUserSetup mutation.
  • New client: src/api/user-setup.client.ts with status + completion logic and retries.
  • Feature flag: config.enableUserSetup sourced from ENABLE_USER_SETUP.
  • Shared helper: src/api/graphql-errors.ts for Apollo error normalization.
  • Tests updated for login flow and user-setup retry behavior.

Notes

  • User setup only runs when ENABLE_USER_SETUP=true.
  • Failures after retries surface “Please contact your administrator.”

@facundo-herodevs facundo-herodevs requested a review from a team as a code owner February 4, 2026 18:07
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.

2 participants