Skip to content

feat: add description field to columns#21

Merged
eyelock merged 3 commits into
mainfrom
feat/column-description
Jan 13, 2026
Merged

feat: add description field to columns#21
eyelock merged 3 commits into
mainfrom
feat/column-description

Conversation

@eyelock
Copy link
Copy Markdown
Owner

@eyelock eyelock commented Jan 13, 2026

Summary

  • Add optional description field to Column model
  • Add description TextField to ColumnEditorView
  • Backwards-compatible: existing data without description loads with empty string

Changes

  1. Sources/TermQCore/Column.swift: Added description property with decodeIfPresent for backwards compatibility
  2. Sources/TermQ/Views/ColumnEditorView.swift: Added description TextField with "(optional)" placeholder

Test plan

  • Build succeeds locally
  • CI validates build, lint, format, and tests
  • Manual: Edit column, verify description field appears
  • Manual: Save description, verify it persists

🤖 Generated with Claude Code

- Add optional description field to Column model with backwards-compatible
  decoding (decodeIfPresent defaults to empty string)
- Add description TextField to ColumnEditorView

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@eyelock eyelock force-pushed the feat/column-description branch from 27b5afc to c8d167b Compare January 13, 2026 22:09
David Collie and others added 2 commits January 13, 2026 22:19
- Change menu item from "Rename Column..." to "Edit Column..."
- Make description field multi-line in ColumnEditorView
- Add description field to CLIColumn struct
- Include description in CLI column list output
- Update localization strings

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Previously, clicking "New Column" would immediately add the column
to the board, making it visible in the background while editing.
If cancelled, the column was deleted.

Now the column is created as a draft that only gets added to the
board when Save is clicked. Cancel simply discards the draft.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@eyelock eyelock merged commit 5bb8bc8 into main Jan 13, 2026
5 checks passed
@eyelock eyelock deleted the feat/column-description branch January 13, 2026 22:40
eyelock pushed a commit that referenced this pull request Jan 19, 2026
This PR reorganizes and improves the terminal card editor with better
component usage and clearer organization.

## New Components

### LargeTextInput
- Created new reusable component for multi-line text input
- Uses TextEditor (not TextField) for stable, non-jumping layout
- Fixed height prevents layout shifts during typing
- Custom placeholder implementation
- Solves form width issues - now uses full available width
- Consistent styling with PathInputField and SharedToggle

## Terminal Editor Changes

### Agent Tab → Prompts Tab
- Renamed for clearer terminology (agent prompts vs agent tab)
- Improved visual hierarchy with status indicators at top

### Status Indicators (Prompts Tab)
- Applied StatusIndicator component for MCP Server status
- Applied StatusIndicator for Agent Prompts status
- Applied StatusIndicator for Confirm External Modifications
- Fixed logic: "Terminal allows commands" now shows "Enabled/Disabled"
  instead of "Installed" (proper semantic distinction)

### Terminal Tab Reorganization
- Moved Command Generator from Agent/Prompts tab to Terminal tab
- New section: Automation (contains Init Command + Command Generator)
- Reordered sections: Terminal → Security → Automation (logical flow)
- Command Generator now conditional (only shows when agent prompts enabled)

## Component Improvements

### StatusIndicator Spacing
- Increased HStack spacing: 6 → 8
- Increased vertical padding: 4 → 8
- Reduces "squished" appearance, better visual breathing room

## Localization

- Added: common.enabled, common.disabled
- Added: editor.section.prompts
- Updated all 40 language files with translations

## Files Changed

New:
- Sources/TermQ/Views/Components/LargeTextInput.swift

Modified:
- Sources/TermQ/Views/CardEditorView.swift (tab reorganization)
- Sources/TermQ/Views/Components/StatusIndicator.swift (spacing)
- Sources/TermQ/Utilities/Strings.swift
- Sources/TermQ/Resources/*/Localizable.strings (40 files)

## Testing

- All 521 tests pass
- Manual testing verified:
  - LargeTextInput stable (no jumping during typing)
  - Full width usage in forms
  - StatusIndicator spacing improved
  - Command Generator conditional display works
  - Terminal tab section order logical
  - All status messages semantically correct

## Notes

- Global Settings > Tools tab will receive StatusIndicator in PR #7
- This maintains PR #6 focus on Terminal Details editor
- PR #7 will achieve full consistency across both views

Addresses feedback items #17, #18, #20, #21 from parent plan
Part of Settings UI Improvements series (PR #6 of 8)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
eyelock added a commit that referenced this pull request Jan 19, 2026
…74)

This PR reorganizes and improves the terminal card editor with better
component usage and clearer organization.

## New Components

### LargeTextInput
- Created new reusable component for multi-line text input
- Uses TextEditor (not TextField) for stable, non-jumping layout
- Fixed height prevents layout shifts during typing
- Custom placeholder implementation
- Solves form width issues - now uses full available width
- Consistent styling with PathInputField and SharedToggle

## Terminal Editor Changes

### Agent Tab → Prompts Tab
- Renamed for clearer terminology (agent prompts vs agent tab)
- Improved visual hierarchy with status indicators at top

### Status Indicators (Prompts Tab)
- Applied StatusIndicator component for MCP Server status
- Applied StatusIndicator for Agent Prompts status
- Applied StatusIndicator for Confirm External Modifications
- Fixed logic: "Terminal allows commands" now shows "Enabled/Disabled"
  instead of "Installed" (proper semantic distinction)

### Terminal Tab Reorganization
- Moved Command Generator from Agent/Prompts tab to Terminal tab
- New section: Automation (contains Init Command + Command Generator)
- Reordered sections: Terminal → Security → Automation (logical flow)
- Command Generator now conditional (only shows when agent prompts enabled)

## Component Improvements

### StatusIndicator Spacing
- Increased HStack spacing: 6 → 8
- Increased vertical padding: 4 → 8
- Reduces "squished" appearance, better visual breathing room

## Localization

- Added: common.enabled, common.disabled
- Added: editor.section.prompts
- Updated all 40 language files with translations

## Files Changed

New:
- Sources/TermQ/Views/Components/LargeTextInput.swift

Modified:
- Sources/TermQ/Views/CardEditorView.swift (tab reorganization)
- Sources/TermQ/Views/Components/StatusIndicator.swift (spacing)
- Sources/TermQ/Utilities/Strings.swift
- Sources/TermQ/Resources/*/Localizable.strings (40 files)

## Testing

- All 521 tests pass
- Manual testing verified:
  - LargeTextInput stable (no jumping during typing)
  - Full width usage in forms
  - StatusIndicator spacing improved
  - Command Generator conditional display works
  - Terminal tab section order logical
  - All status messages semantically correct

## Notes

- Global Settings > Tools tab will receive StatusIndicator in PR #7
- This maintains PR #6 focus on Terminal Details editor
- PR #7 will achieve full consistency across both views

Addresses feedback items #17, #18, #20, #21 from parent plan
Part of Settings UI Improvements series (PR #6 of 8)

Co-authored-by: David Collie <support@eyelock.net>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
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