Commit Graph

752 Commits

Author SHA1 Message Date
Kiril Videlov
38860ded04 optional time constraint when listing sessions. project home loads only last 4 days 2023-03-13 20:42:41 +01:00
Kiril Videlov
60e85f509f less blocking when navigating pages 2023-03-13 20:00:26 +01:00
Kiril Videlov
14418509c3 more async tauri commands 2023-03-13 19:33:29 +01:00
Ian Donahue
633e8b47ac Left spacing of carrot 2023-03-13 19:10:24 +01:00
Ian Donahue
25ee7a5a17 Merge branch 'this-is-a-branch-with-a-really-long-name-as-an-example' 2023-03-13 18:05:08 +01:00
Kiril Videlov
5e20dafbd8 🔨 Improve project page sorting
- 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
2023-03-13 18:04:02 +01:00
Ian Donahue
167b107bf3 Branch now looks like a dropdown button. 2023-03-13 17:58:51 +01:00
Ian Donahue
7cce869c66 Merge branch 'master' into this-is-a-branch-with-a-really-long-name-as-an-example 2023-03-13 17:57:35 +01:00
Kiril Videlov
4ecb16718b AAAAAAAAAAAAAAAA FOUND ITTTTTTTTTTTTTTTTT 2023-03-13 17:54:01 +01:00
Ian Donahue
ef728d5627 Merge branch 'master' into this-is-a-branch-with-a-really-long-name-as-an-example 2023-03-13 17:20:34 +01:00
Ian Donahue
be3acea3be basic styling of branch title 2023-03-13 17:20:14 +01:00
Ian Donahue
6336601d33 Fixing buttons 2023-03-13 16:36:36 +01:00
Kiril Videlov
5d640adb01 format 2023-03-13 16:29:57 +01:00
Kiril Videlov
374a75e65b 🔨 Refactor project page & layout
- 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
2023-03-13 16:29:35 +01:00
Scott Chacon
a4a458e65e toast on branch switch 2023-03-13 16:17:03 +01:00
Scott Chacon
1f51bec727 update help to docs for docs 2023-03-13 16:17:03 +01:00
Kiril Videlov
f84a792b50 dont load all sessions for the project home page 2023-03-13 14:25:32 +01:00
Scott Chacon
8ef2eb76b3 fix the merge 2023-03-13 13:47:46 +01:00
Scott Chacon
6e0358baae only local branches, scroll into view 2023-03-13 13:45:02 +01:00
Scott Chacon
fb2a39b280 get branch name, dont actually switch branches 2023-03-13 13:45:02 +01:00
Scott Chacon
e391688624 got it to switch a branch 2023-03-13 13:45:02 +01:00
Scott Chacon
524591821a more general palette code, dedupe some main.rs code, start of branch switcher 2023-03-13 13:45:02 +01:00
Scott Chacon
01a5c572dc more general palette approach 2023-03-13 13:44:56 +01:00
Ian Donahue
f95ce37c5c Merge branch 'master' of https://github.com/gitbutlerapp/gitbutler-client 2023-03-13 13:19:45 +01:00
Ian Donahue
6583010e36 Update +layout.svelte 2023-03-13 13:18:29 +01:00
Kiril Videlov
21f26e8c19 🔨 Refactor: Recent Activity & Files Status
- 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
2023-03-13 10:37:14 +01:00
Kiril Videlov
3cc3fda37a format 2023-03-13 09:19:47 +01:00
Ian Donahue
afcc6da963 Merge branch 'master' of https://github.com/gitbutlerapp/gitbutler-client 2023-03-13 02:43:24 +01:00
Ian Donahue
e0f2fff19c Background color is a gradient 2023-03-13 00:27:52 +01:00
Ian Donahue
062fc665b9 Commit palette model looks a little more modern 2023-03-13 00:19:48 +01:00
Scott Chacon
558bb72b20 add quick change project to palette 2023-03-12 09:15:08 -07:00
Scott Chacon
0aca2e8400 command palette is everywhere, but only shows project stuff when there is an active project
also, contact us page
2023-03-12 08:15:01 -07:00
Ian Donahue
a844e3a50b 2023-03-12 15:48:44 +01:00
Scott Chacon
04fe7433a0 lol, let’s not do this by default in master 2023-03-12 06:43:31 -07:00
Scott Chacon
7dbd9c5511 try automatic pushing 2023-03-12 06:34:15 -07:00
Scott Chacon
1707508b7e first commit with the GitButler client. :) 2023-03-11 08:53:07 -08:00
Ian Donahue
6ded8ba85c Merge master into Visual design 2023-03-10 22:27:34 +01:00
Ian Donahue
f164e3966c Fixing search in nav bar. 2023-03-10 22:21:47 +01:00
Ian Donahue
fd6bdb24b3 Layout updates 2023-03-10 19:50:51 +01:00
Ian Donahue
2367300fbf Typography alignment 2023-03-10 19:32:32 +01:00
Ian Donahue
4d451c94c6 Icon added to project page when all changes are committed 2023-03-10 19:17:46 +01:00
Ian Donahue
7cc461a616 Made cards/boxes consistant visually.
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.
2023-03-10 18:54:33 +01:00
Ian Donahue
3673bd3c28 Added nice background effect to command palette 2023-03-10 18:41:33 +01:00
Ian Donahue
609c2a896a Merge branch 'master' of https://github.com/gitbutlerapp/gitbutler-client 2023-03-10 18:29:00 +01:00
Ian Donahue
07e2ea90c0 Very basic styling of the command palette 2023-03-10 18:28:17 +01:00
Kiril Videlov
dff47ecbd9 prettier format 2023-03-10 18:17:09 +01:00
Kiril Videlov
33070b445a add some types to project page to aid refactoring 2023-03-10 18:16:40 +01:00
Ian Donahue
18757d40e0 Project page's recent activity should scroll now 2023-03-10 18:04:00 +01:00
Ian Donahue
736b201939 Merge branch 'master' into id-visual-design-updates 2023-03-10 17:50:09 +01:00
Ian Donahue
bfb983e838 Basic scroll bars are working 2023-03-10 17:48:59 +01:00