Commit Graph

691 Commits

Author SHA1 Message Date
Nico Domino
8787f66c60
fix: set fallback icon (#4293) 2024-07-09 08:07:29 +00:00
Kiril Videlov
8043f0dd4e
remove unused keys module 2024-07-09 00:26:27 +02:00
Nico Domino
25de912d72
feat: update icons to symbol (#4281)
Co-authored-by: Pavel Laptev <pawellaptew@gmail.com>
2024-07-08 23:07:13 +02:00
Pavel Laptev
be3ec82489
Update animation timing (#4286) 2024-07-08 22:55:54 +02:00
Nico Domino
28a01e68fa
fix: cleanup hooks.client.ts handleError fn (#4222) 2024-07-08 18:50:49 +02:00
Pavel Laptev
c9f803fda3
Popup menus: update fixed margins to relative untis (#4279) 2024-07-08 16:29:15 +02:00
Pavel Laptev
4acff2ba46
Fixes to popups (#4278)
* Project selector update

* replace old with the new `clickOutside` helper

* Fix positioning bug for context and select menus
2024-07-08 16:00:42 +02:00
Pavel Laptev
aa6bc6d20c
Fix switcing between projects disabled state (#4271) 2024-07-08 12:10:40 +02:00
Pavel Laptev
2cdbc5e205
Modal and select component fixes (#4253)
* feat: fix clickoutside for multi modal case, fix select list options display.

* Move select to a separate folder

* Serach field CSS tweak

* Replace the old `Select` with the new one

* Remove old `Select` component and switch `SelectNew` component name

* Added `$effect` type to eslint config

* Added the `searchable` property to `Select`

* disable text selection and added an animation

* dropzone hover animation update

* Remove focus state outline

* Move `Listitem` to `ProjectPopup` as a snippet

* rename `useResize` to `resizeObserver`

* Rename `useAutoHeight` to `autoHeight`

* remove unused component `PopupMenuItem`

* Update `Unupply` modal design

* Handle `Select` position on resize

* added an animation to the new context menu

* Right click context menu added

* revert right click context menu

* Context menu: add `item` arg for the `open` method

* updated context menu for `Filter`, `FileItem`, branch `kebab` menu

* Updated Dropdown context menus

* Temporary remove `copy PR link`

* Rename: `BranchLanePopupMenu ` to `BranchLaneContextMenu`

* FileListItem uncomment commented code

* Hunk context menu updated

* Remove `PopupMenu`

* Replace the old `ContextMenu` file with the new one

* Added blocking overlay for dropdown context menus

* animation timing update

* `Select` folder renamed to `select`

* import fix

* import fix

* remove commented code and `console.log`

* add arrow navigation to the `Select` component

* case sensitivity added

* Update HunkViewer.svelte

* remove duplicated folder
2024-07-08 11:38:50 +02:00
Kiril Videlov
532b51bade
feature flag for disabling the project semaphore
It's possible that the sempahore state in the virtual branches controller is completely unnecessary. This feature flag allows us to test this hypothesis
2024-07-06 18:57:58 +02:00
Kiril Videlov
c777431363 remove the gitbutler generated key flow 2024-07-05 15:56:24 +02:00
Mattias Granlund
cf78a5b58b Work around bug in PR status after branch push
- gh can incorrectly report checks as completed even though they just started
- can be marked completed because not all checks are initially included in the check suite
- for GitButler specifically somtimes check-runs includes only a single completed GitGuardian check
2024-07-04 17:34:58 +03:00
Mattias Granlund
2bc8ff1d03 Decrease metrics polling frequency
- it's unclear what the ideal window length is
- small window likely means tracking each change
- small window currently not beneficial in answering product questions 
- will re-evaluate based on findings
2024-07-04 14:10:01 +03:00
Mattias Granlund
a85cc20582 Preserve line breaks in commit descriptions 2024-07-04 14:06:25 +03:00
Mattias Granlund
d150f61ed7 Capture branch metrics individually
- otherwise duplication of captured values grows as more metrics are added
- placed MetricsReporter in root +layout.svelte to accommodate future metrics
2024-07-04 03:51:14 +03:00
Mattias Granlund
c8e7368df5 Start capturing branch metrics
- service keeps count
- component polls every 15 minutes
- capture only when metrics have changed
- capture once a day if no changes
2024-07-04 02:11:03 +03:00
Caleb Owens
5b42e6e9e6 Remove virtual flag from front end 2024-07-03 17:18:11 +02:00
Mattias Granlund
6618c5630c Fix project selector label overflow
- needs nowrap to show ellipsis when name is long
2024-07-03 12:54:20 +03:00
Pavel Laptev
9ff735fd4e
Drag-n-drop update (#4220)
* Reuse `splitFilePath` function

* unnecessary `width` and `height` removed

* added utils for draggable file list items

- added separate CSS

* WIP new styles for the commit draggable

* styles for draggable commit cards updated

* Draggable hunk added

* Draggable lanes updated

* Dropzone design updated

* Dropzones code refactor

* reordering lines design update

* Update logic for determining reorder shift

* Remove unused CSS fix scrollable container prop

* dropzone animations added

* Dropzone hover state UI updated

* CSS update: Card overlay labels

* Fix: horizontal scroll wrong observer trigger

* UX: Automatically close the commit message box after commit
2024-07-02 20:49:17 +02:00
Pavel Laptev
400381b8b4
refactor: Use normalizeBranchName in ActiveBranchStatus component for virtual branch names (#4225) 2024-07-02 17:06:53 +02:00
Caleb Owens
ac4f3b926c
Merge remote-tracking branch 'origin/master' into ndom91/create-gitbutler-ui-package 2024-07-02 15:31:00 +02:00
Kiril Videlov
23503afd25
merge stuff 2024-07-02 15:05:56 +02:00
Sebastian Thiel
b8da62c68b
assure SecretServices functions
- inject secretService so it works when used directly
- remove console logs
- only remove a migrated secret (instead of removing it unconditionally)
- in +template, await for good measure, which explains why the parent function is async

In the backend:
- prevent concurrency in method that stores secrets from the frontend
  as it's racy otherwise to type a secret quickly.
2024-07-02 13:17:45 +02:00
Mattias Granlund
7f618fd248
Extract separate service for secrets
- add `buildContext` for getting/setting contexts by types
- config -> secret migration attempted if secret not found
2024-07-02 13:17:44 +02:00
Caleb Owens
44e56ac370
Use turbo for production builds 2024-07-02 13:15:26 +02:00
Nico Domino
4fab3ec200
Merge branch 'master' into ndom91/create-gitbutler-ui-package 2024-07-02 10:04:46 +02:00
Sebastian Thiel
05506f49fa
migrate AI tokens from the git-configuration to the keystore.
All AI related options are stored in the user-level git configuration
file. Upon first access, they will be removed from there and placed
into the keystore as part of the migration.

The UI is provided with functions to store and save secrets which it
will use specifically to interact with these keys.

It's explicitly out of scope to *not* show the keys in plain-text
anymore after entering them.
2024-07-02 10:02:46 +02:00
Kiril Videlov
4db2698cda
bump tauri minor version
this allows us to bundle RPM packages!
2024-07-02 10:48:47 +03:00
Caleb Owens
4d29cd0723
Get things working a little tiny bit more 2024-07-01 21:09:10 +02:00
ndom91
b46c2c4d5b
feat: add initial turbo cli 2024-07-01 18:47:43 +02:00
Caleb Owens
82c3987d45
Unapply to real branches (#4025)
* Don't return optional

* Rename get_integration_commiter

* Add a header to wip commit

* Stuff

* Unapply all branches

* Reorder code

* Fix one test

* Name resolution

* Fix two tests

* Fix another!

* wip

* Fix so many tests

* Fix unapply.rs tests

* Fix selected for changes tests

* Move unapplying logic to delete_branch method

* Remove unused and kinda borked cherry_commit code

* Fix the tests!!!!!

* Make apply_branch private

* Change handling of headers

* Improve order integrity

* Updated types and comments to convey more meaning
2024-07-01 14:13:52 +00:00
Nico Domino
9aac60b1e4
fix: add Sentry RewriteFrames integration (#4210) 2024-07-01 13:38:15 +02:00
ndom91
f0ae83fda5
fix: move CommitLines dir and update export map 2024-07-01 13:04:47 +02:00
Nico Domino
6f403b9325
Merge branch 'master' into ndom91/create-gitbutler-ui-package 2024-07-01 10:28:55 +02:00
Mattias Granlund
d4c0b97f7d Use pr source branch as title in branch list 2024-06-30 19:56:44 +03:00
Mattias Granlund
8851780851 Fix bug related to switching from integration branch
- value of projects store should never be undefined
2024-06-30 19:53:19 +03:00
Pavel Laptev
d9f314f49b
Do not allow pxToRem function get undifined (#4206)
* Do not allow `pxToRem` function get `undifined`

* `TextBox` width fix
2024-06-29 15:26:44 +02:00
Mattias Granlund
7f929837f9 Show remote branch using name instead of sha
- multiple branches can have the same sha
2024-06-28 17:58:42 +03:00
Mattias Granlund
7073308c9a Drop unused symbols
- been meaing to remove these for a while
2024-06-28 15:41:03 +03:00
Mattias Granlund
9912e2df40 chore: update incorrect variable names in BranchFooter 2024-06-28 14:38:10 +03:00
Mattias Granlund
0082099f8c Fix bug in PushButton component
- show selected action rather than preferred action
2024-06-28 14:23:21 +03:00
ndom91
007f3516fe
fix: commitlines type import 2024-06-28 12:55:26 +02:00
ndom91
836b86a753
Merge branch 'master' into ndom91/create-gitbutler-ui-package 2024-06-28 12:50:44 +02:00
Mattias Granlund
fd3e846989 Fail gracefully if remote branch not found 2024-06-28 12:57:43 +03:00
ndom91
7e8ebdab76
fix: move globals dep to root 2024-06-28 11:57:16 +02:00
ndom91
e84946d9b5
fix: move eslint/prettier config to root 2024-06-28 11:40:36 +02:00
Mattias Granlund
8f052c04b7 Fix commit dialog backspace bug
- place curstor at end of commit title when backspacing from empty description
2024-06-28 12:39:07 +03:00
ndom91
25068de8bb
fix: move eslint/prettier to root only 2024-06-28 11:34:54 +02:00
Mattias Granlund
f67744eea1 Fix for incorrect GitHub error when working in non-GitHub repos 2024-06-28 12:32:33 +03:00
Caleb Owens
dd0b4eccf1
Improve ai error handling (#4180)
* Introduce a result type

* Update AI error handling to use the result type

* Handle ollama json parse error

* Migrate using Error as the type that represents errors

* Remove now useless condition

* asdfasdf

* Use andThen

* Correct unit tests
2024-06-27 20:50:44 +01:00