Add a shared utility function for the temporary persitance of values.
If retrieved after the given number of seconds, the value will be considered not present.
* fix: don't show `draggable` handle on integrated commits
* refactor: simplify functions and CSS
- move `getColorFromBranchType` to the UI
- simplify `lineManager`
- use single CSS variable for the lane color
* add `typeOverride` for the base branch case
* new design for the empty series
* 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>
* 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
* 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
Users that hava AI enabled through their GitButler cloud account will get streamed responses.
Also:
- Commit generation is stremed into the message input
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.