Skip to content

feat: Ask for authentication inside protected notes instead of a modal - #3081

Open
Mytherin wants to merge 1 commit into
standardnotes:mainfrom
Mytherin:feat/inline-protected-note-unlock
Open

Mytherin wants to merge 1 commit into
standardnotes:mainfrom
Mytherin:feat/inline-protected-note-unlock

Conversation

@Mytherin

Copy link
Copy Markdown

Opening a protected note now shows the note's protected screen right away, with the authentication prompts (passcode, account password, biometrics and session duration) inline, instead of asking in a modal before the note opens. This is similar to how Apple Notes works and breaks the flow less than a pop-up window.

  • The challenge modal's prompts and submit logic are extracted into a reusable ChallengeForm, used by both the modal and the protected screen.
  • Challenges are offered to an inline handler first (useInlineChallenge) and fall back to the modal, so other protected actions, such as adding a protected note to a multiple selection, keep using the modal.
  • Protected files are unchanged.

Visual:

Screenshot 2026-11-15 111746

- Opening a protected note now shows the note's protected screen right away, with the authentication prompts (passcode, account password, biometrics and session duration) inline, instead of asking in a modal before the note opens.
- The challenge modal's prompts and submit logic are extracted into a reusable ChallengeForm, used by both the modal and the protected screen.
- Challenges are offered to an inline handler first (useInlineChallenge) and fall back to the modal, so other protected actions, such as adding a protected note to a multiple selection, keep using the modal.
- Protected files are unchanged.
@Mytherin Mytherin changed the title feat: Asks for authentication inside protected notes instead of a modal feat: Ask for authentication inside protected notes instead of a modal Nov 15, 2026

This branch has not been deployed

No deployments
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.

1 participant