Add wiki page editing functionality with authentication and git integration #2
Reference in New Issue
Block a user
Delete Branch "feature/wiki-editing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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