Caleb Owens
edc0bd1a1d
Fix state for selections not propagating
2024-09-23 20:26:34 +02:00
estib
c9a5d7a75d
Branch file list: Remove comments about actions
2024-09-16 11:42:04 +02:00
estib
08fb9effc4
Merge remote-tracking branch 'origin/master' into keyboard-shortcuts
2024-09-16 11:40:23 +02:00
Pavel Laptev
1c70cdc3f4
Fixes scroll on drag ( #4913 )
...
* remove old tailwind CSS class
* fix `onDestroy` lifecycle error
* fix scroll glitch for changed files while dragging
2024-09-14 17:43:06 +02:00
estib
5395d00a1a
Merged origin/master into keyboard-shortcuts
2024-09-12 14:47:17 +02:00
Pavel Laptev
7c0a3766af
usused CSS removed
2024-09-12 02:03:22 +02:00
Pavel Laptev
e4df03aa50
remove unused code
2024-09-12 01:27:41 +02:00
Pavel Laptev
965118de7a
Remove duplicated hunk inf and replace indicators with infomessages
2024-09-11 23:29:10 +02:00
estib
5137517650
BranchFilesList keybindings: Select all files
...
Select all files with meta-key + 'a'.
Also, `fileIdSelection` will make sure that the no duplicates are added to the selection
2024-09-11 17:31:33 +02:00
estib
d41827c9d1
BranchFilesList keybindings: Stage and unstage files
...
Stage or unstage the files by pressing the space-bar on the selected files.
Click enter to focus on the commit message input field
2024-09-11 17:20:56 +02:00
estib
b8c60adc64
Merge branch 'master' into keyboard-shortcuts
2024-09-11 15:50:07 +02:00
estib
c3273c10fe
Commit Input: Control focus behaviors
...
Add the ability to control externally when the commit message text input is focused.
Also:
Opent the commit input when a file is selected and the space bar is pressed
2024-09-11 15:43:38 +02:00
Esteban Vega
c4686bbf63
Merge pull request #4859 from gitbutlerapp/check-boxes-behavior
...
Improve the file list checkboxes behavior
2024-09-11 15:43:18 +02:00
estib
390119e009
fix: File key navigation and selection
2024-09-11 12:19:52 +02:00
estib
8c22b6c0d1
Update Ownership class
...
Rename the `Ownership` class to `SelectedOwnership`, as it is only used to determine the selected state of the files to add to a commit.
Renamed the methods as well to convey their actual purpose.
The `SelectedOwnership` class will be updated in a way that the selected is persisted across file/hunk ownership updates
2024-09-09 13:53:57 +02:00
estib
7bb3c7c9cf
BranchFilesList: Clean-up and prefer Svelte 5 APIs
...
Refactor and clean-up the component, so that the newer, more readable Svelte 5 state APIs are used
2024-09-09 12:00:34 +02:00
estib
0a6493087b
FileListItem: Track whether all or some hunks have been selected
...
If only some of the hunks have been selected, display the file checkbox as indeterminate
2024-09-08 12:21:49 +02:00
estib
d3c1ed8ed4
Style: Checkbox indeterminate state
...
Make it so that the indeterminate state of the checkbox matches the selected style
2024-09-08 12:16:56 +02:00
Nico Domino
68f0a3c288
fix: use our own open-rs
implementation instead of relying on tauri's "shell-open" ( #4748 )
...
Co-authored-by: Yerke Tulibergenov <yerke@squareup.com>
Co-authored-by: Caleb Owens <caleb@gitbutler.com>
Co-authored-by: Pavel Laptev <pawellaptew@gmail.com>
Co-authored-by: Mattias Granlund <mtsgrd@gmail.com>
Co-authored-by: Sebastian Thiel <sebastian.thiel@icloud.com>
Co-authored-by: GitButler <gitbutler@gitbutler.com>
2024-09-07 19:28:50 +02:00
Nico Domino
32d766c2d6
fix: bump all svelte related dependencies ( #4828 )
2024-09-06 12:25:41 +02:00
estib
34e102f336
Only discard the files changes inside the lane
...
When using the file context menu inside a given lane to discard the changes, only the changes to that file inside the lane should be discarded.
Any other changes to that same file that live in other lanes are kept
2024-09-03 11:34:19 +02:00
Pavel Laptev
c820a33e41
Tooltip-refactoring-+-new-component ( #4804 )
...
* tooltip component + custom svelte transitions
* update some tooltips
* replace old toogle
* replace old tooltip hook
* remove old tooltip hook
* lint fixes
* design tokens update
2024-09-01 20:30:36 +02:00
Pavel Laptev
fe3c73ccfd
FileListItem fix ( #4799 )
...
* show lock icons and lock tooltip
* replace state with derived
* allow to drag files
2024-08-30 13:11:23 +02:00
Pavel Laptev
425136da20
Edit mode updates ( #4792 )
...
* Add `Scrollbar` and `ScrollableContainer` to the UI lib
* event fixes
* replace app components with UI
* Move `ContentWrapper` to the UI side
* update file status badge colors
* move scrollbar components back to to app
because of the user settings
* dummy commit card added to the edit mode
* add the commit line
* edit modal UI tweaks
* remove unused code
* lint fixes
* lint fixes
2024-08-30 11:21:11 +02:00
Pavel Laptev
95d11a2965
Fix files selection ( #4764 )
...
* allow select multiple if the lane is applied
* missing commit Id added
* fix selection with `shift`
* disable draggable icon for unapplied commits
* replace `isPreview` with existing `isUnapplied`
* do not allow mutliple selection for remote commits
* refactor(utils): small update
* revert previous commit
* review changes
2024-08-28 11:27:48 +02:00
Nico Domino
30231c2f46
fix: dont hide "discard file" contextMenu option from binary files ( #4770 )
2024-08-27 20:50:47 +02:00
Pavel Laptev
2b5b5c00aa
remove unused code
2024-08-23 15:49:49 +02:00
Pavel Laptev
964f700f04
update FileListItem and FileIcon components
2024-08-23 15:42:00 +02:00
Pavel Laptev
21eeb5f5c9
minor UI lib updates ( #4740 )
...
* button icons change
* Shorter copy
* checkbox updated to Svelte 5
- added `Checkbox` story
* Fix checkbox and badge props
* change story name
* segement color transition update
* illustrations update
* update SVG illustration colors
* style: Update button CSS variables for different button styles.
2024-08-22 15:39:09 +02:00
Pavel Laptev
daa285f41e
Login flow update and UI updated ( #4716 )
...
* UI: Fix disabled `WelcomeAction` state
* update stories structure
* update UI components structure
* fix path to icons.json
* fix path to `timeAgo` functions
* added `LinkButton` component and updated login functions
* copy change
* remove `console.log`
* lint: formatting fixes
* remove `console.log` from the `Modal` story
* casing change
* remove duplicated folders (casing issue)
2024-08-19 11:55:19 +02:00
Pavel Laptev
fdea1cb0f5
UI lib: text utility classes ( #4684 )
2024-08-14 09:52:20 +02:00
Nico Domino
cec6ed6fbf
fix: add two additional tsconfig options ( #4592 )
2024-08-05 14:21:38 +00:00
Caleb Owens
8eb5371b0a
Fix the worst conflicts I've ever delt with
2024-08-05 14:01:49 +02:00
Pavel Laptev
aaf933f42d
UI package update ( #4598 )
...
* add `Button` and `Icon` to UI library
* Update Button.stories.ts
* button stories added
* remove unused dependencies
* update button stories
* Update DemoButton.stories.ts
* update tokens
* dark theme toggle fix
* replace buttons with buttons from the package UI
* Update FileCardHeader.svelte
* Update BranchLaneContextMenu.svelte
* replace the app `Icon` component with the `UI` component
* fix `Icon` import in the `package UI`
* update imports for `icons.json`
* fix wrong type on Storybook
* update imports for `types`
* fix import order
* storybook grouping update
2024-08-05 13:20:03 +02:00
Caleb Owens
91b939563c
asdf
2024-08-01 18:05:03 +02:00
Caleb Owens
70422439d7
integrated the thign
2024-07-31 19:41:08 +02:00
Caleb Owens
09de80f6f0
Mergy merge
2024-07-31 13:11:02 +02:00
Caleb Owens
43600c0a13
Moved some stuff into the UI package
2024-07-31 13:08:48 +02:00
Pavel Laptev
6fe1f25959
Diff-hunk-style-fixes ( #4551 )
...
* remove styles duplication
* Add hunk background color
* fix: gap between commits when dragging
* update hunk line colors
* fix: number columns cliping
* fix: number column border clipping
* diff styles update
* update "large diff" message style
2024-07-31 00:31:26 +02:00
Mattias Granlund
235a6a5d83
Fix a few problems in hunk/commit drag operations
2024-07-30 18:16:15 +01:00
Nico Domino
9646684f92
feat: refactor diff rendering ( #4497 )
...
Co-authored-by: Pavel Laptev <pawellaptew@gmail.com>
2024-07-30 13:27:19 +02:00
Nico Domino
bce53ba383
feat: move @gitbutler/cloud into monorepo ( #4494 )
2024-07-25 15:53:28 +00:00