Commit Graph

6106 Commits

Author SHA1 Message Date
Nikita Galaiko
51aa80cfd9
better logging 2023-02-21 12:02:17 +01:00
Kiril Videlov
37b7410453 workaround for delta timestamps after session end 2023-02-21 10:21:31 +01:00
Nikita Galaiko
e37f27315c
log fetch requests 2023-02-21 09:17:31 +01:00
Nikita Galaiko
ecdf3fef23
get api url from .env file 2023-02-21 09:17:31 +01:00
Kiril Videlov
1d1c500c63 🔨 Refactor: Add SessionV2 page and features
- Add a new page for sessionv2 with features to load session data, deltas, list of files, prerender flag, and navigation to previous and next session
- Add a sticky header for the timeline and a list of files and entries for the timeline
- Add a link to the v2 page for project session page

[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.svelte]
- Add a new file for the session page
- Add a function to convert timestamp to column index
- Add a sticky header for the timeline
- Add a list of files for the timeline
- Add a list of entries for the timeline
[src/routes/projects/[projectId]/sessionv2/[sessionId]/+page.ts]
- Add a new page for sessionv2 with the following features:
    - Load session data
    - Load deltas from the backend
    - Load list of files from the backend
    - Add a prerender flag
    - Add a navigation to the previous and next session if available
[src/routes/projects/[projectId]/sessions/[sessionId]/+page.svelte]
- Add link to v2 page for project session page
2023-02-21 08:19:05 +01:00
Nikita Galaiko
b7677ca75f
fail if curl fails 2023-02-20 17:13:49 +01:00
Nikita Galaiko
bfe96c4c25
disable debug in release script 2023-02-20 17:01:33 +01:00
Nikita Galaiko
c9ab7fa14f
fix config path 2023-02-20 16:51:48 +01:00
Nikita Galaiko
d9738b3906
do not pushd 2023-02-20 16:39:43 +01:00
Nikita Galaiko
64617ad2b0
fix release path 2023-02-20 16:27:56 +01:00
Nikita Galaiko
049822439f
set debug release true 2023-02-20 16:19:23 +01:00
Nikita Galaiko
f77ab8a74b
Revert "hardcode release dir"
This reverts commit 7467b96c2e.
2023-02-20 16:17:02 +01:00
Nikita Galaiko
45ba1c5569
Revert "add missing mkdir"
This reverts commit d1652aa95e.
2023-02-20 16:17:01 +01:00
Nikita Galaiko
d1652aa95e
add missing mkdir 2023-02-20 16:11:28 +01:00
Nikita Galaiko
7467b96c2e
hardcode release dir 2023-02-20 16:06:13 +01:00
Nikita Galaiko
290d80ca1a
handle missing ctime [2] 2023-02-20 15:54:34 +01:00
Nikita Galaiko
5dc7a51b98
handle missing ctime 2023-02-20 15:35:21 +01:00
Nikita Galaiko
615cf9cb9a
add semver validation 2023-02-20 15:29:17 +01:00
Nikita Galaiko
558bd5b997
read input from event 2023-02-20 15:21:27 +01:00
Nikita Galaiko
b8cb8660d5
display seconds 2023-02-20 15:16:32 +01:00
Nikita Galaiko
e69165f8bc
create signature when commiting 2023-02-20 15:16:24 +01:00
Nikita Galaiko
fe1c2fc577
create signature when making test commit 2023-02-20 15:12:58 +01:00
Nikita Galaiko
390bb40ced
add github run only when pushing version to s3 and server 2023-02-20 15:08:52 +01:00
Nikita Galaiko
cb05cbf2de
set updater url 2023-02-20 15:08:23 +01:00
Nikita Galaiko
1706653085
fix input variable syntax [2] 2023-02-20 14:57:58 +01:00
Nikita Galaiko
2dae707096
fix input variable syntax 2023-02-20 14:54:33 +01:00
Kiril Videlov
5b98e24ea7 🔨 Refactor: Sort sessions by startTimestampMs
- Sort project sessions by startTimestampMs
- Update layout for project routes

[src/routes/projects/[projectId]/+layout.ts]
- Sort sessions by startTimestampMs
2023-02-20 14:52:08 +01:00
Kiril Videlov
4f78da2464 🤦 2023-02-20 14:43:57 +01:00
Nikita Galaiko
38a5705066
build before test 2023-02-20 14:42:06 +01:00
Kiril Videlov
6d7e9df1c5 Improve timeline day session visuals
- Update ping animation colors in TimelineDaySession component
- Change `bg-orange-400` to `bg-orange-200` for ping animation
- Change `bg-orange-600` to `bg-zinc-200` and add `border-orange-200` for ping animation

[src/lib/components/timeline/TimelineDaySession.svelte]
- Change `bg-orange-400` to `bg-orange-200` for the ping animation
- Change `bg-orange-600` to `bg-zinc-200` and add a `border-orange-200` for the ping animation
2023-02-20 14:40:03 +01:00
Kiril Videlov
4a33245e60 Signal which session is current
- Add an indicator for the current session
- Change styling and title of the branch name link
- Add duration display in minutes

[src/lib/components/timeline/TimelineDaySession.svelte]
- Add an indicator for the current session
- Change the styling and title of the branch name link
- Add a duration display in minutes
- Fix a calculation bug in the duration display
2023-02-20 14:34:16 +01:00
Nikita Galaiko
e311f44886
install _all_ dependencies 2023-02-20 14:29:10 +01:00
Nikita Galaiko
facb584858
install libjavascriptcoregtk-4.0-dev for tests 2023-02-20 14:21:49 +01:00
Nikita Galaiko
139686859f
install libsoup2.4-dev for tests 2023-02-20 14:14:45 +01:00
Nikita Galaiko
ca6ce1ea97
cache deps 2023-02-20 14:14:28 +01:00
Nikita Galaiko
4c20988c03
fix pipeline 2023-02-20 14:06:04 +01:00
Nikita Galaiko
1904e83086
install missing tests dep 2023-02-20 14:04:26 +01:00
Nikita Galaiko
929562d80f
fix list_files 2023-02-20 14:02:55 +01:00
Nikita Galaiko
ec06b264d2
test repository open 2023-02-20 13:37:44 +01:00
Nikita Galaiko
f21fc69170
run tests on push 2023-02-20 13:12:24 +01:00
Nikita Galaiko
efaba6b342
more session tests 2023-02-20 13:09:41 +01:00
Nikita Galaiko
ab803a12a1
add sessions test and fix list order 2023-02-20 13:03:28 +01:00
Kiril Videlov
f417127263 Update timestamp handling in project routes
- Change timestamp multiplier from `1000` to `1` in `toHumanReadableTime` and `toHumanReadableDate`
- Change date style to `short` in `toHumanReadableDate`
- Update date filter and `startTime` and `endTime` in `WeekBlockEntry` to use the `startTimestampMs` without multiplying by 1000
- Change condition for filtering the sessions from milliseconds to seconds

[src/routes/projects/[projectId]/week/+page.svelte]
- Change the date filter in `sessionsInWeek` to use the `startTimestampMs` without multiplying by 1000
- Change the `startTime` and `endTime` in `WeekBlockEntry` to use the `startTimestampMs` without multiplying by 1000
[src/lib/time.ts]
- Change timestamp multiplier from `1000` to `1` in `toHumanReadableTime`
- Change timestamp multiplier from `1000` to `1` in `toHumanReadableDate`
- Change date style to `short` in `toHumanReadableDate`
[src/routes/projects/[projectId]/day/+page.svelte]
- Change the condition for filtering the sessions from milliseconds to seconds
2023-02-20 12:57:10 +01:00
Kiril Videlov
34ceeaab7f Update project session and layout stores, add Week functions
- Update types and imports across multiple files
- Add derived store for ordered sessions
- Add default session function to sessions import
- Sort sessions based on their `startTs` property
- Add `next` and `previous` functions to the Week namespace
- Add `nThDay` function to the Week namespace
- Change the import statement from `import { ... } from 'date-fns';` to `import { ... } from "date-fns";`

[src/routes/projects/[projectId]/sessions/[sessionId]/+page.ts]
- Change the type of `load` from `PageLoad` to `PageLoad & Delta`
- Remove the `writable` store from the imports
- Remove the `orderedSessions` store
- Change the `session` store from `orderedSessions` to `sessions`
- Change the `previousSession` store from `orderedSessions` to `sessions`
- Change the `nextSession` store from `orderedSessions` to `s
[src/routes/projects/[projectId]/+layout.ts]
- Import `derived` store from `svelte/store`
- Add a derived store for ordered sessions
- Add a default session function to the `sessions` import
- Sort sessions based on their `startTs` property
[src/lib/week.ts]
- Change the import statement from `import { ... } from 'date-fns';` to `import { ... } from "date-fns";`
- Add the `next` and `previous` functions to the Week namespace
- Add the `nThDay` function to the Week namespace
2023-02-20 12:50:59 +01:00
Nikita Galaiko
2e0f757cd9
use ms timestamps everywhere 2023-02-20 12:41:33 +01:00
Nikita Galaiko
bd2c5b5809
use real fs in deltas tests 2023-02-20 12:41:10 +01:00
Nikita Galaiko
137f73848f
refactor sessions mod 2023-02-20 12:41:09 +01:00
Nikita Galaiko
0562bcae5d
test deltas read/write 2023-02-20 12:41:09 +01:00
Nikita Galaiko
ea9fa3dca4
say session does not exist if meta does not exist 2023-02-20 12:41:09 +01:00
Kiril Videlov
f92a2370bd Add date-fns for better date calculations
- Add date-fns package to project
- Update dependencies in pnpm-lock.yaml
- Replace manual date calculations with date-fns functions
- Add functions to Week class for getting the next/previous week and the nth day of the week

[pnpm-lock.yaml]
- Add `date-fns` dependency to `pnpm-lock.yaml`
- Update `@codemirror/state`, `@codemirror/view`, `@tauri-apps/api`, `idb-keyval`, `mm-jsr`, and `seti-icons` dependencies in `pnpm-lock.yaml`
- Add `date-fns` package to `pnpm-lock.yaml`
[src/lib/week.ts]
- Replace manual date calculations with `date-fns` functions
- Make `Week.from` use `weekStartsOn` to set the start of the week
- Add `Week.next`, `Week.previous` and `Week.nThDay` functions
[package.json]
- Add date-fns package
2023-02-20 12:34:07 +01:00