Files
q-blog/docs/DECISIONS/ADR-0007-wiki-edit-auth-flow.md
greenflame089 0b100af686 Release v0.2.2
2025-08-22 07:28:42 -04:00

20 lines
841 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ADR-0007 — Wiki Edit Flow & Auth Adjustments (v0.2.2)
**Status:** Accepted
**Date:** 2025-08-22
## Context
Users could not edit others posts on wiki-enabled blogs unless they owned a blog. Auth feedback was unclear; initial auth no longer triggered on first load.
## Decision
1. **Edit flow:** In edit mode, do not require `currentBlog`. Publish only `service: BLOG_POST` under the editors Name using the original identifier. Never publish `service: BLOG` from edit screens.
2. **Auth:** Trigger `askForAccountInformation()` on initial load (idempotent). Show loading states for Authenticate button and names popover.
## Consequences
- Allows true wiki behavior; avoids accidental “create a blog first” blocker.
- Clear, accessible feedback during auth; fewer duplicate requests.
- Tests added to prevent regressions.