Skip to content

Revamp AppTrackr: tracking, UI, motion and visual identity - #2

Merged
H4ch1Net merged 8 commits into
mainfrom
ccr-4819d01f-uizbpv
Oct 3, 2026
Merged

H4ch1Net merged 8 commits into
mainfrom
ccr-4819d01f-uizbpv

Conversation

@H4ch1Net

@H4ch1Net H4ch1Net commented Oct 3, 2026

Copy link
Copy Markdown
Owner

Brings the full revamp into main.

Summary

  • Core: accurate foreground tracking (idle cut-off at last input, lock detection, midnight splits, UWP resolution), SQLite schema migrations, export, backup and restore, daily limits, exclusions, pause, single instance, tray and an updater.
  • UI: dashboard, calendar, apps, app detail, rewards, village and settings pages rebuilt on shared components.
  • Motion: Fluent 2 duration and easing tokens in ui/motion.py. It follows Windows Animation effects and has a Settings override.
  • Visual identity ("instrument panel"):
    • Graphite and Paper themes with one signal accent. History is drawn in neutral ink; the accent marks only what is live, selected or current.
    • Bundled Instrument Sans and Martian Mono (OFL 1.1).
    • Numbered panels, hairline rules, tick-mark charts, a chronograph session dial, a quantized calendar ramp and line-art empty states.
    • New dial logo with a small-size mark.
  • Layout: two-column rows stack and the village grid drops columns on narrow windows, so no page clips at the 980x640 minimum.
  • Presentation:
    • README rewritten.
    • Banner (dark and light) and social preview drawn by scripts/make_art.py.
    • Screenshots and demo GIF regenerated from demo data.
  • Tooling: pytest suite (52 tests, offscreen UI included), ruff, CI on Windows and Linux, PyInstaller and Inno Setup release workflow with a packaged self-test (now also checks the bundled fonts load).

Testing

  • ruff check . and ruff format --check . are clean.
  • pytest passes 52 tests, including a new check that every page fits the minimum window width.
  • python -m apptrackr --self-test passes.
  • Every page was rendered offscreen in both themes at 1280x800 and 980x640 and inspected.

Note

docs/social-preview.png must be uploaded by hand under repository Settings > Social preview.

🤖 Generated with Claude Code

https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA


Generated by Claude Code

claude added 7 commits October 3, 2026 13:32
Tracking and data
- Commit focus time in 30 s checkpoints so totals are live and a crash
  loses at most one interval; split time at local midnight.
- Close idle and locked sessions at the last input instead of discarding
  the whole session (v1.0 dropped every session that ended in idle).
- Count launches per executable transition instead of per PID and stop
  counting every focus switch as an "open".
- Platform layer with Win32 (typed ctypes, UWP host resolution, tick
  wrap) plus null and demo implementations so the UI runs anywhere.
- Schema migrations via user_version; v1 migration recovers time lost
  to the idle bug, adds exclusions and daily limits.
- Backup and restore through the SQLite backup API with validation.

Features
- Per-app daily limits with notifications, app exclusion with undo,
  rename, timed pause, launch-at-login that starts in the tray, single
  instance, rotating log file, --demo and --data-dir options.
- Rewards: wire up building bonuses, resource caps, streak tiers,
  credits and a market; grouped claiming and milestone progress.

UI
- New design system (dark, light, system themes and accent presets)
  with Lucide icons, live theme switching and keyboard shortcuts.
- Rebuilt dashboard, calendar heatmap, apps list, app detail with
  sessions, rewards, village and auto-saving settings.

Tooling
- pytest suite (data, tracker, rewards, updater, offscreen UI), ruff,
  CI on Windows and Linux, versioned release build with a bundle
  self-test, generated icon and screenshot scripts, rewritten README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
- Use absolute imports in __main__ so the PyInstaller entry script runs.
- Close the session at the last sample after a sleep or suspend gap
  instead of crediting the whole gap to the focused app.
- End the previous session at the last input when focus changes after
  30 s without input (popups while away).
- Read the current app without the tracker lock in the mouse hook.
- Don't cache an unresolved UWP frame host as the foreground app.
- Keep a timed pause timed across a restore.
- Merge v1.0 rows for helper executables into their app during the
  migration.
- Escape backup paths when opening them read-only.
- Single instance via a lock file in the data folder; the socket is
  keyed by data folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
- ui/motion.py: Fluent 2 duration and easing tokens, tween/fade/stagger/
  collapse/flash helpers and a pulse dot. Follows Windows' Animation
  effects setting, with an Animations switch in Settings; when off,
  every helper applies the end state immediately.
- Navigation: fade-through page transitions, a gliding sidebar
  indicator, a sliding segmented-control thumb, window fade-in and a
  crossfade when the theme changes.
- Data: KPI counters, staggered bar growth and morphing between data
  sets, heatmap entrance wave and gliding selection ring, share, usage,
  progress and level bars that ease between values.
- Feedback: staggered rows after filter changes, collapse when items are
  removed or claimed, flashes on builds, claims and level-ups, a live
  pulse while tracking, row hover fades and a sliding toast.
- Background refreshes morph values in place instead of replaying
  entrances.
- Tests for the motion helpers and a full UI run with animations on;
  screenshots render with motion off; scripts/record_demo.py records
  the README animation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
Replace the neon look with one consistent visual system:
- Graphite (dark) and Paper (light) warm neutral themes with a single
  signal accent. Recorded history is drawn in neutral ink, the accent
  marks only what is live, selected or current.
- Bundle Instrument Sans (interface, tabular figures) and Martian Mono
  (engraved labels), both OFL 1.1.
- Numbered panels, page kickers, a graph-paper canvas, hairline rules,
  6 px panels and 4 px controls without shadows or glows.
- Charts: solid hairline grids, thin bars on tick-mark rulers, compact
  axis labels, a quantized calendar ramp with a legend, a chronograph
  session dial and a wrapping category legend.
- Validated categorical palette; Tools moves from orange to bronze so no
  category reads as the signal color.
- New dial logo with a simplified mark for 16-32 px, regenerated .ico.
- Line-art illustrations for empty states, a painted tracking module in
  the sidebar and keycap shortcut hints.
- Two-column rows stack and the village grid drops columns when the
  window is too narrow, so no page clips at the minimum size.
- README banner (dark and light), social preview, screenshots and demo
  GIF regenerated; scripts/make_art.py draws the art from theme tokens.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
Copilot AI balanced review requested due to automatic review settings October 3, 2026 22:32

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

The path label did not wrap and paths have no break points, so a long
data folder (as on the Windows CI runner) set the page's minimum width
past the minimum window size. It now elides in the middle with the full
path in the tooltip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01A59Ve6VGuz6nxXu3QEXpeA
@H4ch1Net
H4ch1Net merged commit fef97f8 into main Oct 3, 2026
5 checks passed
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.

3 participants