Commit Graph

1531 Commits

Author SHA1 Message Date
Mattias Granlund
2291e38a82 Include repo domain and hash in posthog events
- so we can understand and prioritise forge support
2024-11-13 11:45:09 +01:00
Pavel Laptev
229c9b8fe3
remove-unused-icons (#5524)
* refactor(icons): icons rename, remove unused

* feat(icons): update small AI icon

* refactor: make icon optional in snapshot operation mapping
2024-11-12 12:30:01 +01:00
Mattias Granlund
ee04556008 Fix "load failed" on pr creation
- rust returns null for optional values rather than undefined
- add missing $derived
2024-11-12 11:10:24 +01:00
Pavel Laptev
cf73b39fc8
UI improve context menu (#5498)
* Add stack footer

* add `Toggle` story

* refactor styles and copy: update context menu components

* feat(prFooter): update footer format to enhance clarity

* remove extra `PR` word from the PR card context menu

* simplify labels in SeriesHeaderContextMenu + add a section title

* refactor: replace StackingCommitCard with CommitCard component

* refactor: replace parent.close() with menu.close() in context menu

* refactor: replace onopen/onclose with ontoggle in context menus

* refactor(contextmenu): streamline toggle event handling

* refactor: update context menu to support right- and left-click triggers

* Update DropDownButton.svelte

* copy and title style update

* added series header right click menu

* do not allow interactions until the animation ends

* fix typo

* improve `setTransformOrigin` function readability

* simplify `setHorizontalAlign`

* remove "title" from the PR context menu

* copy fix

* remove commented out code

* leave the "Reload PR" action only on the PR card

* do not show the rename action if it is no longer available

---------

Co-authored-by: Mattias Granlund <mtsgrd@gmail.com>
2024-11-11 14:35:47 +00:00
Pavel Laptev
784e380892
UI smaller empty branch state (#5516)
* rename category "Elements" to "Basic"

* fix import typo

* UI: Smaller "new branch" empty state

* discard files styles update
2024-11-11 13:59:58 +01:00
Pavel Laptev
e627b95e74
Integrate-upstream-modal-updates (#5487)
* fix: bold target branch name in divergence message

* feat: update IntegrationSeriesRow to use series data instead of title

* feat(ui): add tooltip for additional series in labels row

* feat: add SeriesLabelsRow component to IntegrationSeriesRow
2024-11-08 15:49:57 +01:00
Pavel Laptev
fa67b34637
style fix: tags width (#5483) 2024-11-07 13:04:05 +00:00
Pavel Laptev
d0d4a4cafe style: increase branch labels contrast 2024-11-06 16:18:37 +01:00
Pavel Laptev
beb2887762 feat(icons): remove unused "description-small icon 2024-11-06 16:06:20 +01:00
ndom91
64a5bf8706 fix: BaseBranch commitLine colors 2024-11-06 14:46:44 +01:00
Pavel Laptev
88f2849341
sidebar-update-for-stacking (#5463)
* feat: add SeriesLabelsRow component and update imports

Introduce the SeriesLabelsRow component to display a list of series 
with an optional counter label. Update the CollapsedLane and HeaderMetaSection 
to use the new component. Create stories for SeriesLabelsRow in Storybook 
to facilitate testing and documentation. This enhances the UI by providing 
a clearer representation of series data.

* feat: refactorEntry to use series instead of title

Remove title prop from SidebarEntry and replace it with a series 
array. Update related components and stories to reflect this change. 
This enhances the component's flexibility by allowing it to handle 
multiple series, improving the overall user experience.

* style: update hover background color in SidebarEntry

* feat: add tooltip to series labels for clarity

* refactor: move wiggle animation to utility styles


Also removes unused DefaultTargetButton component code.

* Merge branch 'master' into sidebar-update-for-stacking

* feat: enhance SidebarEntry with title and optional series

Fix: PR sidebar entry
2024-11-06 11:45:37 +01:00
Pavel Laptev
1f50954792
some-style-fixes (#5445)
* fix added/removed tag colors

* fix helper class

* UI edit: integrated modal not so wide

* simplify copy
2024-11-05 16:17:59 +01:00
Pavel Laptev
de47b68e9b
New stack header (#5437)
* fix search icon in `Select`

* update "scroll into view" btn

* remove unused code

* stick header

* fix sticky top margin

* fix header z-index

* cut first series

* wiggle animation to the header added

* fix lane background on drag

* Delete OldStackHeader.svelte

* Update StackSeriesRow.svelte

* added `ControlSection` - the header top

* icons updated

* added StackMetaSection

* add branches selector

* animation fix

* Merge branch 'master' into new-stack-header

* fix wiggle animation

* stackheader menu added

* update collapsed lane

* Merge branch 'new-stack-header' of https://github.com/gitbutlerapp/gitbutler into new-stack-header

* Fix wrong imports

* Revert wrong change

* rename files

* fix renamed file import

* update get commit color with an existing function
2024-11-05 14:43:18 +00:00
ndom91
0eb38fec90 fix: LineSpacer export 2024-11-05 14:32:45 +01:00
ndom91
bfd6981311 fix: remove old commitLines 2024-11-05 14:32:45 +01:00
Pavel Laptev
0f4f8caa6b
Update Textarea.svelte (#5402)
* Update Textarea.svelte

* Update Textarea.svelte

* remove additional wrapper

* set time out to ensure the element is rendered
2024-11-01 16:51:39 +00:00
Pavel Laptev
ad2a37113d
Fix fileitem path truncation (#5397)
* Update Textarea.svelte

* fix file path and name strings truncation

* add tooltip

* fix tooltip word break

* update tooltip name
2024-11-01 16:34:52 +01:00
ndom91
dff3071b83 feat: remove non-stacking feature flag branches in markup 2024-11-01 15:16:48 +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
Pavel Laptev
790ecd9261
Update Textarea.svelte (#5389) 2024-11-01 09:39:07 +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
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
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
5b355935a0 fix: allow periods in git refs through slugify() 2024-10-30 15:20:04 +01:00
Caleb Owens
41e8cc8ed3 Rename away from patch stacks 2024-10-28 11:47:32 +00:00
Esteban Vega
3b8a96ca47
Merge pull request #5330 from gitbutlerapp/e-branch-2
fix: Modal closes on mouse down outside
2024-10-28 14:52:03 +01:00
estib
42270f1c9f fix: Modal closes on mouse down outside
Avoid closing the modals when releasing the mouse outside the modal.
Only close them on clicking down outside the modal
2024-10-28 14:44:50 +01:00
Kiril Videlov
97c344404f
Merge pull request #5316 from gitbutlerapp/fix-dashed-lines
Fix dashed lines
2024-10-28 13:25:52 +01:00
estib
7b0e447a98 Modal: Close is a promise + onClickOutside
Make the modal closing function a promise as it's done asynchronously.
Add another optional callback that's called only in the case when clicking outside the modal.
2024-10-28 10:21:32 +01:00
ndom91
04d2fdd26c fix: playwright on nix 2024-10-27 10:54:10 +01:00
ndom91
d2e2d281a7 fix: rm unuesd playwright from packages/shared 2024-10-26 17:24:23 +02:00
ndom91
34cb68e52c fix: add timeAgo tests 2024-10-26 16:54:01 +02:00
ndom91
fe10b21602 fix: replace momet with dayjs 2024-10-26 16:54:01 +02:00
Pavel Laptev
6d10a5944f fix commit lines dotted lines 2024-10-25 16:07:59 +02:00
Pavel Laptev
428fc5aee6 fix Spacer repeating gradient 2024-10-25 15:22:06 +02:00
Pavel Laptev
2ed3957ab3 move Spacer to UI 2024-10-25 15:21:33 +02:00
ndom91
fdc5f8b94d
fix: overlapping context menus 2024-10-24 19:49:54 +02:00
Pavel Laptev
d3a0f3108b
Update text areas (#5297)
* reedit "borderlessTextArea" to "Textarea"

* replace old textareas

* Delete TextArea.svelte

* move `TextBox` to UI

* mock the keyboard event

* migrate `Textbox` to svelte 5

* Update PrDetailsModal.svelte

* fix event

* fix text formatting

* Update DialogBubble.svelte

* codereview fixes
2024-10-24 15:37:27 +00:00
estib
549f5341d7 lint: ALL BUTTONS HAVE TYPE, FOREVER
Ensure that all buttons have an explicit type so that no button mistakenly submits a form they may be inside of
2024-10-24 16:32:50 +02:00
estib
9d588efbd4 fix: SimpleCommitRow butttons of type button
Apparently buttons without a type inside a form default to `submit`.
In order to open the links in the commit list and not trigger the upstream to be integrated, we need to set the type of the button to `button`
2024-10-24 16:08:42 +02:00
Pavel Laptev
5f7941d17a
Context menu fixes (#5291)
* added "disabled" prop to Tooltip

* don't show tooltips when the context menu is activated

* correct context menu positioning

* fixes: menu toggling, hold the active card state when the ctx menu is opened
2024-10-24 11:13:49 +02:00
Kiril Videlov
2f62bad734 Allow underscore on slugify 2024-10-24 11:03:16 +02:00
Pavel Laptev
dcd6391c88
New branch menus (#5279)
* added new overflowMenu

* refactor(StackingSeriesHeader): Remove redundant code for opening link and context menu options

* commit context menu added

* refactor: Improve click outside handler in ContextMenu.svelte

* feat(commit): Add ability to insert blank commit above or below existing commit

* refactor(contextmenu): Refactor align logic, remove el and add clientHeight/Width binding

* added: "Activated" state for overflow menu and buttons

* added: conditions for "kebab" buttons when context menu is opened

* fixing context menu positioning

* feat: Add preventDefault to context menu in OverflowMenuItem

* fix: Toggle button label

* added "copy PR" item

* Update OverflowMenuItem.svelte

* Update InsertEmptyCommitAction.svelte

* adde more itrm to the commit context menu

* Update StackingCommitList.svelte

* Update Button.svelte

* fix checks

* change context menu trigger area

* components rename

* restrict context menu actions to the commit type

* Update CommitContextMenu.svelte

* add missing prop

* rearrange buttons

* Update apps/desktop/src/lib/branch/StackingSeriesHeader.svelte

* some buttons had missing kind prop

* move new components to UI

---------

Co-authored-by: Nico Domino <yo@ndo.dev>
2024-10-24 02:46:06 +02:00
ndom91
cca10524bf fix: dont force runes on packages/ui - storybook still doesnt support 2024-10-23 11:09:39 +02:00
ndom91
e5f63c557c chore: eslint ignore storybook stories for now 2024-10-23 11:09:39 +02:00