Skip to content

fix(ui): honor auth button mode - #417

Open
cameronapak wants to merge 1 commit into
mainfrom
fix/auth-button-mode
Open

cameronapak wants to merge 1 commit into
mainfrom
fix/auth-button-mode

Conversation

@cameronapak

@cameronapak cameronapak commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Keep YouVersionAuthButton actions aligned with their labels and mode. Explicit and default sign-in modes no longer sign authenticated users out; auto still follows auth state.

Impacts consumers rendering the auth button while a session exists.

Verification

  • UI unit suite: 545 passed
  • Typecheck and lint passed
  • Full monorepo tests require YVP_API_HOST, which is unavailable in the orb

RetriggerConfidence Score: 5/5

The PR appears safe to merge, with the button action now consistently matching its configured mode and displayed label.

Summary

This PR aligns YouVersionAuthButton click behavior with its displayed label and configured mode.

  • Uses one isSignOut predicate for both the rendered label and click action.
  • Preserves authentication-state-driven behavior for auto mode.
  • Adds coverage for explicit sign-in, default sign-in, and automatic sign-out behavior.
  • Adds a patch changeset for the UI package.

Reviews (1) · Last reviewed commit: "fix(ui): honor auth button mode"

@changeset-bot

changeset-bot Bot commented Sep 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b3955ad

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

This PR includes changesets to release 4 packages
Name Type
@youversion/platform-react-ui Patch
vite-react Patch
@youversion/platform-core Patch
@youversion/platform-react-hooks 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

@cameronapak cameronapak self-assigned this Sep 17, 2026
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