Commit Graph

6031 Commits

Author SHA1 Message Date
Pavel Laptev
973fb5bc5b
Merge pull request #3180 from gitbutlerapp/Refactor-images-and-layouts
Refactor: images and layouts
2024-03-18 01:36:34 +01:00
Pavel Laptev
2587ab5ee7 styles: empty board 2024-03-18 01:33:33 +01:00
Pavel Laptev
a39029531e refactor: remove unused ImgThemed component 2024-03-18 01:32:07 +01:00
Pavel Laptev
dad4f843f4 refactor: empty board image and layout update 2024-03-18 01:32:07 +01:00
Pavel Laptev
dd29f558fd refactor: DecorativeSplitView, imgs, welcome view
- updated `DecorativeSplitView` in order to get raw SVG
- updated `DecorativeSplitView` layout
- replaced raster WebP images with SVG
- updated icons for the Welcome screen
2024-03-18 01:32:07 +01:00
Pavel Laptev
a58623197f fix: empty state didn't showed if filter branches 2024-03-18 01:32:07 +01:00
Pavel Laptev
5d2a5736a9 refactor: replace empty state images with SVG 2024-03-18 01:32:07 +01:00
Pavel Laptev
c11d19e1cd refactor: Remove unused file 2024-03-18 01:32:07 +01:00
Pavel Laptev
b02dacb539 refactor: "create new branch" images updated with svg files
Svelte components with SVG inside were replaced with `@html` rule in irder to paste SVG files directly without convert them into Svelte files.
2024-03-18 01:32:07 +01:00
Pavel Laptev
e009ccb667 refactor: support image replaced with SVG 2024-03-18 01:32:07 +01:00
Pavel Laptev
45aa3a9d0a refacor: old logo asset removed 2024-03-18 01:32:07 +01:00
Pavel Laptev
6f70d6eb69 style: width changed for some Modal
for modals with less content width changed to `small`
2024-03-18 01:32:07 +01:00
Pavel Laptev
eb6c70a12d
Merge pull request #3181 from gitbutlerapp/update-floating-button-size-2
fix(ui): Change size of update button to medium
2024-03-18 01:31:58 +01:00
Pavel Laptev
e4839a6538 fix(ui): Change size of update button to medium 2024-03-18 01:27:48 +01:00
Pavel Laptev
351a672183 refactor: remove unused ImgThemed component 2024-03-18 01:15:17 +01:00
Pavel Laptev
c0219ab2e5 refactor: empty board image and layout update 2024-03-18 01:12:26 +01:00
Pavel Laptev
693e2e9840 refactor: DecorativeSplitView, imgs, welcome view
- updated `DecorativeSplitView` in order to get raw SVG
- updated `DecorativeSplitView` layout
- replaced raster WebP images with SVG
- updated icons for the Welcome screen
2024-03-18 00:34:22 +01:00
Pavel Laptev
d74fc4a227 fix: empty state didn't showed if filter branches 2024-03-17 22:50:16 +01:00
Pavel Laptev
1817879788 refactor: replace empty state images with SVG 2024-03-17 18:55:55 +01:00
Pavel Laptev
12309e0c9e refactor: Remove unused file 2024-03-17 18:03:05 +01:00
Pavel Laptev
99ba7d9e37 refactor: "create new branch" images updated with svg files
Svelte components with SVG inside were replaced with `@html` rule in irder to paste SVG files directly without convert them into Svelte files.
2024-03-17 17:59:01 +01:00
Pavel Laptev
bc9e38b30e refactor: support image replaced with SVG 2024-03-17 17:55:34 +01:00
Pavel Laptev
5b8f7918e7 refacor: old logo asset removed 2024-03-17 17:12:53 +01:00
Pavel Laptev
28e6680db2 style: width changed for some Modal
for modals with less content width changed to `small`
2024-03-17 03:21:09 +01:00
Pavel Laptev
69a5eaf8a5
Merge pull request #3177 from gitbutlerapp/Design-tokens-updated
Design tokens updates
2024-03-17 03:15:44 +01:00
Pavel Laptev
5632d8ac2b Design tokens updates
- Neutral colors updated
- `Space` renamed to `size`
- `size-btn` renamed to `size-control`
- Sizes in PX automatically generated to REM
- Design tokens file now fully generated without manual editing
- Moved dialog styles background to the `main.css` file
2024-03-17 03:12:07 +01:00
Kiril Videlov
d3e3e21a13 refactor: introduces a flat-file state for virtual branches 2024-03-16 21:23:12 +01:00
Mattias Granlund
4f2dfca322 Clean up variable assigment
- just making the code more readable
2024-03-16 15:48:41 +01:00
Mattias Granlund
e49bf7a4ef Fix broken project switching
- related to `observableToStore` functionality
2024-03-16 14:40:51 +01:00
Mattias Granlund
fee036fc7d Bug fix new base branch context store
- imported component instead of type
2024-03-16 13:48:29 +01:00
Mattias Granlund
52df5e5ec8 Put base branch into context as well 2024-03-16 13:19:47 +01:00
Mattias Granlund
09d20e8d5c Get BranchService with getContextByClass 2024-03-16 13:19:47 +01:00
Mattias Granlund
0084929959 Get BranchService with getContextByClass 2024-03-16 12:46:44 +01:00
Mattias Granlund
2bad7efa26 Get BranchController with getContextByClass 2024-03-16 12:39:06 +01:00
Mattias Granlund
f1987884d5 Get BranchController with getContextByClass
- elimnates prop drilling
- more of these commits to come
2024-03-16 12:30:30 +01:00
Mattias Granlund
c2d2147194 Get GitHubService with getContextByClass everywhere
- remvoes the need for prop drilling
2024-03-16 11:58:11 +01:00
Mattias Granlund
374fc4c869 Get UserService with getContextByClass everywhere
- remvoes the need for prop drilling
2024-03-16 11:58:11 +01:00
Mattias Granlund
dfe6886475 feat: Added function to convert observable to Svelte store. 2024-03-16 11:58:11 +01:00
Mattias Granlund
cb85baafa9 Move first service from prop drilling to Svelte context
- adds custom `getContext` to avoid extra typing when using classes as key
- project service no longer passed through component hierarchy
- switching projects require recreating components (already the case)
2024-03-16 10:53:36 +01:00
Mattias Granlund
035e2fbbcf Fix pr card title margin to prevent overlap with refresh button 2024-03-16 10:48:50 +01:00
Mattias Granlund
647b49e45e Use check suites to mitigate slow checks GitHub API
If we get `total_count == 0` for checks we load check suites to see if `total_count`
was > 0 on the last run as well. If so we retry until the API response becomes
eventually consistent.
2024-03-16 10:30:57 +01:00
Mattias Granlund
f7fdc260df Split out time ago store from component
- this way we can use it in more places
2024-03-16 10:24:30 +01:00
Mattias Granlund
6b74b5302b Make tooltip update if input updates
- helpful for tooltips that use input from timeAgo.ts
2024-03-16 09:52:18 +01:00
Mattias Granlund
bca71dce6d Small fixes to ResizeObserver
- disconnect takes no argument and unobserves everything
- prevents accidentally unobserving the wrong element
2024-03-16 09:52:18 +01:00
Mattias Granlund
717186a3e4 Small improvement to commit dialog data binding 2024-03-16 09:52:18 +01:00
Mattias Granlund
1475f06958 Miscellaneous fixes
- some things I found while working
2024-03-16 01:55:53 +01:00
Pavel Laptev
0483b388bc
Merge pull request #3161 from gitbutlerapp/update-button-size-design-token
style: Update button size design token
2024-03-16 01:14:06 +01:00
Pavel Laptev
39434bede4 style: Update button size design token 2024-03-16 01:12:09 +01:00
Mattias Granlund
8a83e01ce0 Fix dev problem when hot reloading
- must check if element is still connected before manipulating element
2024-03-16 00:22:18 +01:00
Mattias Granlund
5d927abfcc Simplify GitHub service a little
- this branch will be force pushed again
2024-03-15 23:27:52 +01:00