Commit Graph

1650 Commits

Author SHA1 Message Date
Nikita Galaiko
a674fec718 fix warnings 2023-06-20 14:51:08 +02:00
Nikita Galaiko
ef40ffe35c remove deltas logic from vbranches 2023-06-20 14:51:08 +02:00
Scott Chacon
e59691d15f
CLI and APIs binary for simple virtual branch manipulation (#425)
Here we're squash-merging a branch that adds a new cli tool and some basic APIs for manipulating the data format of virtual branches as used by the frontend.

* simple cli for showing data, including vbranches
* can set and show the remote target default
* basic list, new and move in API for frontend

---------

Co-authored-by: Kiril Videlov <kiril@videlov.com>
Co-authored-by: Nikita Galaiko <nikita@galaiko.rocks>
2023-06-20 14:33:02 +02:00
Mattias Granlund
5b4fd4a463 Fix all eslint warnings 2023-06-20 12:13:05 +01:00
Kiril Videlov
a4f2d4604d hunk summaries are now fetched from the api with local storage cache based on hunk hash 2023-06-20 13:06:38 +02:00
Mattias Granlund
ade9bc6de0 Adding back two-way bindings
This will fix correctness issues in the drag & drop experience, but it
also reintroduces performance issues. Picking up a hunk will force
every component on the board to update, trigger all reactive variables.
2023-06-20 11:45:03 +01:00
Kiril Videlov
5090568e4f Undo changes to differ avoiding player regressions
This is no longer used by the vbranch board
2023-06-19 22:38:39 +02:00
Kiril Videlov
386aa130e4 hunk diff viewer specific for vbranches
simpler from the player differ since we dont need scrolling and
highlighting
2023-06-19 22:30:15 +02:00
Mattias Granlund
10e5094573 Misc UI related improvements
Basing some of the improvements on a screenshot from Ian, and committing
them together to keep things rolling.
2023-06-19 19:59:22 +01:00
Mattias Granlund
4fa1f66976 Make drag & drop behave even better 2023-06-19 16:46:09 +01:00
Mattias Granlund
43309e7849 Make differ only look at its own element 2023-06-19 16:46:09 +01:00
Kiril Videlov
6e527cd69e test for summarizing hunks from inside the app 2023-06-19 13:53:40 +02:00
Mattias Granlund
561011fff5 Initialise with system theme in Rust code 2023-06-19 12:19:08 +01:00
Mattias Granlund
09e61d52a3 First pass at creating light theme 2023-06-19 10:02:50 +01:00
Mattias Granlund
18ab115788 Add new color palettes
This diff also disables opacity utility generation. This means we get more
readable colors in the output CSS.
2023-06-19 10:02:50 +01:00
Mattias Granlund
68fd4d9832 Add a new theme selector 2023-06-19 10:02:50 +01:00
Kiril Videlov
60e3cfc360 file cards render partial diffs 2023-06-18 21:13:58 +02:00
Mattias Granlund
2b444de5a5 Remove hunk and file types from board dnd zone 2023-06-17 16:52:33 +01:00
Mattias Granlund
daf296c647 Create new branches through dedicated dropzone 2023-06-17 16:11:37 +01:00
Mattias Granlund
19eeadfd65 Don't squish the board 2023-06-17 16:11:37 +01:00
Mattias Granlund
6e5feaf4c8 Improve expansion toggle css 2023-06-17 16:11:37 +01:00
Mattias Granlund
c20e8f64f3 Remove animation from tray element 2023-06-17 16:11:37 +01:00
Nikita Galaiko
38fb0132ec update dependencies 2023-06-16 09:29:26 +02:00
Kiril Videlov
251b1f6acb rm height animation 2023-06-15 17:51:49 +02:00
Mattias Granlund
1e2e8b4cd7 Remove animations from drag & drop actions
They severely affect performance of the UI by blocking the main
thread with calls to getClientBoundingRect. It feels more important
for the user experience to to get shadow/placeholder elements
displayed correctly.
2023-06-15 17:02:57 +02:00
Nikita Galaiko
d0a83e97cf small events refactor 2023-06-15 16:20:31 +02:00
Nikita Galaiko
da76e26d7f flush/restore branches 2023-06-15 14:38:07 +02:00
Nikita Galaiko
4a18b2200e vbranches: move deltas distribution to handler 2023-06-15 09:14:52 +02:00
Kiril Videlov
97865a007c one more PR 2023-06-15 08:50:18 +02:00
Kiril Videlov
0979ee781d try summarizing hunks 2023-06-15 08:50:18 +02:00
Kiril Videlov
d48b67bc05 seed some more pr test data 2023-06-15 00:34:13 +02:00
Kiril Videlov
a0a9846279 drag and drop layout update 2023-06-15 00:34:13 +02:00
Mattias Granlund
219f1af61c Update dnd package to fix shadowing 2023-06-14 22:52:28 +01:00
Ian Donahue
2cb8eda7df
Merge pull request #441 from gitbutlerapp/ian/small-visual-tweak
Ian/small visual tweak
2023-06-14 19:33:53 +02:00
idonahue
0a523d7fc7 pnpm format 2023-06-14 19:18:16 +02:00
idonahue
b826efb63e Made the grouping colors better and closer to design 2023-06-14 19:16:22 +02:00
idonahue
72b4050f42 pnpm format 2023-06-14 18:33:28 +02:00
idonahue
9d8e10834b Small visual tweeks to look more like designs 2023-06-14 18:32:48 +02:00
Kiril Videlov
61a83f2386 zinc card 2023-06-14 17:05:09 +02:00
Mattias Granlund
7e7bb8aef4 Update tray on finalize event from board 2023-06-14 15:56:32 +01:00
Kiril Videlov
8e57ff7f47 visualize board elements a bit more clearly 2023-06-14 16:21:41 +02:00
Mattias Granlund
5e1a34b3cb Remove kind from DndItems 2023-06-14 14:33:10 +01:00
Kiril Videlov
0b394857ec remove commit group from the data hierarchy - its not needed 2023-06-14 14:51:32 +02:00
Mattias Granlund
d0c2707cae Simplify drag & drop
- use classes for hunks, files, etc
- add class-transformer dependency
- simplify helper functions for readable code
2023-06-14 12:50:31 +01:00
Kiril Videlov
45be9746a4 remove some unused imports 2023-06-14 12:12:43 +02:00
Kiril Videlov
d9ee6be483 dynamic module loading so that app can be built 2023-06-14 12:12:43 +02:00
Kiril Videlov
4bc99dc300 fix overflow issues 2023-06-14 12:12:43 +02:00
Kiril Videlov
46def32aaf more diverse test data 2023-06-14 12:12:43 +02:00
Kiril Videlov
f914428cc8 use testdata from file 2023-06-14 12:12:43 +02:00
Kiril Videlov
8ec1370043 setup access to branch testdata resource json file 2023-06-14 12:12:43 +02:00