Add wiki page editing functionality with authentication and git integration #2

Merged
ryan merged 1 commits from feature/wiki-editing into master 2025-08-14 21:06:00 -04:00
Owner

Summary

• Added complete wiki page editing functionality with authentication and permission controls
• Edit button appears in navigation only for logged-in users (Admin/Editor roles)• Clean textarea editor with Save/Cancel buttons preserving all whitespace
• Automatic git commit functionality with user attribution

Features

• Edit UI: Context-aware edit button that redirects to /edit/
• Editor Page: No-frills textarea with proper HTML escaping for whitespace preservation
• Authentication: JWT-based auth with role checking (Admin/Editor can edit, Viewer cannot)
• Auto-save: PUT endpoint saves content and automatically creates git commits
• Git Integration: Commits include editor username and fail silently if no git repo

Summary • Added complete wiki page editing functionality with authentication and permission controls • Edit button appears in navigation only for logged-in users (Admin/Editor roles)• Clean textarea editor with Save/Cancel buttons preserving all whitespace • Automatic git commit functionality with user attribution Features • Edit UI: Context-aware edit button that redirects to /edit/<path> • Editor Page: No-frills textarea with proper HTML escaping for whitespace preservation • Authentication: JWT-based auth with role checking (Admin/Editor can edit, Viewer cannot) • Auto-save: PUT endpoint saves content and automatically creates git commits • Git Integration: Commits include editor username and fail silently if no git repo
ryan added 1 commit 2025-08-14 21:04:37 -04:00
ryan merged commit 5e678dad2d into master 2025-08-14 21:06:00 -04:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/obswiki#2