-
-
Notifications
You must be signed in to change notification settings - Fork 19
Enhance UI/UX of time-tracker #3101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit
Hold shift + click to select a range
5664c09
feat(time-tracker): enhance UX with user task prioritization
Adinorio 94f4b5f
feat: enhance time tracker UX with assignee filtering and persistence
Adinorio cf3cf84
fix(time-tracker): add missing files
Adinorio 9a795a0
feat(time-tracker): added quick option for recent task
Adinorio 615c614
fix(time-tracker): resolved issues and comments
Adinorio 1873c3f
style: apply prettier formatting
Adinorio b50046d
style: apply prettier formatting for feat/time-tracker/ux-improvement…
vhpx 882ca18
Merge branch 'main' into feat/time-tracker/ux-improvement-v2
Adinorio d273dbc
fix(time-tracker): inconsistent UI when switching users
Adinorio e5fbd0d
feat(time-tracker): new filter for session history status
Adinorio c025440
feat(time-tracker): enhance analytics and fix task assignment issues
Adinorio b3b7629
feat(time-tracker): better controls for tracking time
Adinorio 0e855a8
chore(time-tracker): edit errors
Adinorio cfa2af4
refactor(time-tracker): fixing issues
Adinorio c5f785e
chore(time-tracker): fixing errors
Adinorio 3cfb2f2
chore(time-tracker): fixing errors
Adinorio 9813bd3
Merge branch 'main' into feat/time-tracker/ux-improvement-v2
Adinorio 2319d4d
fix(time-tracker): better UI for dark mode
Adinorio 88e0d14
Merge remote-tracking branch 'origin/feat/time-tracker/ux-improvement…
Adinorio ae75a26
Merge branch 'main' into feat/time-tracker/ux-improvement-v2
Adinorio 07f3ac7
feat(time-tracker): new heatmaps + settings config
Adinorio 89ffcec
Merge remote-tracking branch 'origin/feat/time-tracker/ux-improvement…
Adinorio 982a10c
fix(time-tracker): enhance onboarding tips with smart dismissal
Adinorio 4ff7b73
feat(time-tracker): new time tracking features
Adinorio fc7cad8
Merge branch 'main' into feat/time-tracker/ux-improvement-v2
Adinorio 58d3435
feat(time-tracker): enhance timer UX with consistent settings
Adinorio 68bfc0b
Merge remote-tracking branch 'origin/feat/time-tracker/ux-improvement…
Adinorio b86e353
feat(time-tracker): implement session protection
Adinorio c30b9f3
fix(time-tracker): implemented limited list for session history
Adinorio b9e712e
fix(api): improve type safety in tasks API route
Adinorio de43646
fix(time-tracker): fix interval recreation causing heavy CPU churn
Adinorio 0fa84a5
fix(time-tracker): prevent NaN in progress bar width calculation
Adinorio 64bfd17
fix(time-tracker): prevent AudioContext resource leak notification sound
Adinorio ca1e210
fix(time-tracker): prevent PII exposure in localStorage for paused se…
Adinorio 0f5e39d
refactor(time-tracker): replace magic string - was_resumed boolean field
Adinorio 6366c76
refactor(time-tracker): session filtering guard and heatmap proper fix
Adinorio 562746a
refactor(time-tracker): improve code quality
Adinorio 7b39922
refactor: improve code quality
Adinorio 8bc1806
style: apply prettier formatting
Adinorio 9e20921
style: apply prettier formatting for feat/time-tracker/ux-improvement…
vhpx 6eb032d
fix(api): improve type safety in tasks API route with proper interfaces
Adinorio db073d4
fix(time-tracker): resolve all comments and errors
Adinorio fb348b8
style: apply prettier formatting
Adinorio 27b13ea
style: apply prettier formatting for feat/time-tracker/ux-improvement…
vhpx 37b6d71
feat(database): add was_resumed field to time_tracking_sessions and u…
vhpx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
apps/db/supabase/migrations/20250618000000_add_was_resumed_field.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
-- Add was_resumed field to time_tracking_sessions table | ||
-- This field tracks whether a session was created by resuming a previous session | ||
|
||
ALTER TABLE public.time_tracking_sessions | ||
ADD COLUMN was_resumed boolean DEFAULT false; | ||
|
||
-- Back-fill existing rows to ensure no NULL values | ||
UPDATE public.time_tracking_sessions | ||
SET was_resumed = false | ||
WHERE was_resumed IS NULL; | ||
|
||
-- Add NOT NULL constraint to prevent tri-state logic | ||
ALTER TABLE public.time_tracking_sessions | ||
ALTER COLUMN was_resumed SET NOT NULL; | ||
|
||
-- Add index for analytics queries that filter by was_resumed | ||
CREATE INDEX idx_time_tracking_sessions_was_resumed | ||
ON public.time_tracking_sessions USING btree (was_resumed) | ||
WHERE was_resumed = true; | ||
|
||
drop view time_tracking_session_analytics; | ||
|
||
-- Update the time_tracking_session_analytics view to include was_resumed | ||
CREATE OR REPLACE VIEW time_tracking_session_analytics AS | ||
SELECT | ||
tts.*, | ||
ttc.name as category_name, | ||
ttc.color as category_color, | ||
t.name as task_name, | ||
EXTRACT(HOUR FROM tts.start_time) as start_hour, | ||
EXTRACT(DOW FROM tts.start_time) as day_of_week, | ||
DATE_TRUNC('day', tts.start_time) as session_date, | ||
DATE_TRUNC('week', tts.start_time) as session_week, | ||
DATE_TRUNC('month', tts.start_time) as session_month, | ||
CASE | ||
WHEN tts.duration_seconds >= 7200 THEN 'long' -- 2+ hours | ||
WHEN tts.duration_seconds >= 1800 THEN 'medium' -- 30min - 2 hours | ||
WHEN tts.duration_seconds >= 300 THEN 'short' -- 5-30 minutes | ||
ELSE 'micro' -- < 5 minutes | ||
END as session_length_category | ||
FROM time_tracking_sessions tts | ||
LEFT JOIN time_tracking_categories ttc ON tts.category_id = ttc.id | ||
LEFT JOIN tasks t ON tts.task_id = t.id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.