forked from Qortal/q-blog
20 lines
841 B
Markdown
20 lines
841 B
Markdown
# 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 editor’s 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.
|