Skip to content

Conversation

@dstaley
Copy link
Member

@dstaley dstaley commented Aug 9, 2024

Description

This PR adds support for actions, which are smaller states within a step. This allows us to disambiguate loading states within a single step. This PR adds support for the passkey and submit actions within start, but also lays the foundation for future actions within other steps. This allows us to show the correct busy state on the related UI element.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Aug 9, 2024

🦋 Changeset detected

Latest commit: 8223cd6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/elements Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dstaley dstaley marked this pull request as ready for review August 12, 2024 19:22
</Card.Body>
<Card.Actions>
<Common.Loading>
<Common.Loading scope='submit'>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will need this added to each submit action across both sign in and signup. Not just the start step.

@dstaley dstaley changed the title feat(elements,ui): Add support for actions within start step feat(elements,ui): Add support for loading actions Aug 14, 2024
Copy link
Member

@alexcarpenter alexcarpenter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏼 I can follow up with the usage implementation in the UI components.

@alexcarpenter
Copy link
Member

#3964

@dstaley dstaley merged commit 3dbe011 into main Aug 15, 2024
@dstaley dstaley deleted the ds.feat/elements-loading-actions branch August 15, 2024 21:53
brkalow pushed a commit that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants