Commit Graph

6107 Commits

Author SHA1 Message Date
Kiril Videlov
1b506bce79
feat(security): Add OpenAI API endpoint to CSP 2024-03-20 18:15:30 +01:00
Josh Junon
7a429dc32c fix fetching with system executable 2024-03-20 18:13:35 +01:00
Josh Junon
36b0a22d3c
Merge pull request #3248 from gitbutlerapp/add-gitbutler-git-utility-binaries-to-tauri-bundle-config
add gitbutler-git utility binaries to tauri bundle config
2024-03-20 18:03:20 +01:00
Josh Junon
ff6baa5032 add gitbutler-git utility binaries to tauri bundle config 2024-03-20 17:52:03 +01:00
Mattias Granlund
123843799d Bugfix for PassphraseBox to show prompt correctly 2024-03-20 15:47:23 +01:00
Josh Junon
a1e2b92abc
Merge pull request #3246 from gitbutlerapp/make-debug-git-invocations-more-ergonomic-to-repro
make debug git invocations more ergonomic to reproduce
2024-03-20 15:41:42 +01:00
Josh Junon
3d02e7828a
Merge pull request #3245 from gitbutlerapp/don-t-log-response-from-git-prompts-in-command
don't log response parameter to git prompt response submissions
2024-03-20 15:37:11 +01:00
Josh Junon
4e1ff034e8 make debug git invocations more ergonomic to reproduce 2024-03-20 15:31:54 +01:00
Josh Junon
37f7e0ba70 don't log response parameter to git prompt response submissions 2024-03-20 15:26:46 +01:00
Mattias Granlund
01dc79ee62 Set default headers for GitHub API
- defines headers constant for octokit.js
- cache-control header prevents stale results
2024-03-20 15:16:21 +01:00
Pavel Laptev
42c7d7fd8e
Style and copy fixes (#3242)
* Project setup GH integration missing flag

* Style fix: Project setup GH integration margin

* Added ProjectNameLabel component

* UI: new icons

* Copy update and `DecorativeSplitView` link update

* Style tweak
2024-03-20 15:01:17 +01:00
Mattias Granlund
0d5dbc25b7 Organise the prompt service code a bit better
Note that instance fields are evaluated during instance creation, at the start of the constructor.
2024-03-20 13:15:04 +01:00
Mattias Granlund
14def6e616 Show prompt from CLI in PassphraseBox 2024-03-20 12:12:24 +01:00
Mattias Granlund
c8e9f4f9a4 Organise the prompt modal code a bit better
- submit on enter
2024-03-20 12:11:10 +01:00
Kiril Videlov
80b3b682cf fix(community-links): update discord link 2024-03-20 11:05:11 +01:00
Caleb Owens
792ea08eee Consolidate on one commit splitting implementation
The changes in this commit focus on improving the handling and display of commit messages. The key changes are:

1. Introduced a new `splitMessage` utility function to split a commit message into a title and description.
2. Updated the `Commit` and `RemoteCommit` classes to use the `splitMessage` function to extract the title and description from the commit message.
3. Updated the `AIService` to use the `splitMessage` function to construct the summarized commit message.
4. Added a test suite for the `splitMessage` function to ensure it handles various commit message formats correctly.

These changes will make it easier to work with and display commit messages, as the title and description will be separated, allowing for better formatting and presentation.
2024-03-20 02:22:42 +01:00
Caleb Owens
415370a422 Keep showing commit description field if present 2024-03-20 02:20:29 +01:00
Kiril Videlov
f136534982 refactor: use generic as ref 2024-03-20 00:48:36 +01:00
Kiril Videlov
462a9337a4 on delete project remove virtual_branches file 2024-03-20 00:48:36 +01:00
Kiril Videlov
0831fd2619 feat: write vbranch state to a flat file
In addition to the default git storage, persist the state of virtual branches to a toml file in .git
2024-03-20 00:48:36 +01:00
Mattias Granlund
690ec9cced Bugfix checks.. again
- simplify logic a bit here, never show checks if pr closed
2024-03-20 00:47:07 +01:00
Mattias Granlund
9e41f63e99 Improve pull request checks state accuracy 2024-03-20 00:32:51 +01:00
Mattias Granlund
1b9e6649c7 Stores from observables should not subscribe until store subscribed 2024-03-20 00:03:03 +01:00
Mattias Granlund
009478a67a Fix erroneous error message when adding project
- for a split second the navigation bar comes into existence
- was trigger remote branches load
2024-03-20 00:02:43 +01:00
Mattias Granlund
6aa883f7f8 Wire up backend input requests to new components
- adds a modal for use with sync button and credentials checker
- uses branch lane PassphraseBox for pushing
2024-03-20 00:00:29 +01:00
Pavel Laptev
8498e35d9f new component PassphraseBox 2024-03-20 00:00:29 +01:00
Pavel Laptev
e3ffef17a8 Show/hide icon if textbox type is "password" 2024-03-20 00:00:29 +01:00
Pavel Laptev
554a3daa13 UI: TextBox paddings update 2024-03-20 00:00:29 +01:00
Josh Junon
734262abf2
Merge pull request #3226 from gitbutlerapp/allow-action-to-be-passed-to-test-fetch-endpoint
allow action to be passed to test fetch endpoint
2024-03-19 20:20:08 +01:00
Josh Junon
b555c376ec allow action to be passed to test fetch endpoint 2024-03-19 20:09:43 +01:00
Mattias Granlund
9c0f77eb2f Turn off tauri globals in conf file
- change was unintended
2024-03-19 19:07:02 +01:00
Mattias Granlund
17ec27f508 Make clippy happy be removing wildcard import 2024-03-19 17:56:14 +01:00
Josh Junon
c0378762c0 add fetch support 2024-03-19 17:56:14 +01:00
Josh Junon
df2f81340b integrate gitbutler_git::push() into gitbutler-app and wire up askpass mechanisms 2024-03-19 17:56:14 +01:00
Mattias Granlund
56ca8b233d Fix for pr tag being stuck on "open" 2024-03-19 17:53:34 +01:00
Mattias Granlund
61d864512c Disable merge button if PR in draft state 2024-03-19 17:53:11 +01:00
Mattias Granlund
8e0e048e0a Increase timeout for branch reload
- up from 10s to 30s
2024-03-19 15:16:07 +01:00
Mattias Granlund
8987b10647 Fix occasional problem with unsubscribing observable
- can happen when switching projects
2024-03-19 14:50:47 +01:00
Mattias Granlund
2e6a62f82a feat(project): Force component recreation on projectId change
- solves problem of `getContext` retrieving old values
2024-03-19 14:46:13 +01:00
Kiril Videlov
c3076bac48 fix: remove persisting of passphrases for projects
Passphrases will no longer be persisted. When a project is read up, it will persist itself with the passphrase removed as a field
2024-03-19 12:50:34 +01:00
Kiril Videlov
6c6c830921 fix: remove setting of passphrases for projects
Passphrases for ssh keys will no longer be set and persisted in favour of prompting just in time
2024-03-19 12:41:00 +01:00
Josh Junon
1bd3fad3f6
Merge pull request #3212 from gitbutlerapp/and-force-push-support-in-gitbutler-git
add force push support in gitbutler-git
2024-03-19 12:28:05 +01:00
Josh Junon
83cdda818b add force push support in gitbutler-git 2024-03-19 12:18:17 +01:00
Pavel Laptev
fdfd7dd905
UI: lane resizer color update (#3211) 2024-03-19 12:17:09 +01:00
Josh Junon
961469cce8
Merge pull request #3210 from gitbutlerapp/add-push-to-gitbutler-git
add push to gitbutler-git
2024-03-19 11:27:26 +01:00
Josh Junon
9cb84d369d add push to gitbutler-git 2024-03-19 11:17:20 +01:00
Josh Junon
f08c58dafa
Merge pull request #3209 from gitbutlerapp/add-local-config-fetch-set-on-projects
add local git config get/set tauri commands
2024-03-19 11:11:06 +01:00
Josh Junon
92db784a29 add local git config get/set tauri commands 2024-03-19 11:01:06 +01:00
Josh Junon
3050facc0b
Merge pull request #3208 from gitbutlerapp/remove-unused-imports
remove unused imports
2024-03-19 10:37:07 +01:00
Josh Junon
572b589afa remove unused imports 2024-03-19 10:27:12 +01:00