- Sort project entries by descending order of their keys
- Improve project page sorting
[src/routes/projects/[projectId]/+page.svelte]
- Sort the entries in `dateSessions` by descending order of the keys
- Refactor project page and layout
- Update imports for project page
- Increase the number of recordings and recent activities returned
[src/routes/projects/[projectId]/+page.svelte]
- Add `Session` type from `$lib/sessions`
- Add `startOfDay` from `date-fns`
- Add `list` from `$lib/deltas`
- Get the last 3 days of sessions and list the deltas for each session
- Add `toHumanBranchName` from `$lib/branch`
- Add a `git_branch` invoke
- Change the `Recent File Changes`
[src/routes/projects/[projectId]/+layout.ts]
- Remove `UISession` and `Delta` imports
- Move `octokit` initialization to a separate file
- Change `prerender` value to `false`
- Change `slice(0, 10)` to `slice(0, 20)` for returned recordings
- Change `slice(0, 3)` to `slice(0, 20)` for recent activity
- Remove `latestDeltasByDateByFile` store
- Add recent activity to the project page
- Sort recent activity by timestamp
- Limit recent activity to 20 elements
[src/routes/projects/[projectId]/+page.svelte]
- Add a `recentActivity` variable to store the recent activity
- Convert a list of timestamps to a sparkline
- Limit the number of sparkline elements to 3
- Iterate over the `dateSessions` to get the recent activity
- Sort the recent activity by timestamp
- Limit the recent activity to 20 elements
- Update the template to use the `recentActivity` variable
[src/routes/projects/[projectId]/+layout.ts]
- Add `Activity` type from `$lib/sessions`
- Add `recentActivity` derived from `sessions`
- Sort `sessions` by `startTimestampMs`
- Sort `recentActivity` by `timestampMs`
- Limit `recentActivity` to the first `20` items
- Add `filesStatus` to the return object
I don't know if they are how we want them to be in the end, but I made them consistant for releasing for beta. Rather them all look the same and not perfect than look different.