Nikita Galaiko
7e500d5671
fix tests
2023-10-05 16:03:01 +02:00
Nikita Galaiko
73d5ebf823
extract projects controller
2023-10-05 15:44:34 +02:00
Nikita Galaiko
53ed4425f6
feat: add mark_active_session function to update session metadata
...
The mark_active_session function has been added to the Repository struct. This function updates the last_timestamp_ms field of the current session's metadata to the current system time. This is done to keep track of the last time the session was active.
This function is called in several places where the current session is required to be updated, such as when writing to targets, branches, deltas, bookmarks, and handling git file changes. By updating the session metadata, we ensure that the session remains active and up-to-date.
This change improves the accuracy of session tracking and helps in managing active sessions effectively.
2023-10-05 13:05:18 +02:00
Nikita Galaiko
62d2b7c6fa
fix: fix visibility of should_flush function and update test cases for should_flush function
2023-10-05 12:28:37 +02:00
dependabot[bot]
885185e6e3
chore(deps-dev): bump svelte from 4.2.0 to 4.2.1
...
Bumps [svelte](https://github.com/sveltejs/svelte/tree/HEAD/packages/svelte ) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sveltejs/svelte/releases )
- [Changelog](https://github.com/sveltejs/svelte/blob/master/packages/svelte/CHANGELOG.md )
- [Commits](https://github.com/sveltejs/svelte/commits/svelte@4.2.1/packages/svelte )
---
updated-dependencies:
- dependency-name: svelte
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 11:58:46 +02:00
dependabot[bot]
8fcaed68be
chore(deps-dev): bump nanoid from 4.0.2 to 5.0.1
...
Bumps [nanoid](https://github.com/ai/nanoid ) from 4.0.2 to 5.0.1.
- [Release notes](https://github.com/ai/nanoid/releases )
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md )
- [Commits](https://github.com/ai/nanoid/compare/4.0.2...5.0.1 )
---
updated-dependencies:
- dependency-name: nanoid
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 11:54:52 +02:00
dependabot[bot]
94f4fb26db
chore(deps-dev): bump @types/diff-match-patch from 1.0.32 to 1.0.34
...
Bumps [@types/diff-match-patch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/diff-match-patch ) from 1.0.32 to 1.0.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases )
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/diff-match-patch )
---
updated-dependencies:
- dependency-name: "@types/diff-match-patch"
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 11:54:41 +02:00
dependabot[bot]
3c0035370f
chore(deps-dev): bump svelte-check from 3.5.1 to 3.5.2
...
Bumps [svelte-check](https://github.com/sveltejs/language-tools ) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/sveltejs/language-tools/releases )
- [Commits](https://github.com/sveltejs/language-tools/compare/svelte-check-3.5.1...svelte-check-3.5.2 )
---
updated-dependencies:
- dependency-name: svelte-check
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 11:54:32 +02:00
dependabot[bot]
140f2b9bb4
chore(deps-dev): bump @sentry/sveltekit from 7.64.0 to 7.73.0
...
Bumps [@sentry/sveltekit](https://github.com/getsentry/sentry-javascript ) from 7.64.0 to 7.73.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.64.0...7.73.0 )
---
updated-dependencies:
- dependency-name: "@sentry/sveltekit"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-10-05 11:54:05 +02:00
Mattias Granlund
3d74940111
Update Sentry DSN in Svelte code
...
- changes data source desktop -> js-app
2023-10-05 11:18:04 +02:00
Nikita Galaiko
7d245f6f59
chore: update versions of @tauri-apps/cli and related packages to 1.5.1
2023-10-05 10:31:51 +02:00
Nikita Galaiko
17b3c9ec04
Merge pull request #1293 from gitbutlerapp/Refactor-project-get-method
...
chore: refactor projects_storage methods to use consistent naming and…
2023-10-05 10:22:20 +02:00
Nikita Galaiko
a331113cd1
cargo fmt
2023-10-05 10:13:37 +02:00
Mattias Granlund
175ee13c4e
Fix sveltekit error handler
...
- now prints the actual error to the console
2023-10-05 10:11:00 +02:00
Nikita Galaiko
37e7507e53
chore: refactor projects_storage methods to use consistent naming and simplify code
...
The changes in this commit refactor the methods in the `projects_storage` module to use consistent naming and simplify the code. The following changes were made:
- Renamed the `update_project` method to `update` in the `projects_storage` module.
- Renamed the `add_project` method to `add` in the `projects_storage` module.
- Renamed the `get_project` method to `get` in the `projects_storage` module.
- Renamed the `list_projects` method to `list` in the `projects_storage` module.
These changes improve code readability and maintainability by using consistent naming conventions and simplifying the method signatures.
2023-10-05 10:04:36 +02:00
Nikita Galaiko
805a23f1b8
fix: fix async handling in App methods
...
- The `upsert_bookmark` method was not properly handling the async code. It now properly awaits the necessary async operations.
- The `init_project` method now properly handles async code and awaits the necessary async operations.
- The `init` method now properly handles async code and awaits the necessary async operations.
- The `add_project` method now properly handles async code and awaits the necessary async operations.
This ensures that the async operations are properly executed and awaited, preventing potential race conditions or incorrect behavior.
2023-10-05 09:39:45 +02:00
Nikita Galaiko
1ccc204c75
chore: refactor delete_project and update_project functions to be asynchronous
2023-10-05 09:34:51 +02:00
Nikita Galaiko
223cbfaba2
extracts commands mod
2023-10-05 09:28:45 +02:00
Nikita Galaiko
b3902026be
refactor: update error handling and repository opening logic in project_repository module
2023-10-05 09:08:42 +02:00
Nikita Galaiko
b2d84362a6
minor fixes
2023-10-05 08:54:13 +02:00
Nikita Galaiko
b81efe9b72
feat: update project path handling to use path::PathBuf instead of String
...
The previous implementation used a string to represent the project path, which led to potential issues when manipulating paths. The update changes the project path to use the path::PathBuf type, which provides better path manipulation and error handling capabilities. This change improves the overall reliability and maintainability of the code.
2023-10-05 08:44:56 +02:00
Nikita Galaiko
cfafb76a21
add tests for binary registration
2023-10-05 08:25:43 +02:00
Nikita Galaiko
1df251baca
chore: remove unused fileGroup function and related code
2023-10-04 16:44:30 +02:00
Nikita Galaiko
b86259b64c
chore: remove unused Statuses component and git_status API endpoint
2023-10-04 16:35:06 +02:00
Nikita Galaiko
bb88219933
remove more leftovers
2023-10-04 16:23:32 +02:00
Nikita Galaiko
67de8de1e9
ui: rm git activity
2023-10-04 16:15:46 +02:00
Nikita Galaiko
df32ebfffa
chore: remove unused code related to git activity logging
2023-10-04 16:12:55 +02:00
Nikita Galaiko
65a0979649
Merge pull request #1286 from gitbutlerapp/deps-refactor
...
Deps refactor
2023-10-04 16:07:35 +02:00
Nikita Galaiko
8cd9431fc9
fix butler
2023-10-04 15:55:23 +02:00
Nikita Galaiko
5ba4a9a6b4
drop gb_project's dependency on project_storage
2023-10-04 15:53:00 +02:00
Scott Chacon
e72ef03bc8
Merge pull request #1284 from gitbutlerapp/update-branch-with-upstream
...
Change upstream branch name
2023-10-04 15:33:53 +02:00
Scott Chacon
7281ed8fdf
🔥 refactor: remove debug statement for remote branch
2023-10-04 15:27:21 +02:00
Scott Chacon
002a52af57
Merge pull request #1285 from gitbutlerapp/Set-user-only-permissions
...
Set files in data dir to user only (0o600)
2023-10-04 15:23:09 +02:00
Nikita Galaiko
65b108ad1b
Merge pull request #1283 from gitbutlerapp/tests-suite
...
Tests suite
2023-10-04 14:02:45 +02:00
Scott Chacon
f225d0aa7f
🐛 fix: set user-only permissions for private key file in Storage::write_file method
2023-10-04 13:59:50 +02:00
Nikita Galaiko
34e09293e0
fix butler
2023-10-04 13:57:14 +02:00
Scott Chacon
ccf6136b9a
✨ feat: add Remote Name panel to display and update remote branch name in UI
2023-10-04 13:16:33 +02:00
Nikita Galaiko
6ab278a67c
make clippy happy
2023-10-04 12:59:49 +02:00
Nikita Galaiko
f831cb346d
refactor: package test initiaion
2023-10-04 12:50:16 +02:00
Mattias Granlund
3c16b6cd76
Add error handling and loading indicator to base branch selection
...
- also puts base branch selection in its own component
2023-10-04 11:54:47 +02:00
Mattias Granlund
834d227370
Make store dependencies explicit parameters
...
This was feedback from Kiril a while back, that since all stores are
needed it would be clearer to have them as explicit parameters.
2023-10-03 21:59:04 +02:00
Nikita Galaiko
13eb5e987e
project repository owns project
2023-10-03 15:52:08 +02:00
Nikita Galaiko
550ff26ac7
remove user storage dependency from gb repo
2023-10-03 15:48:49 +02:00
Nikita Galaiko
9faf08e47f
Merge pull request #1279 from gitbutlerapp/Refactor-reader-struct
...
refactor: use content that is either utf8, large or binary
2023-10-03 12:20:32 +02:00
Nikita Galaiko
f5758371a5
cargo fmt
2023-10-03 12:00:18 +02:00
Nikita Galaiko
30e6026785
fix: pass diff_opts
parameter to diff_tree_to_tree
function call in trees
function
2023-10-03 11:57:39 +02:00
Nikita Galaiko
636c6538b3
refactor: update file content handling to use new FileContent type instead of Contents
2023-10-03 11:55:02 +02:00
Nikita Galaiko
a0ace30025
implement more From traits for Content
2023-10-03 10:36:43 +02:00
Nikita Galaiko
77bffe638a
make git::Blob wrapper
2023-10-03 10:35:43 +02:00
Nikita Galaiko
95304c1968
refactor: use content that is either utf8, large or binary
2023-10-03 10:04:30 +02:00