- 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.
- Refactored the search page of a project
- Updated the query parameter, background color, and input field
- Added a condition to the results section to check for results
[src/routes/projects/[projectId]/search/+page.svelte]
- Change the query parameter from `urlParams.get('search')` to `urlParams.get('search') ?? ''`
- Change the background color of the search term from `bg-zinc-400/50` to `bg-[#AC8F2F] rounded-sm`
- Move the input field to a `div` with a `mx-14` class
- Add a condition to the results section to check if there are any results