Skip to content

feat: view persistence, OIDC auth, unified search, and UX improvements - #5

Open
Thomas-DeOliveira wants to merge 7 commits into
andes90:masterfrom
Thomas-DeOliveira:master
Open

feat: view persistence, OIDC auth, unified search, and UX improvements#5
Thomas-DeOliveira wants to merge 7 commits into
andes90:masterfrom
Thomas-DeOliveira:master

Conversation

@Thomas-DeOliveira

Copy link
Copy Markdown

Features

💾 View Mode Persistence (0ff49a0)

  • Editor/preview view preference now persists across sessions
  • Stored in browser localStorage via BrowserPreferencesPort
  • Automatically restores last used view on file open

🔐 Generic OIDC Authentication (e34d9f6)

  • Replaced Google-specific OIDC with generic OIDC provider support
  • New environment variables:
    • AUTH_OIDC_ISSUER_URL - OIDC provider issuer URL
    • AUTH_OIDC_CLIENT_ID - OAuth client ID
    • AUTH_OIDC_CLIENT_SECRET - OAuth client secret
    • AUTH_OIDC_ALLOWED_EMAILS - Comma-separated list of allowed emails
  • Works with any OIDC-compliant provider (Keycloak, Auth0, Okta, Google, etc.)

⌨️ Ctrl+K Quick Switcher Fix (9bbcd3c)

  • Fixed Ctrl+K being captured by CodeMirror before Quick Switcher
  • Now uses capture phase event listener to intercept keydown early
  • Quick Switcher opens reliably in all contexts

🔄 Git Auto-Rebase (9ca8941)

  • Git push now automatically rebases on non-fast-forward conflicts and retries
  • Returns { rebased: true } to client to trigger stale room detection
  • Client shows "Content modified externally" toast and reloads document
  • Prevents merge conflicts in collaborative editing scenarios

🔍 Unified File & Content Search (3dc581c)

  • Added content search to Quick Switcher (Ctrl+K) alongside existing file search
  • New /api/search?q= endpoint returns matches with ~120 char excerpts
  • Results grouped by section: "Files" and "Content"
  • Minimum 2 characters required for content search

🎯 UI/UX Improvements (916ebb0)

  • Close on outside click: Chat panel and overflow menu now close when clicking outside
    • Fixed missing initialization of toolbarOverflowOpen state
  • Improved toolbar interaction behavior

Commits

  • 0ff49a0 feat(preferences): add preferred view storage and retrieval functionality
  • e34d9f6 refactor(auth): generalize OIDC provider handling and update error messages
  • 9bbcd3c fix(shortcuts): capture Ctrl+K before CodeMirror in bubble phase
  • 9ca8941 feat(git): auto-rebase on non-fast-forward push and reload affected rooms
  • 3dc581c feat(search): add unified file and content search in quick switcher
  • 916ebb0 feat(toolbar): enhance toolbar interactions and close behavior for overflow menu and chat panel

Testing

  • ✅ OIDC authentication with Keycloak
  • ✅ View mode persists across page reloads
  • ✅ Content search with special characters
  • ✅ Popups close on outside click (chat, overflow)
  • ✅ Ctrl+K works in all contexts including CodeMirror
  • ✅ Git auto-rebase triggers document reload

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