Commit Graph

6434 Commits

Author SHA1 Message Date
Josh Junon
59af2953cd
update config to refer to new crate structure 2024-04-04 12:09:12 +02:00
Josh Junon
5a9962bc5a
initial move of crates (no config changes) 2024-04-04 11:49:12 +02:00
Pavel Laptev
fa2a75508b
CSS fixes (#3427)
* fix: draggable scroll triggered too early
the triggerRange set to fixed number because it was getting triggered too soon on small screens.
* `shaky` animation renamed + deleted unused CSS
2024-04-04 01:54:09 +02:00
Mattias Granlund
06689a79ac Fix bug where extra files shown while dragging
The drag cloning selector can be used in different branches, so we can to restrict our dom query to only the parent container of the file being dragged.
2024-04-04 01:49:50 +02:00
Mattias Granlund
ea1a16cc1f Refactor FileSelection into a custom store
This just makes more sense.
2024-04-04 01:21:21 +02:00
Pavel Laptev
281f1c7476
Small layout fixes for files list (#3423) 2024-04-03 22:45:18 +02:00
Mattias Granlund
d021eb51a4 Refactor internal error page
- copies most things from `ProblemLoadingRepo`
- `maybeGetContext` function now necessary for project selector
- throw expected error in layout.ts if loading project fails
2024-04-03 22:10:54 +02:00
Mattias Granlund
ea9cf23997 Fix drag & drop object clone
- dimensions must be preserved
- old code related to file tree dropped
2024-04-03 17:52:26 +02:00
Mattias Granlund
07310ce67f Bugfix file selection
- file preview must close when no file selected
2024-04-03 17:52:26 +02:00
Mattias Granlund
c5738fee4b Allow hunk drag when locked, necessary for amending commit 2024-04-03 17:18:54 +02:00
Mattias Granlund
a0d30e8f43 Fix shift selecting files after rebasing Pavel's work
- works but will need more love
2024-04-03 17:18:54 +02:00
Pavel Laptev
6c8544acd8 disable dragging for locked files 2024-04-03 17:18:54 +02:00
Pavel Laptev
19cbb91961 added autoscroll on drag + style fixes 2024-04-03 17:18:54 +02:00
Pavel Laptev
f725f55ad1 add utility to select files 2024-04-03 17:18:54 +02:00
Pavel Laptev
a49ccc3eee added autoscroll on drag + style fixes 2024-04-03 17:18:54 +02:00
Pavel Laptev
585bd463b8 fix: handle opacity when multiple files selected
previosly the opacity worked only for one file
2024-04-03 17:18:54 +02:00
Pavel Laptev
03d6ee2190 add utility to select files 2024-04-03 17:18:54 +02:00
Mattias Granlund
1cf360c1ff Put BranchFilesHeader into BranchFilesList
- removed it when refactoring file selection
- realized it is necessary even without tree view
2024-04-03 13:52:39 +02:00
Mattias Granlund
55ed8dc45a Remove tree list view
- not being used
- reduced maintenance cost
2024-04-03 13:52:39 +02:00
Mattias Granlund
b10904ae65 Use Svelte context for file selection and ownership
This commit needlessly entangles two changes, but they are part of the same effort. We replace the use of props for passing selected files and selected ownership with context getters.

Landing this now since it's functionally much better than before, but this code needs more work. We are currently using a store on the `FileSelection` object essentially for retriggering checks, it has a smell to it.

Note that the reason selectedFileIds is separate from selectedFiles is that our file objects mutate with every update from the back end. That's why until now has been clearing quite often.

TODO: Rename `SelectedOwnership` to something more true to its function
2024-04-03 13:25:18 +02:00
Caleb Owens
1c7d305273
Merge pull request #3411 from gitbutlerapp/add-difflenth-to-settings
Add difflenth to settings
2024-04-03 08:58:37 +01:00
Kiril Videlov
d050ebdfc4
Merge pull request #3415 from gitbutlerapp/content-wrapper-z-index-increase
fix zindex glitch with branch search input
2024-04-03 09:57:07 +02:00
Caleb Owens
691392328a
Remove Console Log 2024-04-03 08:56:43 +01:00
Kiril Videlov
6594760d7f
fix zindex glitch with branch search input 2024-04-03 09:54:29 +02:00
Pavel Laptev
648fe29f99 Minor layout updates
- added `Spacer` above `Amount of provided context`
- changed space between section
- amount input changes from 100 to 80
2024-04-03 08:52:50 +01:00
Caleb Owens
8c52dfe767 feat: Increase the diff length limit for API usage
- Adds a new configuration key `gitbutler.diffLengthLimit` to allow users to
  customize the diff length limit
- Adds a method `getDiffLengthLimitConsideringAPI` to return the diff length
  limit with a specified upper bound of characters in order to not inundate the
  API
- Updates the `buildClient` and `summarizeCommit`/`summarizeBranch` methods to
  use the new `getDiffLengthLimitConsideringAPI` method

feat: Add a `showCountActions` prop to the TextBox component
- Adds a new prop `showCountActions` to the TextBox component to display
  character count actions (e.g., min/max length indicators)
2024-04-03 08:52:50 +01:00
Caleb Owens
7f8e3f6574 feat: refactor AIService to improve readability
Extract repeated config access into separate methods. Introduce
variables to clarify the meaning of complex conditional statements.
The changes make the code easier to understand and maintain without
altering its behavior.
2024-04-03 08:52:50 +01:00
Pavel Laptev
9f65af954b
small design tokens update (#3414) 2024-04-03 02:03:09 +02:00
Pavel Laptev
b47acdfc33
Button update (#3413)
* New icons added

push-small, pull-small, rebase-small, local-remote, remote. local

* added new button properties

- `badgeLabel` and `badgeIcon`
2024-04-03 01:33:31 +02:00
Mattias Granlund
3c2b3b0de1 Fix mistake in use of of() function
- calling it without a value produces an observable that never emits
2024-04-02 23:38:16 +02:00
Mattias Granlund
1cd893e311 Fix add / remove project
Recent refactor broke this, observable streams that are meant to be retried were permanently killed.
2024-04-02 23:17:42 +02:00
Mattias Granlund
d2375a4361 Fix typo in dropzone css class
- fixes currently broken dropzone highlight/hover
2024-04-02 14:37:29 +02:00
Pavel Laptev
a8ac14871c
Styles: fix illustration tokens (#3402) 2024-04-02 13:52:05 +02:00
Mattias Granlund
f9795d7c82 Set scroll-behavior to none on <html> element
- probably lost when removing tailwind css
2024-04-02 13:05:37 +02:00
Kiril Videlov
36ee8a9bc2
feat: Change commit button text to 'Start commit' (#3399)
Looks good, thanks!
2024-04-01 22:30:16 +02:00
Kiril Videlov
0c8d7a8f5d
Merge pull request #3395 from gitbutlerapp/dependabot/cargo/tauri-plugin-window-state-066058f
build(deps): bump tauri-plugin-window-state from `c6a5b7a` to `066058f`
2024-04-01 18:16:39 +02:00
Kiril Videlov
2b25715e30
Merge pull request #3396 from gitbutlerapp/dependabot/cargo/tauri-plugin-log-066058f
build(deps): bump tauri-plugin-log from `c6a5b7a` to `066058f`
2024-04-01 18:16:33 +02:00
Kiril Videlov
467ba7e485
Merge pull request #3397 from gitbutlerapp/dependabot/cargo/tauri-plugin-single-instance-066058f
build(deps): bump tauri-plugin-single-instance from `c6a5b7a` to `066058f`
2024-04-01 18:16:25 +02:00
Kiril Videlov
0948891339
Merge pull request #3398 from gitbutlerapp/dependabot/cargo/tauri-plugin-store-066058f
build(deps): bump tauri-plugin-store from `c6a5b7a` to `066058f`
2024-04-01 18:16:19 +02:00
Kiril Videlov
d1f099c09f
Merge pull request #3393 from gitbutlerapp/dependabot/npm_and_yarn/npm-updates-5a9777be9f
build(deps): bump the npm-updates group with 6 updates
2024-04-01 18:15:58 +02:00
Kiril Videlov
cb43625f74
Merge pull request #3394 from gitbutlerapp/dependabot/cargo/rust-updates-edc401d946
build(deps): bump the rust-updates group with 3 updates
2024-04-01 18:15:39 +02:00
Kiril Videlov
65aa6a5d98
Merge pull request #3385 from gitbutlerapp/error-handling
consistent error-handling
2024-04-01 18:14:15 +02:00
dependabot[bot]
9ce4103462
build(deps): bump tauri-plugin-store from c6a5b7a to 066058f
Bumps [tauri-plugin-store](https://github.com/tauri-apps/plugins-workspace) from `c6a5b7a` to `066058f`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](c6a5b7ae47...066058f631)

---
updated-dependencies:
- dependency-name: tauri-plugin-store
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 15:45:32 +00:00
dependabot[bot]
59c1d58bb6
build(deps): bump tauri-plugin-single-instance
Bumps [tauri-plugin-single-instance](https://github.com/tauri-apps/plugins-workspace) from `c6a5b7a` to `066058f`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](c6a5b7ae47...066058f631)

---
updated-dependencies:
- dependency-name: tauri-plugin-single-instance
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 15:45:06 +00:00
dependabot[bot]
14d9511f37
build(deps): bump tauri-plugin-log from c6a5b7a to 066058f
Bumps [tauri-plugin-log](https://github.com/tauri-apps/plugins-workspace) from `c6a5b7a` to `066058f`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](c6a5b7ae47...066058f631)

---
updated-dependencies:
- dependency-name: tauri-plugin-log
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 15:44:41 +00:00
dependabot[bot]
8a0966eed1
build(deps): bump tauri-plugin-window-state from c6a5b7a to 066058f
Bumps [tauri-plugin-window-state](https://github.com/tauri-apps/plugins-workspace) from `c6a5b7a` to `066058f`.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](c6a5b7ae47...066058f631)

---
updated-dependencies:
- dependency-name: tauri-plugin-window-state
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 15:44:17 +00:00
dependabot[bot]
69ae2d33b9
build(deps): bump the rust-updates group with 3 updates
Bumps the rust-updates group with 3 updates: [tokio](https://github.com/tokio-rs/tokio), [refinery](https://github.com/rust-db/refinery) and [similar](https://github.com/mitsuhiko/similar).


Updates `tokio` from 1.36.0 to 1.37.0
- [Release notes](https://github.com/tokio-rs/tokio/releases)
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.36.0...tokio-1.37.0)

Updates `refinery` from 0.8.12 to 0.8.13
- [Release notes](https://github.com/rust-db/refinery/releases)
- [Changelog](https://github.com/rust-db/refinery/blob/main/CHANGELOG.md)
- [Commits](https://github.com/rust-db/refinery/compare/0.8.12...0.8.13)

Updates `similar` from 2.4.0 to 2.5.0
- [Changelog](https://github.com/mitsuhiko/similar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mitsuhiko/similar/compare/2.4.0...2.5.0)

---
updated-dependencies:
- dependency-name: tokio
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-updates
- dependency-name: refinery
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: rust-updates
- dependency-name: similar
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: rust-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 15:43:50 +00:00
Sebastian Thiel
91a6a3a879
doc: add information on how to use the new error types, and what to consider. 2024-04-01 17:41:31 +02:00
Sebastian Thiel
2aaacdfca7
chore: remove legacy error in favor of new error system 2024-04-01 17:33:14 +02:00
dependabot[bot]
66b00b42d1
build(deps): bump the npm-updates group with 6 updates
Bumps the npm-updates group with 6 updates:

| Package | From | To |
| --- | --- | --- |
| [openai](https://github.com/openai/openai-node) | `4.29.2` | `4.31.0` |
| [@codemirror/lang-python](https://github.com/codemirror/lang-python) | `6.1.4` | `6.1.5` |
| [@codemirror/view](https://github.com/codemirror/view) | `6.26.0` | `6.26.1` |
| [@sentry/sveltekit](https://github.com/getsentry/sentry-javascript) | `7.108.0` | `7.109.0` |
| [reflect-metadata](https://github.com/rbuckton/reflect-metadata) | `0.2.1` | `0.2.2` |
| [tailwindcss](https://github.com/tailwindlabs/tailwindcss) | `3.4.2` | `3.4.3` |


Updates `openai` from 4.29.2 to 4.31.0
- [Release notes](https://github.com/openai/openai-node/releases)
- [Changelog](https://github.com/openai/openai-node/blob/master/CHANGELOG.md)
- [Commits](https://github.com/openai/openai-node/compare/v4.29.2...v4.31.0)

Updates `@codemirror/lang-python` from 6.1.4 to 6.1.5
- [Changelog](https://github.com/codemirror/lang-python/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/lang-python/compare/6.1.4...6.1.5)

Updates `@codemirror/view` from 6.26.0 to 6.26.1
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/view/compare/6.26.0...6.26.1)

Updates `@sentry/sveltekit` from 7.108.0 to 7.109.0
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/7.109.0/CHANGELOG.md)
- [Commits](https://github.com/getsentry/sentry-javascript/compare/7.108.0...7.109.0)

Updates `reflect-metadata` from 0.2.1 to 0.2.2
- [Release notes](https://github.com/rbuckton/reflect-metadata/releases)
- [Changelog](https://github.com/rbuckton/reflect-metadata/blob/main/tsconfig-release.json)
- [Commits](https://github.com/rbuckton/reflect-metadata/commits)

Updates `tailwindcss` from 3.4.2 to 3.4.3
- [Release notes](https://github.com/tailwindlabs/tailwindcss/releases)
- [Changelog](https://github.com/tailwindlabs/tailwindcss/blob/v3.4.3/CHANGELOG.md)
- [Commits](https://github.com/tailwindlabs/tailwindcss/compare/v3.4.2...v3.4.3)

---
updated-dependencies:
- dependency-name: openai
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm-updates
- dependency-name: "@codemirror/lang-python"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-updates
- dependency-name: "@codemirror/view"
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-updates
- dependency-name: "@sentry/sveltekit"
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm-updates
- dependency-name: reflect-metadata
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-updates
- dependency-name: tailwindcss
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm-updates
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-01 15:25:51 +00:00