The GitButler version control client, backed by Git, powered by Tauri/Rust/Svelte
Go to file
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
.github/workflows split int & check actions 2023-03-07 17:11:49 +01:00
.vscode recommend eslint and prettier plugin for vscode 2023-02-27 13:26:17 +01:00
scripts disable debug in release script 2023-02-20 17:01:33 +01:00
src 🔨 Refactor: Recent Activity & Files Status 2023-03-13 10:37:14 +01:00
src-tauri try automatic pushing 2023-03-12 06:34:15 -07:00
.env.development Posthog integration GB-36 (#18) 2023-02-22 14:38:45 +01:00
.env.production Posthog integration GB-36 (#18) 2023-02-22 14:38:45 +01:00
.eslintignore sort out lint/format setup 2023-02-24 10:46:41 +01:00
.eslintrc.cjs fix remaining eslint issues 2023-02-24 11:00:17 +01:00
.gitignore get api url from .env file 2023-02-21 09:17:31 +01:00
.npmrc simple tauri example 2023-01-31 15:55:57 +01:00
.prettierignore sort out lint/format setup 2023-02-24 10:46:41 +01:00
.prettierrc include prettier-plugin-tailwindcss into config 2023-03-07 11:53:11 +01:00
package.json 🔨 Refactor search page to improve recordings, completions, and tests 2023-03-08 15:14:56 +01:00
pnpm-lock.yaml 🔨 Refactor search page to improve recordings, completions, and tests 2023-03-08 15:14:56 +01:00
postcss.config.cjs sort out lint/format setup 2023-02-24 10:46:41 +01:00
README.md dynamic release versioning 2023-02-17 16:09:24 +01:00
svelte.config.js sort out lint/format setup 2023-02-24 10:46:41 +01:00
tailwind.config.cjs Visual updates on Project page and added Mono font to project 2023-03-10 16:19:38 +01:00
tsconfig.json fix remaining eslint issues 2023-02-24 11:00:17 +01:00
vite.config.js pnpm format 2023-02-27 12:48:08 +01:00

development

prerequisites

see here for the list of software required to build / develope the app.

setup

then, make sure to install app dependencies:

$ pnpm install

run

now you should be able to run the app in development mode:

$ pnpm tauri dev

building

to build the app in production mode, run:

$ pnpm tauri build

releasing

Building is done via GitHub Action. Go to the link and select Run workflow from the desired branch.

versioning

When running the release action, you will have to choose one of major, minor, or patch release type. Action will generate a new version based on your input and current version found at https://app.gitbutler.com/releases.

publishing

To publish a version that you've just build, use Release Manager.

runners

Note that to build an arm64 macos app, you need to make sure that there is at least one self-hosted runner with macos-aarch64 label is online here.

If you are a lucky owner of an arm64 macos machine, feel free to run it yourself. Make sure to label it with macos-aarch64.