Commit Graph
334 Commits
Author SHA1 Message Date
Chris Scott 032d1a075e Update permission dialog ID fix 2026-01-17 12:49:33 -05:00
Chris Scott 5153d49fa7 Add per-repo reset permissions feature
- Add POST /api/repos/:id/reset-permissions endpoint that disposes OpenCode instance
- Add resetRepoPermissions API function in frontend
- Add Reset Permissions button in RepoDetail header and mobile dropdown
- Add confirmation dialog explaining the action clears Allow Always permissions
2026-01-17 09:49:47 -05:00
Chris Scott 01d5304d25 Fix permission dialog using wrong ID and add typed permission labels
- Fix critical bug: pass permission.id instead of permission.permission when responding
- Replace hardcoded switch statement with PERMISSION_LABELS derived from OpenCode types
- Add all permission types from PermissionConfig schema
- Remove console.error per project guidelines
2026-01-17 09:49:39 -05:00
Chris Scott 8be0bbd8a0 Merge branch 'main' of https://github.com/chriswritescode-dev/opencode-manager 2026-01-15 20:54:42 -05:00
Naman Rajpal 1e4b756973 fix: allow text paste on iOS by checking clipboard text before files (#64) 2026-01-15 20:53:48 -05:00
Chris Scott cf13bed2db Merge remote-tracking branch 'origin/main' 2026-01-15 20:50:45 -05:00
Chris Scott d428f19922 Add settings to mobile menu and fix header styling 2026-01-15 20:49:57 -05:00
Ishaan Sharma 9efcbc5688 Fix invisible code blocks in dark mode (#65) 2026-01-15 20:49:52 -05:00
Chris Scott 2ba959ac0b Add app loader and skeleton states 2026-01-15 19:03:25 -05:00
Chris Scott 7ba2cf2328 Add session ID filter to SSE error handling 2026-01-15 18:29:55 -05:00
Chris Scott 607e824613 Clean up roadmap sections 2026-01-15 18:20:40 -05:00
Chris Scott 913c427f6b Add roadmap link to README 2026-01-15 18:19:24 -05:00
Chris Scott 6ccbdad80b Add project roadmap 2026-01-15 18:18:32 -05:00
Chris Scott 8d9e6d43da Bump version to 0.6.3 v0.6.3 2026-01-15 18:04:06 -05:00
Chris Scott fc5e532abb Update session UI with improved header and scroll masks 2026-01-15 18:02:53 -05:00
Chris Scott 99cc7c5c43 Optimize repo list spacing and layout adjustments 2026-01-15 18:02:52 -05:00
Chris Scott 47a5c50f65 Update RepoDetail component 2026-01-15 17:19:28 -05:00
Ishaan Sharma e3f95ad3b6 chore: make File Changes section collapsible (#60) 2026-01-15 16:26:45 -05:00
Chris Scott 078fbd1a05 Add config sync mode to prevent config file overwrites on startup (#63)
Fixes #62

- Config file in workspace volume is now the source of truth
* Preserve raw config content with comments instead of re-stringifying parsed JSON
* Sync provider credentials to OpenCode server when adding or removing API keys
* Add error handling for session errors with toast notifications and inline message display
* Refactor provider settings to manage API keys directly with edit/delete support
2026-01-15 10:39:38 -05:00
Naman RajpalandChris Scott f3505de0e1 Add Markdown Preview to FilePreview Component (#51)
* Adding markdown preview in FilePreview

* Refactor markdown rendering into reusable components

* Fix: Make syntax highlighting theme-aware

* Refactor: Follow project conventions for naming and CSS organization

* Refactor: Use virtualization infrastructure for markdown preview

- Add loadAll(), fullContent, isFullyLoaded to useVirtualizedContent hook
- Expose new methods via VirtualizedTextView ref handle
- Remove duplicate fetch in FilePreview, use ref methods instead
- Add 1MB size limit for markdown preview with user-friendly message

---------

Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
2026-01-13 18:51:41 -05:00
Chris Scott 74608a7e2a Fix opencode install script handling for latest version 2026-01-13 11:19:11 -05:00
Chris Scott 213cd66cae Bump version to 0.6.2 0.6.2 2026-01-13 10:36:24 -05:00
Chris Scott f0d97f8d6e Fix issue #42: Support absolute paths when adding local repos (#52)
Add ability to import existing git repositories from absolute paths by copying them to the workspace.

Backend changes:
- Add helper functions: isValidGitRepo(), checkRepoNameAvailable(), copyRepoToWorkspace()
- Add checkoutBranchSafely() helper for consistent branch handling across codebase
- Modify initLocalRepo() to detect absolute vs relative paths
- For absolute paths: validate, check if git repo, copy to workspace using git clone --local
- For relative paths: maintain existing behavior (create new empty git repo)
- Refactor switchBranch() to use shared checkoutBranchSafely() helper
- Fail with clear error message if repo name already exists in workspace

Frontend changes:
- Update UI placeholder and help text to explain absolute path support
- Branch help text adapts based on input type (absolute vs relative)
2026-01-13 10:15:07 -05:00
Chris Scott 3ab55fc682 Refactor SessionCard layout to vertically stack checkbox with busy indicator 2026-01-13 09:37:05 -05:00
Chris Scott 2850de02f3 Bump version to 0.6.1 0.6.1 2026-01-13 00:16:25 -05:00
Chris Scott cd8d87710e Fix message ID comparison for alphanumeric IDs 2026-01-13 00:16:09 -05:00
Chris Scott 43a456317b Fix Docker build: pass OpenCode version to installer and use correct repo v0.6.0 2026-01-13 00:02:30 -05:00
Chris Scott 1915b1e765 Bump version to 0.6.0 2026-01-12 23:59:11 -05:00
Chris Scott f7fd3176d4 Refactor SSE event handling and consolidate notification contexts 2026-01-12 23:56:50 -05:00
Chris Scott 9851ec06e0 Add version-based Docker cache invalidation for uv/opencode
Alternative approach to PR #37 - instead of busting cache on every build,
use git ls-remote to fetch latest version tags and pass them as build args.
Docker layer only rebuilds when tool versions actually change.

- Move uv install from base to runner stage alongside opencode
- Add UV_VERSION and OPENCODE_VERSION build args as cache keys
- Fetch versions via git ls-remote (no API rate limits)
- Log installed versions in build output for debugging

Ref: #37
2026-01-11 15:51:34 -05:00
Naman Rajpal f8ba8f1850 chore: add .gitattributes to enforce line endings (#50)
Add .gitattributes file to ensure consistent line endings across
different operating systems. Configure LF endings for shell scripts
(.sh, .bash) and Docker files (Dockerfile, docker-compose.yml) to
prevent execution issues on Unix-like systems while setting auto
text handling for all other files.
2026-01-11 15:33:23 -05:00
Chris Scott ac551feddb Bump version to 0.5.9 v0.5.9 2026-01-10 20:13:39 -05:00
Chris Scott dc9a57b361 fix TypeScript errors for updated OpenAPI types 2026-01-10 20:10:48 -05:00
Chris Scott 74b10fc57b Bump version to 0.5.8 v0.5.8 2026-01-10 20:02:18 -05:00
Chris Scott 8695f7c745 add drag and drop repo reordering functionality 2026-01-10 19:40:42 -05:00
Chris Scott 17ee96d316 regenerate OpenAPI spec and add model selection components 2026-01-10 18:39:12 -05:00
Chris Scott 9ed292af2a add OpenCode upgrade endpoint and UI button (#49) 2026-01-10 10:27:24 -05:00
Chris Scott 3af1cfbaac fix repo mcp dialog desktop fullscreen layout 2026-01-04 18:12:59 -05:00
Chris Scott a6fd795eaa Implement session-level todo state management with inline display 2026-01-04 18:08:09 -05:00
Chris Scott 84c947d19a Add fallback copy method for non-HTTPS clipboard access 2026-01-04 17:42:16 -05:00
Chris Scott b9b139ce48 fix untracked file diff regex pattern and add tests 2026-01-04 17:23:26 -05:00
Chris Scott ed4bc17987 add typecheck script and fix TypeScript errors (#48) 2026-01-04 17:11:53 -05:00
Chris Scott e853660ad3 Bump version to 0.5.7 v0.5.7 2026-01-04 14:12:09 -05:00
Justin CarlsonandChris Scott cd9a552bf8 fix: centralize iOS safe area and refactor list components (#47)
* fix: add iOS safe-area-inset-top support for fullscreen overlays

- Add pt-safe CSS utility class for safe-area-inset-top
- Create FullscreenSheet component with built-in safe-area support
- Add fullscreen prop to DialogContent for fullscreen dialogs
- Update FileBrowserSheet to use FullscreenSheet
- Update MobileFilePreviewModal to use FullscreenSheet
- Add pt-safe to SettingsDialog mobile view

Fixes status bar overlap on iOS devices with notch/Dynamic Island

* fix: add pt-safe to main page headers

- Header.tsx (main repos page)
- SessionDetailHeader.tsx (session page)

* docs: add TDD refactoring plan for iOS safe area

* remove plan file from repo

* refactor: centralize iOS safe area handling with PageHeader component

- Add PageHeader component with pt-safe, sticky, z-10, border-b styling
- Add TDD test infrastructure (vitest config, testing-library, jsdom)
- Refactor Header, SessionDetailHeader, RepoDetailHeader, Workspace to use PageHeader
- Fix missing pt-safe on RepoDetailHeader and Workspace pages
- All header safe area styling now has single fix point

* fix: add pt-safe to remaining fullscreen dialogs and sheets

- GitChangesSheet, FilePreviewDialog: add fullscreen prop
- ModelSelectDialog, RepoMcpDialog: add pt-safe class
- EditSessionTitleDialog: add pt-safe on mobile

* fix: use mobile-first positioning for large dialogs

Dialogs need top-0 positioning on mobile for pt-safe to work.
Centered dialogs don't benefit from safe area padding.

* fix: add mobileFullscreen prop to DialogContent

- Fullscreen on mobile with pt-safe, centered on desktop
- Simplifies large dialog styling

* fix: use inline styles for iOS safe area to fix CSS cascade issues

- Convert pt-safe/pb-safe to @utility directives with iOS 11 fallback
- Use inline styles on DialogContent for reliable safe-area padding
- Position close button with calc(env(safe-area-inset-top) + 1rem)
- Add 10 tests for DialogContent safe-area behavior

* refactor: extract ListToolbar and Header components for reuse

- Add ListToolbar component for search/select all/delete UI
- Add Header compound component (Header.Root, Header.Title, etc.)
- Update SessionList and RepoList to use ListToolbar
- Mobile delete: deletes selected or all if none selected
- Cancel delete now clears selection
- Remove unused layout components

---------

Co-authored-by: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com>
2026-01-04 14:05:59 -05:00
Chris Scott 72bb20a4fa Update eslint config to warn on existing issues v0.5.6 2026-01-03 16:02:45 -05:00
Chris Scott 8f1cbfea4b Bump version to 0.5.6 2026-01-03 16:02:03 -05:00
Chris Scott 8166044d6e Fix eslint (#46)
* Fix mobile image upload and paste with improved file type handling

* Replace older sessions header with separator line

* Add ESLint no-console rules and fix lint errors

- Add eslint configuration for backend with no-console rule
- Add reusable error type guard utility
- Replace all error: any with error: unknown and type guards across backend
- Update logger to use console.warn/console.error only
- Remove unused variables and dead code functions
- Fix regex escape characters
- Update AGENTS.md with lint commands and requirements
2026-01-03 15:19:28 -05:00
Chris Scott c9bf962ac0 Fix mobile paste (#45)
* Fix mobile image upload and paste with improved file type handling

* Replace older sessions header with separator line
2026-01-03 11:44:39 -05:00
Chris Scott 1000f6d010 Refactor directory parameter handling in title routes with buildUrl helper 2026-01-03 01:00:09 -05:00
Chris Scott 4b175604e9 Refactor session list with card component and date grouping 2026-01-03 00:51:05 -05:00