Commit Graph

6353 Commits

Author SHA1 Message Date
Caleb Owens
91ca426378 Always await returned promises 2024-04-12 20:31:40 +01:00
Josh Junon
b818ce485b
Merge pull request #3463 from gitbutlerapp/revert-3448-remove-clippy-alloweds
Revert "Remove unused (?) allow clippy statements"
2024-04-12 18:05:54 +02:00
Mattias Granlund
ad3e2ffdf5 Make branch title change reflect branch name optimistically 2024-04-12 17:02:08 +02:00
Pavel Laptev
c6c221b6a2
added status messages + code refactor (#3465)
* added status messages + code refactor

* Exclude `skipped` checks from running checks count

* Added types `ColorStyle` and `KindStyle`

- in order to share same color types across components and avoid duplication added  `ColorStyle` and `KindStyle` types
- Renamed color style `warn` in some components to `warning` for consistency

* typo and naming fixes

* Updated component style types
2024-04-12 13:13:24 +02:00
Mattias Granlund
eb80df0450 Simplify project service and settings
- removes unnecessary object creation
- fixes staleness bug
2024-04-11 23:34:33 +02:00
Mattias Granlund
701e75f241 Fix unintended effect on project settings
- removes unnecessary event dispatching
2024-04-11 23:34:33 +02:00
Mattias Granlund
f0097846e4 Fix "open in vscode" on Windows
- fixes #3489
2024-04-11 23:34:33 +02:00
Mattias Granlund
150acb0abf Show most errors using toast
- does not automatically dismiss
- shows the error to the user
2024-04-11 20:17:48 +02:00
Josh Junon
4bb52ac831
Merge pull request #3493 from gitbutlerapp/prune-s3-uploads
prune S3 upload file tree
2024-04-11 16:07:12 +02:00
Mattias Granlund
92b12ebad7 Refactor parameters in httpClient.ts
- it's convention for first param to be url
2024-04-11 16:06:36 +02:00
Mattias Granlund
7aa30724e7 Move syncToCloud out of httpClient.ts 2024-04-11 16:06:36 +02:00
Josh Junon
18e85583f0
prune S3 upload file tree 2024-04-11 16:04:22 +02:00
Mattias Granlund
b7ca1ad2c4 Move feedback functions from httpClient.ts into ShareIssueModal.ts 2024-04-11 15:25:20 +02:00
Mattias Granlund
dada5f7dd0 Move user related functions from httpClient.ts to user.ts 2024-04-11 15:25:20 +02:00
Mattias Granlund
84a61e9644 Move Project from HttpClient to projects.ts
- renames duplicate type CloudProject
2024-04-11 15:25:20 +02:00
Mattias Granlund
f079f0df77 Rename Project -> CloudProject
- we should probably not have multiple types
- one is used on disk, the other in the cloud
2024-04-11 15:25:20 +02:00
Mattias Granlund
6270cbe403 Move User from httpClient.ts to user.ts 2024-04-11 15:25:20 +02:00
Mattias Granlund
ef270ceaa4 Fixup previous commit 2024-04-11 15:25:20 +02:00
Mattias Granlund
ffbd6e7a0c Rename constants and move functions in order of priority
Readers always start at the top, we should put the most important functions / definitions there.
2024-04-11 15:25:20 +02:00
Mattias Granlund
5abcdcca1f Replace RequestMethod enum with simpler type 2024-04-11 15:25:20 +02:00
Mattias Granlund
a85ecb9dbb Rename CloudClient -> HttpClient
This class will become a thin wrapper around fetch, the functions it currently declares should live in the code that calls them.
2024-04-11 15:25:20 +02:00
Mattias Granlund
9ca84a6144 Rename cloud.ts -> httpClient.ts 2024-04-11 15:25:20 +02:00
Caleb Owens
0ceff12989 Remove empty body object 2024-04-11 15:25:20 +02:00
Caleb Owens
41644432b9 Introduce method specific methods 2024-04-11 15:25:20 +02:00
Caleb Owens
7100a06b59 Allow passing undefined content type to fix form multipart types 2024-04-11 15:25:20 +02:00
Caleb Owens
59039d3dda Make use of makeRequest in butlerClient 2024-04-11 15:25:20 +02:00
Caleb Owens
61e68778a9 Move AI types back into the AI folder 2024-04-11 15:25:20 +02:00
Caleb Owens
f8daeeb8c2 Use makeRequest in all existing API wrappers 2024-04-11 15:25:20 +02:00
Caleb Owens
1debab3a92 Introduce an initial makeRequest method 2024-04-11 15:25:20 +02:00
Caleb Owens
b7ac4cc41e Tidy up seting CloudClient#fetch 2024-04-11 15:25:20 +02:00
Caleb Owens
c094d7e1ee Remove any cyclic packages 2024-04-11 15:25:20 +02:00
Caleb Owens
251aaa3e59 Moved types.ts which was previously missed 2024-04-11 15:25:20 +02:00
Caleb Owens
3cb86afae7 Move AI Client related stuff into its own folder 2024-04-11 15:25:20 +02:00
Josh Junon
91538281ec
Merge pull request #3491 from gitbutlerapp/fix-signing-config
Fix signing config
2024-04-11 14:07:02 +02:00
Josh Junon
c71f89cddd
append run number to artifact bin name 2024-04-11 14:05:44 +02:00
Josh Junon
401a5367e7
fix spaces in signed files 2024-04-11 14:04:39 +02:00
Josh Junon
d951171792
Merge pull request #3490 from gitbutlerapp/only-sysexec-on-windows
only allow systemexecutable on windows
2024-04-11 12:57:09 +02:00
Josh Junon
db519a4eee
only allow systemexecutable on windows 2024-04-11 12:38:02 +02:00
Scott Chacon
c7a7cf22d3
Merge pull request #3488 from gitbutlerapp/Link-to-nightlies-in-Readme
docs: Add link to Unstable Nightly releases in README (#123)
2024-04-11 11:41:37 +02:00
Scott Chacon
099759f5fa docs: Add link to Unstable Nightly releases in README (#123)
Added a link to the Unstable Nightly releases in the README file to make it
easier for users to access the latest experimental builds.
2024-04-11 10:09:59 +02:00
Pavel Laptev
a4718ccd17
Merge pull request #3486 from gitbutlerapp/Virtual-branch-2
`Backspace` was navigation to the previous page
2024-04-11 03:02:18 +02:00
Pavel Laptev
266fd534d9
Backspace was navigation to the previous page
On each page, which wasn't expected when you accidentally hit it.
2024-04-11 03:00:08 +02:00
Mattias Granlund
7d01a537d4 Only allow use of system executable git on Windows
- libgit2 does not work on windows
2024-04-10 16:48:33 +02:00
Scott Chacon
1b8cf7951d
Merge pull request #3483 from gitbutlerapp/add-windows-link
build: Add Windows MSI download link
2024-04-10 15:10:03 +02:00
Scott Chacon
06bbc72e2a build: Add Windows MSI download link
Added a download link for the Windows MSI installer to the README file.
2024-04-10 15:08:17 +02:00
Josh Junon
a4bc539f56
Merge pull request #3467 from Byron/tests-shared
share test code via separate crate
2024-04-10 04:59:08 -07:00
Sebastian Thiel
4542c73fdb
use workspace dependencies for workspace crates 2024-04-10 13:09:04 +02:00
Mattias Granlund
f84b853aae Make NoBaseBranch a component
- solves navigation race condition that can land you on the wrong page
- some users have reported seeing "up-to-date" without navigation sidebar
2024-04-10 11:23:49 +02:00
Pavel Laptev
87cfadffaf
replaced wrong button prop iconAlign (#3481) 2024-04-10 02:20:09 +02:00
Pavel Laptev
11c28cf1ef
CSS glitches fix + AI page typo fixed (#3480) 2024-04-10 01:03:26 +02:00