From ca0f0086b472d554de3783eb299e998efa70b96b Mon Sep 17 00:00:00 2001 From: Dries Peeters Date: Sun, 15 Nov 2026 16:54:34 +0100 Subject: [PATCH] feat(time-tracking): close remaining autotracker, Focus, and Belgium gaps Ship desktop activity capture with local storage and ActivityWatch bridge, make Solo Focus the default lean packaging across setup and clients, and add Belgium attendance history/corrections UI on desktop and mobile. --- app/routes/setup.py | 9 +- app/templates/admin/modules.html | 8 +- app/templates/main/dashboard.html | 22 +- app/templates/setup/initial_setup.html | 2 +- app/utils/module_registry.py | 9 +- desktop/src/main/activity-tracker.js | 444 +++++++++++++++++- desktop/src/main/main.js | 70 ++- desktop/src/main/preload.js | 7 + desktop/src/renderer-react/src/i18n/en.json | 18 +- desktop/src/renderer-react/src/main.jsx | 10 +- .../src/renderer-react/src/services/api.js | 25 + .../src/views/ComplianceView.jsx | 184 ++++++++ .../renderer-react/src/views/SettingsView.jsx | 164 ++++++- .../src/renderer-react/src/views/Shell.jsx | 42 +- .../renderer-react/src/views/WorkdayCard.jsx | 3 + .../src/views/WorkforceView.jsx | 4 +- desktop/test/activity_tracker.test.js | 68 +++ desktop/test/compliance_view.test.js | 21 + desktop/test/react_parity.test.js | 3 + docs/competitive-analysis/GAP_RUBRIC.md | 4 +- docs/design/DESKTOP_ACTIVITY_AUTOTRACKER.md | 29 +- .../mobile-desktop-apps/DESKTOP_WEBAPP_GAP.md | 4 +- .../presentation/widgets/workday_card.dart | 9 + tests/test_module_presets.py | 11 +- 24 files changed, 1113 insertions(+), 57 deletions(-) create mode 100644 desktop/src/renderer-react/src/views/ComplianceView.jsx create mode 100644 desktop/test/activity_tracker.test.js create mode 100644 desktop/test/compliance_view.test.js diff --git a/app/routes/setup.py b/app/routes/setup.py index ed3cf0a23..f20829316 100644 --- a/app/routes/setup.py +++ b/app/routes/setup.py @@ -169,8 +169,11 @@ def _module_preset_choices(): choices = [ ( ModulePreset.SOLO.value, - _("Just me"), - _("Track time, organise it by project and client, and bill it. The leanest setup."), + _("Focus mode (just me)"), + _( + "Timer-first: track time, Focus/Pomodoro sessions, weekly goals, " + "projects, clients, and invoices. Hides CRM, inventory, and team tools." + ), ), ( ModulePreset.TEAM.value, @@ -209,7 +212,7 @@ def _render_setup(settings, timezones): settings=settings, timezones=timezones, module_presets=_module_preset_choices(), - default_module_preset=ModulePreset.TEAM.value, + default_module_preset=ModulePreset.SOLO.value, rounding_methods=get_available_rounding_methods(), rounding_minimums=get_available_minimum_durations(), ) diff --git a/app/templates/admin/modules.html b/app/templates/admin/modules.html index 0ddf91f82..22c2ee7e2 100644 --- a/app/templates/admin/modules.html +++ b/app/templates/admin/modules.html @@ -96,11 +96,17 @@

{{ _('Quick presets') }}

{{ _('Apply a module preset (e.g. Solo focus disables CRM, inventory, and other non-essential areas).') }}

+ {% set preset_labels = { + 'solo': _('Focus (Solo)'), + 'team': _('Team'), + 'compliance': _('Compliance'), + 'everything': _('Everything') + } %} {% for preset in ['solo', 'team', 'compliance', 'everything'] %}
- +
{% endfor %}
diff --git a/app/templates/main/dashboard.html b/app/templates/main/dashboard.html index ad955465b..46ad84ecf 100644 --- a/app/templates/main/dashboard.html +++ b/app/templates/main/dashboard.html @@ -28,6 +28,23 @@ {% set dashboard_breadcrumbs = [{'text': _('Dashboard')}] %} {{ page_header('fas fa-tachometer-alt', _('Dashboard'), _("Here's a quick overview of your work."), breadcrumbs=dashboard_breadcrumbs) }} +{% if not is_module_enabled('deals') and not is_module_enabled('inventory') %} +
+

+ {{ _('Focus mode') }} +

+

+ {{ _('Your workspace is lean: timer, projects, and billing. CRM and inventory stay hidden until you enable them in Admin → Modules.') }} +

+
+ {{ _('Start Focus session') }} + {% if is_module_enabled('weekly_goals') %} + {{ _('Weekly goals') }} + {% endif %} +
+
+{% endif %} + {% if pending_violations %}

{{ _('Badges') }}

diff --git a/app/templates/setup/initial_setup.html b/app/templates/setup/initial_setup.html index 6251e0e7d..c711f9b0d 100644 --- a/app/templates/setup/initial_setup.html +++ b/app/templates/setup/initial_setup.html @@ -108,7 +108,7 @@

🎉 {{ _('Thank you for cho