Find a file
Tristan Michael a0c183df82 Hide subtask counter when parent subtask shown
When "show subtasks" is enabled, the UI could display both the parent
subtask and its counter, leading to redundant information. Hide the
subtask counter under a parent subtask when the parent itself is shown
to reduce visual clutter and avoid duplicate counts.

This change ensures a cleaner presentation of tasks and subtasks by
preventing the counter from appearing alongside the visible parent
subtask.
if I drag a task in this mode, I would love to be able to drag it anywhere and have the task update its date

- Added `date: Date | null` to TaskGroup (null = Overdue or No Date, Date = the group's calendar day)
- Cross-group drops now update the task's due_date to the target group's date; preserves time-of-day when has_time is set; clears due_date when dropping into No Date
- Dropping INTO Overdue is still blocked (it's a computed group); dragging OUT of Overdue to any other group works
- Within-group drops still just reorder
Close open submenus when clicking outside

When submenu elements (like the kebab menu or workspace picker) were
open, clicking elsewhere in the app did not close them and allowed
interacting with underlying UI. This change adds a full-screen invisible
overlay element whenever either menu is open that captures outside
clicks and closes the menus, and removes the previous window-level
mousedown handler and related element bindings. This ensures that
clicking outside a submenu only closes it and prevents accidental
interactions with other parts of the app.
Prevent task clicks when closing dropdown menus

When the list menu or workspace picker is open, clicking outside should
close the menu but not also trigger underlying task click handlers. Add
a mouse down handler that closes dropdowns when clicking outside and a
capture-phase click handler that swallows the click immediately after a
menu close to avoid propagation to task elements. This avoids accidental
task activation right after closing a menu.
Prevent clicks reaching background when menus open

Stop clicks on the main task area from interacting with underlying
elements when the workspace picker or list menu are open. Previously a
global mousedown/click handler attempted to close menus and prevent a
single stray click from propagating; this change replaces that logic by
adding overlay divs inside the drawer and task list panels that capture
clicks and close the respective menus. This simplifies interaction
handling and fixes a bug where clicking menu items also triggered task
clicks.
the kebab menu calls the date on tasks a due date, but it's not a due date... it's just a date. can we make sure the codebase, documentation and everything is consistent about this?

- Renamed `due_date` field on Task struct to `date` (Rust, TypeScript, all usages)
- Renamed `group_by_due_date` field on TaskList/ListMetadata to `group_by_date`
- Renamed `set_group_by_due_date`/`get_group_by_due_date` methods to `set_group_by_date`/`get_group_by_date` in repository, Tauri commands, and JS store
- Renamed `with_due_date()` builder method to `with_date()`
- Renamed `parse_due_date` CLI function to `parse_date`
- Updated UI text "Group by due date" → "Group by date" in TasksScreen.svelte kebab menu
- Renamed JS variables `dueDate`/`dueDateHasTime` → `date`/`dateHasTime` in NewTaskInput.svelte
- Updated all test names and assertions across models.rs and repository.rs
- Updated CLAUDE.md documentation to use "date" terminology consistently
2026-04-14 06:51:56 -07:00
.claude feat: add Claude tool hooks configuration 2026-04-06 11:21:29 -07:00
.idea bevy hello world 2025-08-24 05:45:43 -07:00
apps/tauri Hide subtask counter when parent subtask shown 2026-04-14 06:51:56 -07:00
crates Group pending tasks by due date 2026-04-14 06:01:19 -07:00
docs Update documentation to reflect audit fixes 2026-04-06 11:07:29 +00:00
.gitattributes fix: reset tasks and remount screen on workspace change 2026-04-06 09:10:36 -07:00
.gitignore docs: update documentation, add LICENSE, fix outdated info 2026-03-30 16:24:46 -07:00
Cargo.lock chore: update lock files for log dependency 2026-04-03 10:11:40 -07:00
Cargo.toml Use reqwest with rustls-tls and disable default features 2026-04-03 10:11:40 -07:00
CLAUDE.md Fix documentation and code inconsistencies found during audit 2026-04-06 12:08:22 +00:00
LICENSE docs: update documentation, add LICENSE, fix outdated info 2026-03-30 16:24:46 -07:00
PLAN.md Fix documentation and code inconsistencies found during audit 2026-04-06 12:08:22 +00:00
README.md Docs: update frontmatter examples and Task struct for version counter 2026-04-05 19:23:52 -07:00

Onyx

A local-first, cross-platform tasks application built with Rust. Inspired by Google Tasks, designed for speed and flexibility.

Core Principles

  • Local-First: Your data, your folder, your control
  • Fast: Sub-second startup, instant response
  • Cross-Platform: Single codebase, all platforms
  • Flexible: Multiple workspaces for different contexts

Project Structure

onyx/
├── Cargo.toml                    # Workspace definition
├── PLAN.md                       # Detailed project plan
├── README.md                     # This file
├── crates/
│   ├── onyx-core/          # Core library (backend)
│   └── onyx-cli/           # CLI frontend
├── apps/
│   └── tauri/                    # Tauri v2 GUI (Svelte 5 + Tailwind CSS 4)
└── docs/

Project Status

  • Phase 1 (Core + CLI): Complete
  • Phase 2 (WebDAV Sync): Complete — backend, CLI, and GUI all wired
  • Phase 3 (GUI MVP): Complete
  • Phase 4 (Mobile): Tauri Android cfg-gated, needs tauri android init + build

Core Library (onyx-core)

  • Data models (Task, TaskList, AppConfig, WorkspaceConfig)
  • Markdown file I/O with YAML frontmatter
  • Local storage with repository pattern
  • Multiple workspace support
  • Task ordering and grouping
  • Subtask hierarchy (parent_id)
  • WebDAV sync with three-way diff and offline queue
  • Platform keychain credential storage (feature-gated for Android)
  • Checksum-based conflict resolution (remote wins, local recovered as duplicate)

CLI (onyx-cli)

  • Workspace management (init, add, list, switch, remove, retarget, migrate)
  • Task list management (create, show, delete)
  • Task operations (add, complete, delete, edit)
  • Group-by-due-date toggle
  • WebDAV sync (setup, push, pull, status)

GUI (apps/tauri/)

  • Tauri v2 + Svelte 5 + Tailwind CSS 4
  • Task CRUD with animated transitions
  • Drag-and-drop reordering
  • Sliding lists drawer, settings popup
  • Workspace switcher with add/remove
  • Dark mode (GNOME-style neutral grays, cyan-blue accent)
  • Due date picker/editor with optional time
  • Subtask hierarchy with three-panel slide navigation
  • Move tasks between lists
  • List rename, group-by-due-date toggle, delete completed tasks
  • Keyboard shortcuts (Escape priority chain)
  • WebDAV setup flow with credential auto-population
  • File watcher (auto-reloads on external changes)
  • Auto-sync with configurable interval, status indicators
  • Custom confirmation dialogs
  • Desktop packaging (Linux: AppImage + .deb; Windows: MSI)

Development Setup

Prerequisites

  • Rust 1.70+ (install from rustup.rs)
  • Git
  • Node.js 18+ (for Tauri GUI)

Build

# Clone and build
git clone https://github.com/SteelDynamite/onyx.git
cd onyx
cargo build

# Run tests
cargo test -p onyx-core

# Run CLI
cargo run -p onyx-cli -- --help

# Run Tauri GUI
cd apps/tauri && npm install
npm run tauri dev

Quick Start

Initialize your first workspace

# Initialize a new workspace
cargo run -p onyx-cli -- init ~/Documents/Tasks --name personal

# This creates:
# - A workspace named "personal" at ~/Documents/Tasks
# - A default list called "My Tasks"
# - Sets "personal" as the current workspace

Add and manage tasks

# Add a task
cargo run -p onyx-cli -- add "Buy groceries"

# Add a task with due date
cargo run -p onyx-cli -- add "Review PR #123" --list "Work" --due "2026-11-15"

# List all tasks
cargo run -p onyx-cli -- list show

# Complete a task
cargo run -p onyx-cli -- complete <task-id>

# Edit a task (opens in $EDITOR)
cargo run -p onyx-cli -- edit <task-id>

# Delete a task
cargo run -p onyx-cli -- delete <task-id>

Manage workspaces

# Add another workspace
cargo run -p onyx-cli -- workspace add shared ~/Dropbox/TeamTasks

# List workspaces
cargo run -p onyx-cli -- workspace list

# Switch workspace
cargo run -p onyx-cli -- workspace switch shared

# Use specific workspace for a command
cargo run -p onyx-cli -- add "Team meeting" --workspace shared

Manage task lists

# Create a new list
cargo run -p onyx-cli -- list create "Work"

# Show tasks in a specific list
cargo run -p onyx-cli -- list show --list "Work"

# Delete a list
cargo run -p onyx-cli -- list delete "Work"

Data Format

Tasks are stored as markdown files with YAML frontmatter (Obsidian-compatible):

---
id: 550e8400-e29b-41d4-a716-446655440000
status: backlog
version: 3
due: 2026-11-15T14:00:00Z
---

Task description and notes go here in **markdown** format.

- Can include lists
- Rich formatting
- Links, etc.

File System Structure

~/Documents/Tasks/           # User-selected folder
├── .onyx-workspace.json     # Workspace metadata: list ordering, detection
├── My Tasks/                # Task list folder
│   ├── .listdata.json       # List metadata: task order, id, timestamps
│   ├── Buy groceries.md     # Individual task files
│   └── Call dentist.md
└── Work/
    ├── .listdata.json
    ├── Review PRs.md
    └── Team meeting prep.md

Testing

Run the test suite:

# Run all tests
cargo test

# Run tests for specific crate
cargo test -p onyx-core

# Run tests with output
cargo test -- --nocapture

What's Next?

  • Phase 4: Mobile support (iOS & Android via Tauri v2 mobile)
  • Phase 5: GUI advanced features (rich markdown editor, search/filter)
  • Phase 6: Mobile polish and platform-specific integrations
  • Phase 7: Google Tasks importer and unique features

See PLAN.md for detailed roadmap.

License

GNU General Public License v3.0 (GPL-3.0)

This project is free and open-source software.