Commit Graph

759 Commits

Author SHA1 Message Date
Kiril Videlov
555a5a27e4 Remove old reorder commit in UI 2024-11-01 20:26:45 +01:00
Esteban Vega
756b430279
Merge pull request #5403 from gitbutlerapp/e-branch-43
fix: PR modal: Disable the generate button if so configured
2024-11-01 17:47:17 +01:00
estib
387f5a85bd fix: PR modal: Disable the generate button if so configured
If the AI generation is disabled in the project settings, disable the button in the  'generate message' button in the PR Modal as well
2024-11-01 17:42:03 +01:00
Pavel Laptev
09ad1f3951
fix context menus (#5400) 2024-11-01 16:11:13 +00:00
ndom91
98b3e7efc9 fix: remove unused functionality from BranchLaneContextMenu 2024-11-01 15:16:48 +01:00
ndom91
dff3071b83 feat: remove non-stacking feature flag branches in markup 2024-11-01 15:16:48 +01:00
ndom91
e005e3fe20 feat: remove stacking feature flag 2024-11-01 15:16:48 +01:00
ndom91
9bff466a21 fix: move stackingReorderDropzoneManager getContext back to StackSeries.svelte 2024-11-01 14:48:00 +01:00
ndom91
6628b07eb9 fix: maintain event listeners and always unregister before reregistering 2024-11-01 14:48:00 +01:00
ndom91
11b1f76143 fix: allow initial reordering between series
fix: reordering between series
fix: add early return opportunities to accepts and onDrop
fix: refactor getStackOrder
fix: avoid reregistering listeners in stacking reorder line
2024-11-01 14:48:00 +01:00
ndom91
632dc2367a fix: add seriesName to DraggableCommit args 2024-11-01 14:48:00 +01:00
ndom91
48d6f4c2ce feat: create additional stacking reorder context 2024-11-01 14:48:00 +01:00
ndom91
f0a319b636 feat: add stacking methods and interfaces 2024-11-01 14:48:00 +01:00
estib
e9f2b97f83 ai: Stream the Butler AI messages
Users that hava AI enabled through their GitButler cloud account will get streamed responses.

Also:
- Commit generation is stremed into the message input
2024-11-01 13:57:35 +01:00
Mattias Granlund
6e2fa72cdc Fix reactivity in pr template selection
- revert to template when input empty on change rather than keystroke
- use empty string for state variables since it the input default
2024-11-01 01:28:38 +01:00
Mattias Granlund
f2878d8915 Refactor pr templates to use front end persisted store 2024-11-01 00:18:56 +01:00
Mattias Granlund
e7e8ffdec2 Add button for re-opening PR if closed 2024-10-31 18:32:50 +01:00
Mattias Granlund
23541b1c59 Store forgeId after creating a new pull request 2024-10-31 18:32:50 +01:00
Pavel Laptev
359d8d5b51
Improve textarea and fix bugs (#5380)
* Delete Textarea-old.svelte

* Update PrDetailsModal.svelte

* update height calculation method

* remove `console.log`

* Delete autoHeight.ts

* Update CommitCard.svelte

* code review fixes

* improve textarea size detection

* Update CommitMessageInput.svelte

* simplify styles

* Update CommitMessageInput.svelte
2024-10-31 13:08:04 +00:00
Mattias Granlund
973be98101 Remove outdated option for sharing project data
- the specific project data dir is no longer even created
2024-10-31 11:13:32 +01:00
Pavel Laptev
000a9fa248 revert textarea element 2024-10-31 10:30:24 +01:00
Pavel Laptev
56aaccd3eb text-area-fixes 2024-10-31 10:30:24 +01:00
ndom91
6e54b2389b fix: branchController jsdoc 2024-10-31 10:30:24 +01:00
Nico Domino
b4bdbdcfb6 fix: StackingSeriesHeader merge conflicts
Discard changes to apps/desktop/src/lib/branch/BranchLabel.svelte
2024-10-31 10:30:24 +01:00
ndom91
3884c96ddf feat: double input handling and blur clear 2024-10-31 10:30:24 +01:00
Pavel Laptev
fb0fa7eb9a fix styles and words wrap 2024-10-31 10:30:24 +01:00
Pavel Laptev
de50077ebb styles update 2024-10-31 10:30:24 +01:00
Pavel Laptev
ecbed20789 replace components 2024-10-31 10:30:24 +01:00
ndom91
4f40390641 fix: StackingSeriesHeader merge conflict issues 2024-10-31 10:30:24 +01:00
ndom91
6ea3a72c4a feat: if description has been added, use it in createPr modal
fix: prDetailsModal props
2024-10-31 10:30:24 +01:00
Nico Domino
862cb347a3 feat: add seriesHeaderDescription input and enable its use in contextMenu
Discard changes to flake.lock
2024-10-31 10:30:24 +01:00
ndom91
ca1987f08b feat: add 'updateSeriesDescription' branchController method exposing tauri cmd of same name 2024-10-31 10:30:24 +01:00
ndom91
b407985154 feat: split BranchLabel into component parts (no pun) 2024-10-31 10:30:24 +01:00
Kiril Videlov
5e1766e47d Rename API update_series_forge_ids to singular
This was previously forgotten
2024-10-31 09:52:38 +01:00
Kiril Videlov
0b6bcab859 Updating series name resets forge_id to None 2024-10-31 09:50:28 +01:00
Caleb Owens
e58dbd9d1f Remove old and unrequired feature flags 2024-10-30 17:23:55 +00:00
Mattias Granlund
cd397bca5f rename all variables gitHost -> forge 2024-10-30 16:23:45 +01:00
Mattias Granlund
3a76156d99 rename directory/files gitHost -> forge
rename file gitHost.ts -> forge.ts
rename file gitHostBranch.ts -> forgeBranch.ts
rename file gitHostChecksMonitor.ts -> forgeChecksMonitor.ts
rename file gitHostIssueService.ts -> forgeIssueService.ts
rename file gitHostListingService.ts -> forgeListingService.ts
rename file gitHostPrMonitor.ts -> forgePrMonitor.ts
rename file gitHostPrService.ts -> forgePrService.ts
rename file gitHostFactory.ts -> forgeFactory.ts
2024-10-30 16:23:45 +01:00
ndom91
aba906e241 fix: dont allow dbl-click rename on integrated branches
fix: import CommitStatus type
2024-10-30 15:28:57 +01:00
ndom91
cc45c71a35 feat: show RenameSeries modal on BranchLabel dblClick 2024-10-30 15:28:57 +01:00
ndom91
a99eea1cb0 fix: ensure new series name is normalized on the rust side via gix normalization fn 2024-10-30 15:20:04 +01:00
Mattias Granlund
2d2e265ea5 Update E2E testing to Tauri v2 2024-10-30 14:23:32 +01:00
Mattias Granlund
2ef866baa6 Tauri v1 -> v2
Refactor appSettings to accommodate new Tauri v2 API

- creates AppSettings class and injects it where needed
- avoids `window` undeclared variable during vite build process
2024-10-30 14:23:32 +01:00
Kiril Videlov
bd10692afb Only show non-archived branches in the UI 2024-10-30 12:52:55 +01:00
Kiril Videlov
8f4cb6160f replace a Vec of Forge Identifers with an Option instead
Likely we wont need multiple
2024-10-30 10:32:44 +01:00
Kiril Videlov
6d0f9fe141 When creating a vbranch from PR pass the forge id 2024-10-29 23:25:58 +01:00
Kiril Videlov
88729a858c Add API endpoint for setting the forge ids
Plus frontend medthod in branchController for calling it
2024-10-29 22:54:54 +01:00
Kiril Videlov
4bba0dd2b9 expose forge ids on the branches stream api 2024-10-29 21:52:57 +01:00
estib
ad345a7770 fix: Open files on editor in Windows
In order to open the files using the editor url, we need to use forward slashes for the path, even on Windows.
2024-10-29 10:39:23 +01:00
Pavel Laptev
fedd3187f9
Update StackingSeriesHeader.svelte (#5350) 2024-10-29 11:24:52 +01:00