Skip to content

Conversation

IncbomDev
Copy link

@IncbomDev IncbomDev commented Aug 15, 2025

TL;DR: This PR adds full installation instructions for all major authentication UI components and sets up a Husky pre-commit hook that automatically generates, copies, builds, and deploys the Shadcn registry. Basically, it makes installing components and keeping the registry/docs up-to-date fully automatic on every commit.

This pull request updates the documentation for multiple authentication-related UI components by adding detailed installation instructions for each component. Additionally, it introduces a new pre-commit hook script to automate registry generation and deployment tasks. These changes improve the developer experience by making it easier to install and integrate components, and by streamlining the registry build workflow.

Documentation improvements:

  • Added installation instructions (with npm, pnpm, yarn, and bun commands) to the documentation pages for all major UI components, including AcceptInvitationCard, AccountSettingsCards, AccountsCard, APIKeysCard, AuthLoading, AuthUIProvider, AuthView, ChangeEmailCard, ChangePasswordCard, DeleteAccountCard, EmailTemplate, OrganizationMembersCard, OrganizationSettingsCards, OrganizationSwitcher, PasskeysCard, ProvidersCard, RedirectToSignIn, RedirectToSignUp, and SecuritySettingsCards. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]

Developer workflow automation:

  • Introduced a new .husky/pre-commit script that automates registry generation, copying, building, and deployment steps, helping ensure the registry and documentation are always up to date before committing.

Closes #171
Closes #100

@daveycodez
Copy link
Contributor

This looks pretty cool however I was planning in the future to restructure some things, so this should probably go into a registry/alpha folder in the meantime, since some things might change fundamentally and get renamed in the future.

Also, the pre-commit script is OK but I think it would be better to simply generate these files during the docs Next.js build and copy them over, so we can gitignore all the generated files and have it automated.

@AaronLayton
Copy link
Contributor

AaronLayton commented Sep 10, 2025

TBF @daveycodez the update looks alright - as its generated each time surely it wouldn't matter if you are planning on changing things up soon?

This update looks like it covers all the components and the dependencies for each. With some initial testing you could get this in for how better-auth-ui currently works and as you change up the components and structures the generate.mjs should keep things working?

An alpha branch may be good for public testing ( I will update my project to use it for testing purposes if you want )

And great work @IncbomDev 💪

@root-fabrica
Copy link

There is some update on this?

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.

Install via shadcn CLI? Trouble using with a tailwind prefix configured installation experience is too monolithic
4 participants