Commit Graph

1010 Commits

Author SHA1 Message Date
gsxdsm
13cea76e25 feat(KB-662): complete Step 1 — refresh tasks on visibility 2026-04-01 12:31:38 -07:00
gsxdsm
3122cbfa1c fix(KB-660): keep Git Manager modal within the viewport
- Constrain the Git Manager modal with a flex column layout and overflow containment
- Prevent the modal header from shrinking and let the content area resize within available space
- Adjust small-screen sizing to use auto height with a 90vh cap so overlay padding is respected
- Add changeset entries documenting the Git Manager modal viewport rendering fix
2026-04-01 12:27:26 -07:00
gsxdsm
78f6a76fd2 feat(KB-656): keep list quick entry collapsed on focus
- Add an autoExpand prop to QuickEntryBox with default focus expansion behavior
- Preserve manual expand and blur persistence while allowing list view to opt out
- Add coverage for autoExpand={false} behavior in QuickEntryBox tests
- Include a published-package changeset describing the quick entry behavior change
2026-04-01 12:25:00 -07:00
gsxdsm
5e257adbc9 feat(KB-658): tighten dashboard list view column sizing
- Reduce the list view ID column to a fixed 70px width
- Preserve full-width title cells so task titles use the remaining space
- Resolve the styles.css merge conflict by combining both list layout adjustments
- Verify the workspace build succeeds with pnpm build
2026-04-01 11:38:27 -07:00
gsxdsm
abe1ed757e feat(KB-655): merge dashboard multi-project and workflow improvements
- Add multi-project migration, CLI project selection, and dashboard overview/setup flows
- Introduce missions, quick scripts, comments unification, and changed-files/task detail enhancements
- Improve dashboard UX with mobile header fixes, quick entry behavior, title truncation, and modal rendering fixes
- Strengthen engine and storage behavior with build verification before merge, setup-script support, Claude usage/auth fixes, and expanded test coverage
2026-04-01 11:35:15 -07:00
gsxdsm
83cbced678 test(FN-704): add comprehensive AgentStore test suite
- Add 62 tests covering all AgentStore public methods (init, CRUD, state transitions, heartbeats, assignments)
- Test event emissions (agent:created, agent:updated, agent:deleted, agent:heartbeat, agent:stateChanged)
- Test error paths, state transition validation, and concurrency locking
- Verify filesystem persistence across store re-initialization
- Update coverage gaps doc to mark agent-store.ts as covered
2026-04-01 10:00:41 -07:00
gsxdsm
0ec0dab300 test(FN-705): add comprehensive unit tests for IpcHost and IpcWorker
- Add IpcHost tests: constructor, sendCommand correlation, ping, event forwarding, malformed message handling, disconnection cascade, explicit cleanup
- Add IpcWorker tests: constructor validation, PING auto-response, command handler registration/dispatch, OK/ERROR responses, sendEvent/sendErrorEvent, shutdown idempotency
- Fix TypeScript type mismatch in mock ChildProcess.send signature
- Mock logger and process IPC to enable isolated unit testing without real child processes
- Cover edge cases: timeouts, disconnected sends, unknown commands, malformed messages
2026-04-01 10:00:17 -07:00
gsxdsm
fd13f0c5d5 docs(FN-688): add comprehensive board view design audit
- Add DESIGN_AUDIT.md with 49 categorized UI issues (6 P0, 18 P1, 25 P2)
- Cover Board, List, Agents views, Header, Modals, Project Overview, and responsive behavior
- Document missing CSS classes, styling inconsistencies, and interaction state gaps
- Identify actionable fixes with file locations and specific recommendations
- Serve as foundation for child tasks to implement P0/P1 priority fixes
2026-04-01 09:54:19 -07:00
gsxdsm
aa22d64b8a feat(FN-699): remove project badge from Board and ListView components
- Remove projectId/projectName props from Board and ListView components
- Remove Folder icon import and project context badge JSX from both views
- Remove projectId/projectName prop passing from App.tsx
- Add Board test asserting .board-project-context badge is not rendered
2026-04-01 09:50:54 -07:00
gsxdsm
1654c91fb5 feat(FN-698): add per-project fallback for /api/activity-feed route
- Add dual-source fallback: try CentralCore first, fall back to store.getActivityLog()
- Adapt per-project ActivityLogEntry[] to ActivityFeedEntry[] format with projectId="local"
- Handle CentralCore init failures gracefully without returning 500
- Add comprehensive tests covering central data, empty state, init failure, and query params
- Add JSDoc documenting the fallback strategy and data source priority
2026-04-01 09:41:48 -07:00
gsxdsm
185368aac7 fix(FN-696): replace Claude HTTPS API calls with CLI subprocess for usage fetching
- Replace direct HTTPS requests to api.anthropic.com with `claude usage --json` CLI subprocess call, eliminating 429 rate-limit errors
- Remove retry/backoff logic (_sleep, CLAUDE_MAX_RETRIES, exponential delay) that is no longer needed
- Add specific error handling for CLI-not-found (ENOENT) and timeout scenarios
- Update tests to use setupClaudeMocks helper that handles both keychain and CLI mocking
- Add changeset for the patch fix
2026-04-01 09:37:43 -07:00
gsxdsm
50dc682dea docs(FN-689): add comprehensive code coverage analysis report
- Add coverage-report/ with summary, gap analysis, and README documentation
- Add per-package coverage scripts (test:coverage:core, :engine, :cli, :dashboard)
- Document files lacking test coverage with priority ratings across all packages
- Identify key coverage gaps: agent-store, IPC host/worker, and dashboard components
- Note engine OOM issue with coverage and provide workaround
2026-04-01 09:33:52 -07:00
gsxdsm
8bd2fdf5e1 fix(FN-695): portalize QuickEntryBox model selection modal to fix z-index clipping
- Render ModelSelectionModal via createPortal to document.body so it is no longer clipped behind the board on mobile
- Add SSR guard (typeof document check) around the portal call
- Update QuickEntryBox test to assert the modal is portaled outside the component container
- Add changeset for the patch fix
2026-04-01 09:29:21 -07:00
gsxdsm
f6ba388536 feat(FN-687): relocate ProjectSelector to header-left group
- Move ProjectSelector from standalone header section into header-left div next to logo/title
- Change dropdown positioning from right-aligned to left-aligned with higher z-index
- Update CSS to use inline-flex and relative positioning for proper containment
- Adjust mobile styles for narrower max-width within header-left
- Add test verifying ProjectSelector renders inside header-left container
2026-04-01 09:26:44 -07:00
gsxdsm
57d996fb9b feat(FN-692): add setupScript setting for automatic worktree initialization
- Add `setupScript` property to ProjectSettings to reference a named script
- Execute the referenced setup script after worktreeInitCommand on fresh worktrees
- Log success/failure of setup script execution; warn and skip if script name not found
- Skip setup script for pooled/recycled worktrees (fresh only)
- Add changeset (minor) for the new setting
2026-04-01 09:26:20 -07:00
gsxdsm
5e949ff4aa fix(FN-690): fix migration schema, dashboard type guards, and test stability
- Fix SQL parameter mismatch in db-migrate task INSERT (add baseCommitSha, modifiedFiles, sliceId columns)
- Fix dashboard routes type predicate to guard against null entries from git diff parsing
- Stabilize central-core activity cleanup test with fake timers
- Align executor test assertions with updated steering comment log messages
- Align store test comment log assertion with new action/outcome format
2026-04-01 09:19:50 -07:00
gsxdsm
5c367d2a97 feat(FN-685): add QuickScriptsDropdown component to dashboard header
- Create QuickScriptsDropdown component with script listing, one-click execution, and keyboard navigation (arrow keys, Enter, Escape)
- Replace static Scripts button in Header with dropdown menu showing all configured scripts
- Add loading, empty, and error states with 'Manage Scripts...' footer link
- Add full CSS styles with theme support, animations, and mobile responsiveness
- Add comprehensive tests (510 lines) covering rendering, interactions, keyboard nav, and edge cases
2026-04-01 09:19:28 -07:00
gsxdsm
04e93790b9 feat(FN-691): merge Steering and Comments tabs into unified Comments tab
- Remove SteeringTab component and merge steering comments into TaskComments
- Consolidate both steering comments (pinned) and regular comments in one tab
- Update TaskDetailModal to render single Comments tab instead of separate Steering/Comments tabs
- Migrate SteeringTab tests into TaskComments test suite with full coverage
- Update TaskDetailModal tests for new 6-tab layout (Definition, Activity, Agent Log, Changes, Comments, Model)
2026-04-01 09:18:59 -07:00
gsxdsm
e016e16774 test(FN-686): fix pre-existing dashboard test failures
- App.test.tsx: Add mocks for useProjects/useCurrentProject, update localStorage keys for view-mode
- SetupWizard.test.tsx: Remove tests for non-existent features (auto-detect, review step), match simple wizard
- TaskDetailModal.test.tsx: Update tab count to 7, change 'Steering Comments' to 'Comments', add Changes tab
- WorkspaceSelector.test.tsx: Fix task prefix from KB- to FN-
2026-04-01 09:08:23 -07:00
gsxdsm
25e25cfecd docs(FN-684): update AGENTS.md with mobile project selector behavior 2026-04-01 09:03:10 -07:00
gsxdsm
019ab30d41 feat(FN-683): fix mobile header layout
- Refactor header styles for responsive mobile layout
- Add comprehensive Header component tests for mobile breakpoints
- Include changeset for patch release
2026-04-01 09:02:13 -07:00
gsxdsm
f98f9d3456 feat(FN-682): fix setup wizard race condition and view mode restoration
- Fix setup wizard auto-open race condition in App.tsx\n- Add view mode restoration logic for dashboard navigation\n- Remove 145 lines of unused styles from styles.css\n- Ensure setup wizard opens correctly on fresh installs
2026-04-01 08:58:03 -07:00
gsxdsm
389ac3fb88 feat(FN-683): complete Step 2 — add mobile header layout styles 2026-04-01 08:55:59 -07:00
gsxdsm
5cdcb78dd0 feat(FN-672): add ProjectSelector component for multi-project support
- Add ProjectSelector component with search and status indicators
- Integrate ProjectSelector into Header with mobile responsive layout
- Update App.tsx with project selection handlers and view mode switching
- Add ProjectSelector CSS styles with status color coding
2026-04-01 08:33:16 -07:00
gsxdsm
7cacce000b feat(FN-675): align session-files endpoint with diff endpoint
- Align session-files API endpoint behavior and response structure with diff endpoint

- Add comprehensive test suite for session-files routes (241 lines)

- Update route handlers to match diff endpoint patterns and file counting

- Include changeset for the file count alignment fix
2026-04-01 08:30:46 -07:00
gsxdsm
fb204dd68c feat(KB-651): add changed files diff viewer to dashboard
- Add backend API endpoint /api/tasks/:id/diff for file diffs
- Add useChangedFiles hook for fetching and managing diff state
- Create ChangedFilesModal component with file list and diff viewer
- Integrate modal with TaskCard via files changed badge click
- Add CSS styling for changed files layout and diff display
- Add keyboard navigation (Escape to close)
- Include unit tests for ChangedFilesModal component
2026-04-01 08:26:46 -07:00
gsxdsm
9fd693880b feat(FN-679): regenerate PROMPT.md on task title/description updates
- Implement automatic PROMPT.md regeneration in updateTask() when title or description changes
- Add comprehensive tests for PROMPT.md sync behavior in store.test.ts
- Create changeset for the PROMPT.md sync fix
- Remove multi-project migration changeset (superseded)
- Update dashboard components and styles for setup wizard and provider icons
2026-04-01 08:18:00 -07:00
gsxdsm
2fbd3aaf6c feat(FN-680): add multi-project dashboard UI and setup wizard
- Add SetupWizardModal for first-run project registration with auto-detection
- Add project overview and selector component styles (560+ lines)
- Update ProviderIcon component with multi-project support
- Add project API routes and registration endpoints
- Update core types and exports for multi-project architecture
- Extend CLI with project management commands
- Remove obsolete changeset and test file
2026-04-01 08:17:54 -07:00
gsxdsm
9456bc2bff feat(FN-681): add openai-codex provider support with OpenAI icon and label mapping
- Add openai-codex AI provider with OpenAI icon and label support in ProviderIcon component

- Add comprehensive test coverage for provider icon mappings

- Extend SetupWizardModal with enhanced project setup workflow capabilities

- Update CLI bin, core types, and store interfaces for new provider support

- Remove obsolete multi-project migration changeset
2026-04-01 08:17:43 -07:00
gsxdsm
017c1bb8d5 feat(KB-504): add migration and first-run experience for multi-project support
- Add MigrationOrchestrator with filesystem scanning and auto-registration

- Add FirstRunExperience with setup wizard state management

- CLI integration with automatic migration hook on first run

- Backward-compatible single-project mode support

- \"--project\" flag support for CLI multi-project targeting

- KB_SKIP_MIGRATION environment variable for recovery

- Graceful fallback when central database unavailable

- New fn init command to initialize kb projects

- Interactive first-run setup wizard API in dashboard
2026-04-01 08:17:30 -07:00
gsxdsm
5681c354e2 feat(KB-643): add project scripts management to dashboard
- Add scripts field to ProjectSettings type for storing custom scripts\n- Add API endpoints for scripts CRUD operations and execution\n- Add client-side API functions for script management\n- Create ScriptsModal component for managing and running scripts\n- Integrate Scripts modal into dashboard header\n- Add comprehensive tests for ScriptsModal component\n- Include changeset documenting the new dashboard scripts UI feature\n- Fix duplicate terminalInitialCommand declaration
2026-04-01 08:06:03 -07:00
gsxdsm
97ec4268a4 feat(KB-636): add Missions system for large-scale project planning
- Fix TaskStore sliceId persistence and bidirectional linking between tasks and features
- Add comprehensive mission integration tests for hierarchy, status rollup, and events
- Enhance E2E tests with reorder, cascade delete, and error handling coverage
- Add scheduler integration tests for mission slice activation
- Fix duplicate mission commands in CLI help text
- Add changeset for missions launch
2026-04-01 08:04:51 -07:00
gsxdsm
d8a591bd7f feat(KB-502): add dashboard multi-project UX with overview, drill-down, and setup wizard
- Add Project Overview page with responsive grid and health metrics

- Add Project selector dropdown for quick context switching

- Add Project drill-down with back navigation to overview

- Add Setup wizard with auto-detection and manual entry flows

- Add Global activity feed with project attribution badges

- Add Project health polling (active tasks, agents, completion counts)

- Add Empty states and loading skeletons for better UX

- Add Keyboard navigation support (arrow keys, enter, escape)

- Add LocalStorage persistence for wizard state and view preferences
2026-04-01 08:04:02 -07:00
gsxdsm
360af7d863 feat(KB-635): add Mission system integration across CLI, engine, and dashboard
- Add mission CLI commands: create, list, show, delete, activate-slice
- Add pi extension tools for mission management
- Add MissionStore helper methods and Mission types
- Add scheduler mission awareness for automatic slice activation
- Add engine integration wiring for mission-aware task execution
- Add dashboard mission routes and API endpoints
- Link tasks to missions via sliceId field with autoAdvance support
2026-04-01 07:49:21 -07:00
gsxdsm
021055c82a feat(KB-341): unify steeringComments and comments into single comments system
- Consolidate steeringComments and comments into unified comments field using TaskComment type

- Remove SteeringComment type, migrate all comments to TaskComment format

- Update addComment to delegate to addTaskComment with auto-refinement for done tasks

- Merge legacy steeringComments data into comments during database migration

- Update dashboard API endpoint from /steer to /comments

- Update executor to use unified comments field for real-time injection

- Update PR comment handler to use addTaskComment method
2026-04-01 07:44:04 -07:00
gsxdsm
c1ca8a4316 feat(FN-670): add mandatory build verification before merge
- Add report_build_failure tool to merger agent for explicit build failure signaling
- Run buildCommand before finalizing merge, abort if build fails with git reset --merge
- Treat build failures as fatal errors (no retry) and keep task in in-review
- Add build verification instruction to executor system prompt
- Update executor to use steeringComments field for mid-execution guidance
2026-04-01 07:28:28 -07:00
gsxdsm
31fbe031e7 feat(FN-674): add multi-project dashboard support
- Add Project Overview page with responsive grid and health status cards
- Add Project Selector dropdown in header for quick context switching
- Add project drill-down navigation with task board/list views
- Add Setup Wizard components for first-run project registration
- Add global activity feed with project attribution and filtering
- Add project-aware task fetching to backend API
- Add project health polling and status badges
- Update ActivityLogModal with project filter and useActivityLog hook
2026-04-01 07:27:29 -07:00
gsxdsm
d781a4f2f8 feat(FN-677): add first-run experience types
- Add DetectedProject, SetupState, ProjectSetupInput, SetupCompletionResult types
- Add MigrationOptions and MigrationResult types for project migration
- Add setupComplete flag to GlobalSettings
- Support first-run wizard UI and auto-detection of existing projects
2026-04-01 07:23:37 -07:00
gsxdsm
a9ccd86ece feat(FN-669): add ntfy deep link support with dashboard hostname config
- Add ntfyDashboardHost setting to GlobalSettings for dashboard URL\n- Generate deep links in ntfy notifications with Click header\n- Handle ?task= query param in dashboard for direct task navigation\n- Add hostname configuration UI in Settings modal\n- Add comprehensive tests for deep link generation and handling
2026-04-01 07:21:43 -07:00
gsxdsm
0559962685 feat(KB-620): add multi-project migration and first-run experience
- Add FirstRunDetector for fresh-install and migration state detection
- Implement MigrationOrchestrator for auto-registering existing projects
- Create BackwardCompat layer to maintain single-project CLI workflows
- Add fn init command for manual project registration
- Add dashboard first-run wizard API endpoints (/api/setup-state, /api/complete-setup)
- Add runtimeLog, ipcLog, projectManagerLog, hybridExecutorLog to engine logger
- Include changeset documenting migration features and rollback procedure
2026-04-01 07:19:44 -07:00
gsxdsm
228648adfa feat(FN-678): add title truncation and tooltip to TaskCard
- Truncate long board titles in TaskCard with CSS text truncation\n- Add tooltip showing full title on hover via title attribute\n- Update TaskCard tests for truncation behavior\n- Add changeset for board title truncation fix
2026-04-01 07:16:54 -07:00
gsxdsm
4750d75b45 feat(FN-676): fix modal button positioning and refactor project commands
- Fix sticky bottom actions positioning in NewTaskModal with CSS improvements
- Add changeset for modal button position fix
- Refactor CLI project commands with cleaner error handling and logic
- Update project resolver tests for improved coverage and reliability
- Sync settings and task command improvements from core type changes
2026-04-01 07:16:37 -07:00
gsxdsm
51303c897a feat(KB-619): add CLI multi-project commands and --project flag support
- Add project-resolver module for centralized project resolution
- Add project subcommands: list, add, remove, info/show
- Add --project flag to task and settings commands
- Integrate project resolution into CLI entry point
- Update types for defaultProjectId setting
2026-04-01 07:16:10 -07:00
gsxdsm
a8dbd95d8c feat(KB-657): add expand/collapse toggle to quick add components
- Add toggle button (ChevronDown/ChevronUp) to QuickEntryBox (list view) and InlineCreateCard (board view)

- Replace auto-expand behavior with manual toggle control

- Add CSS styles for collapsed/expanded states and toggle button positioning

- Update tests to verify toggle behavior

- Provide cleaner default UI while keeping advanced options discoverable
2026-04-01 07:13:14 -07:00
gsxdsm
005eb6fca6 feat(KB-641): improve terminal session handling and multi-project UX
- Update terminal session result flow for better async handling
- Enhance QuickEntryBox and InlineCreateCard with improved UX
- Refactor CLI project commands with better multi-project support
- Update terminal service tests for new result flow patterns
- Add changeset documentation for tracking changes
- Clean up legacy multi-project migration components
- Improve project detection and settings management
2026-04-01 07:11:13 -07:00
gsxdsm
70d047fe27 fix(FN-673): remove beta header and add retry logic for Claude usage
- Remove outdated beta header from dashboard Header component
- Add retry logic with exponential backoff for Claude API rate limits
- Differentiate between rate limit errors and other Claude usage errors
- Add comprehensive tests for retry logic and error handling
- Add changeset for the fix
2026-04-01 07:10:57 -07:00
gsxdsm
800146550e feat(FN-671): add disclosure toggle to QuickEntryBox and reorganize mobile header
- Add persistent disclosure state with localStorage to QuickEntryBox

- Add toggle button for manual expand/collapse with ChevronUp/Down icons

- Change expanded controls to show based on user preference, not focus

- Add comprehensive CSS for toggle button and expanded/collapsed states

- Reorganize mobile header overflow menu (Usage and Activity Log buttons)

- Update all QuickEntryBox tests for new disclosure behavior
2026-04-01 07:10:39 -07:00
gsxdsm
3a5af614ed feat(FN-673): complete Step 3 — add changeset 2026-04-01 07:08:01 -07:00
gsxdsm
60aedc2f16 test(FN-673): complete Step 2 — add tests for retry logic, header removal, and error differentiation 2026-04-01 07:07:46 -07:00
gsxdsm
caee652d6c fix(FN-667): increase model dropdown z-index to fix overlay stacking
- Increase z-index from 100 to 500 for .model-selector-dropdown

- Fix dropdown appearing behind modal overlays and other UI elements
2026-04-01 07:06:48 -07:00