Style as a compact transparent link-like element. Set can_focus=False
so it doesn't steal initial focus from the main content.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace bottom-row Back buttons with a top-left "← Back" button
across all screens for consistent navigation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace overflow:hidden with overflow-x:auto on button rows so
buttons can be scrolled to on narrow screens instead of being
clipped off-screen.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Log filenames used UTC time while cron runs in local time, causing
different runs to generate the same filename (e.g. 04:00 local and
06:00 local both mapped to 04:00 UTC). Use local time for log
filenames to ensure each run gets a unique file.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Each section gets a distinct color: General (purple), Email (green),
SSH (yellow), Web Dashboard (blue) — with background-colored title
labels matching the Textual markup playground style.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use border-title panels (General, Email Notifications, SSH, Web
Dashboard) instead of TabbedContent for a cleaner visual layout.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Organize settings into General, Email, SSH, and Web Dashboard tabs
using TabbedContent. Add test-email CLI command and button that
auto-saves settings then sends a test email via SMTP.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Full rename of all user-facing CLI command names and flags across
the entire codebase: bin/gniza, TUI screens, schedule cron generation,
README, and DOCUMENTATION.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Short help shows a compact command list. Full help includes detailed
usage for every command with descriptions and config paths.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CLI commands still use targets/remotes internally but all prose
and section headers use Source/Destination language throughout.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace global last-run (based on log file mtime) with per-schedule
LAST_RUN field in the schedule config. New scheduled-run CLI command
runs backup and stamps LAST_RUN only on success.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Reorganize help into categorized sections, add all fields to
targets show (source type, SSH/S3/GDrive details, MySQL) and
remotes show (type-specific fields, disk info).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename all user-facing strings: Target→Source, Remote→Destination across TUI, docs, web dashboard, bash scripts, config examples, and README
- Add go-to-path search input to both FolderPicker and RemoteFolderPicker
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename Targets → Sources, Remotes → Destinations across all screens
- Reorganize main menu with logical groupings and separators
- Add Browse button to Base path field in remote editor (local + SSH)
- Fix RichLog IndexError crash when compositor renders with y=-1
- Fix _sync_crontab accidentally wiping crontab via premature remove
- Per-target locking and auto-create local remote base directory
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Browse button now opens an SSH directory tree picker when source type is
SSH, using the configured credentials. Folders input and Browse button
placed on same row so they're visible without scrolling.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Rsync exit 23 (partial transfer) now triggers an automatic retry to recover
failed files before accepting with a warning. Also adds a task counter next
to the clock in the header bar showing running job count.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add source.sh for remote source backup support
- Add responsive DocsPanel with layout adaptations for narrow screens
- Running tasks log viewer now shows last 100 lines (tail -f style)
- Add incremental backup explanation to README
- Update backup, transfer, schedule, and snaplog modules
- Add MCP config and logo asset
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The app-level on_resize/on_screen_resume didn't fire on initial
screen push. Now DocsPanel handles its own responsive layout
via on_mount and on_resize, ensuring it works immediately.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The auto-hide threshold (100 cols) was hiding the panel before
the vertical layout logic could apply. Now:
- >= 80 cols: panel on the right (horizontal)
- 45-79 cols: panel at the bottom (vertical, max 40% height)
- < 45 cols: panel hidden
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
On mobile/narrow terminals the .screen-with-docs container
switches from horizontal to vertical layout, placing the
help panel below the main content instead of beside it.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Only generate a new API key if one doesn't already exist in
gniza.conf. Prevents overwriting user-set passwords on upgrade.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Target the xterm canvas element with WheelEvent including proper
clientX/clientY coordinates so xterm.js forwards scroll events to
the Textual app for container-level scrolling.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
WheelEvent approach didn't work. Now dispatches ArrowUp/ArrowDown
KeyboardEvents to the xterm helper textarea, which xterm forwards
to the Textual app as actual key presses.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Translate touch swipe gestures into wheel events dispatched to
the xterm terminal, enabling scrolling on touch devices.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When in vertical layout (narrow screens), align content to top
and enable vertical scrolling so the menu list isn't cut off.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Below 100 cols: stack logo on top, menu below (vertical)
- Below 48 cols (~290px): hide logo entirely, show only menu
- 100+ cols: original side-by-side horizontal layout
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Custom textual-serve template with viewport meta tag, full-viewport
terminal sizing, and auto font-size for mobile (<768px)
- Fix web install-service/remove-service/status to handle user-mode
systemd (systemctl --user) alongside root mode
- Add 'gniza uninstall' command that runs the uninstall script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Auth middleware now skips /static/ paths and WebSocket upgrades,
fixing the blank splash screen (xterm.css and textual.js were 401'd)
- Uninstall script now properly stops and removes the user systemd
service (~/.config/systemd/user/gniza-web.service) in user mode
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Auto-hide docs panel when terminal < 100 cols, respects manual F1 toggle
- Hide logo on main menu when terminal < 80 cols
- DataTable: flexible height (auto with min/max) instead of fixed 12
- Dialogs, pickers, wizard: percentage-based widths with max-width caps
- Menu list: flexible height and width constraints
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Let Rich handle word wrapping naturally instead of breaking lines
at fixed widths, which caused mid-word cuts in narrow panels.
Also use NoMatches instead of bare Exception in toggle handler.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Split each screen into two columns: existing controls on the left,
a DocsPanel with Rich-markup documentation on the right (30% width).
Press F1 to toggle the help panel on/off from any screen.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The old read -r line approach buffered until \n, but rsync --info=progress2
uses \r without \n for progress updates. Using tee(1) preserves \r
characters and writes through immediately for real-time progress.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
rsync --info=progress2 uses \r without \n, so the entire progress
stream is one long line. Split on both \r and \n to parse each
progress update independently.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add --info=progress2 --no-inc-recursive to rsync for overall progress
- Parse rsync progress output (percentage, speed, ETA) from log file
- Show ProgressBar widget and progress label below buttons
- Progress bar auto-hides when job finishes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
View Log now displays the log in a RichLog panel below the buttons
instead of opening a modal screen. The log tails the file in real-time
with a 0.3s poll interval while the job is running.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The poll timer was reading from job.output in memory, which depended on
run_job's async task populating it. Now OperationLog reads new content
directly from the log file using seek, making it independent of the
async task. Also store the asyncio task reference to prevent GC.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>