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.
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`
* 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
* 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>
* Button: Add more styling props
- Choose the border radius style
- Set a max-width
- Ignore children (helps with the animation in between having no children and having a large child)
* StackingAddSeriesButton
Replace the 'new series' card with a button that appears on hover.
Also:
The modal displays more information, like what the resulting branch name will be called
* style updates
* button center align
* fix tooltip positioning
* some UI fixes
* added focus trap to the context menu
* styles updated
* update: transition time
---------
Co-authored-by: Pavel Laptev <pawellaptew@gmail.com>
* style(modal): Update header padding and add color to body
* style: Update font color in modal body paragraphs
* feat(ui): improve DemoModal structure and props usage
* style: Remove unnecessary global styles from Modal component
* feat(ui): Update DemoModal component onclick event and add onSubmit handler
* StoryBook: Update text in DemoModal
* add missing "submit"
* modal lint/checks fixes
* Update "Discard changes" modal