Commit Graph

5647 Commits

Author SHA1 Message Date
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
Pavel Laptev
229b9b9bc9
Merge pull request #3134 from gitbutlerapp/Commit-box-two-fields
Add summary and description fields. Show tooltip for long summary messages
2024-03-15 15:15:29 +01:00
Pavel Laptev
180d0eebd5 Commit box: race condition fixeed 2024-03-15 15:13:45 +01:00
Pavel Laptev
546e60c433 Merged origin/master into Commit box two fields 2024-03-15 14:32:48 +01:00
Scott Chacon
1cdf1264f0
Merge pull request #3150 from gitbutlerapp/More-feedback-context
send more context with feedback (OS, browser, index size)
2024-03-15 06:16:45 +01:00
Scott Chacon
5afa391dfe wrong lint order 2024-03-15 05:45:34 +01:00
Scott Chacon
7fc51b775e Add GitButler app version 2024-03-15 05:45:34 +01:00
Scott Chacon
cec15bcdd0 send more context with feedback (OS, browser, index size) 2024-03-15 05:45:34 +01:00
Josh Junon
af811e0481 unconditionally check all skipped jobs 2024-03-14 20:31:21 +01:00
Josh Junon
6c20463bf5 remove extraneous comment 2024-03-14 20:31:21 +01:00
Kiril Videlov
e0b0b85ad8 refactor: Update email input placeholder text and add required attribute to improve user experience 2024-03-14 20:31:21 +01:00
Josh Junon
61db260ac8 elide lifetimes 2024-03-14 20:31:21 +01:00
Pavel Laptev
ddee80788b style: add white-space: nowrap to label class
In order to prevent line breaks on the Tag component
2024-03-14 20:31:21 +01:00
Pavel Laptev
558340d17b refactor: Remove unused code 2024-03-14 20:31:21 +01:00
Josh Junon
4ab5ff2b22 refactor the rest of repository.rs path handling 2024-03-14 20:31:21 +01:00
Josh Junon
3d475b7a3c make the alternates path writing more robust 2024-03-14 20:31:21 +01:00
Josh Junon
c2b4087e93 remove unused import 2024-03-14 20:31:21 +01:00
Mattias Granlund
82650a5500 Switch to new style of upstream commit list
- this work was left uncompleted a month back
2024-03-14 20:31:21 +01:00
Olena
4d6b1daafb Integrate alls-green in rust-check job to improve status checks
This patch integrates alls-green, that checks whether all dependency jobs
have passed successfully. This change also simplifies the CI setup by
requiring only the rust-check job for status checks.

Resolves #2848
2024-03-14 20:31:21 +01:00
Josh Junon
ef9239b712
Merge pull request #3154 from gitbutlerapp/fix-all-green
unconditionally check all skipped jobs
2024-03-14 19:47:26 +01:00
Josh Junon
0468a6f48c
unconditionally check all skipped jobs 2024-03-14 19:46:46 +01:00
Josh Junon
d8640a90df
Merge pull request #3151 from gitbutlerapp/remove-extraneous-comment
remove extraneous comment
2024-03-14 16:48:26 +01:00
Josh Junon
b108708c1a remove extraneous comment 2024-03-14 16:47:47 +01:00
Josh Junon
c6398aa235
Merge pull request #3089 from OlenaYefymenko/2848-ci-bug-check-rust
Integrate alls-green in rust-check job to improve status checks
2024-03-14 16:47:20 +01:00
Mattias Granlund
263ef78ed6 Refactor a couple of things for clarity 2024-03-14 14:29:06 +01:00
Josh Junon
f6941c3cb0
Merge pull request #3145 from gitbutlerapp/elide-lifetimes
elide lifetimes
2024-03-14 12:14:42 +01:00
Kiril Videlov
e6acfe9afd refactor: Update email input placeholder text and add required attribute to improve user experience 2024-03-14 12:04:13 +01:00
Josh Junon
6ce77c8a06 elide lifetimes 2024-03-14 11:54:13 +01:00
Pavel Laptev
7faefd849f
Merge pull request #3144 from gitbutlerapp/removed-unused-UpstreamCommits-card
Remove unused code and Tag component CSS fix
2024-03-14 11:51:08 +01:00
Pavel Laptev
15d2238d82 style: add white-space: nowrap to label class
In order to prevent line breaks on the Tag component
2024-03-14 11:49:00 +01:00
Pavel Laptev
3203acf971 refactor: Remove unused code 2024-03-14 11:42:49 +01:00
Josh Junon
ef4a075497
Merge pull request #3143 from gitbutlerapp/more-path-refactorings
refactor the rest of repository.rs path handling
2024-03-14 11:38:34 +01:00
Josh Junon
c5f8571e53 refactor the rest of repository.rs path handling 2024-03-14 11:30:24 +01:00
Josh Junon
5d6491f482
Merge pull request #3142 from gitbutlerapp/robust-alternates-writing
make the alternates path writing more robust
2024-03-14 10:47:58 +01:00
Josh Junon
86e02b53c3
Merge pull request #3141 from gitbutlerapp/remove-unused-imports
remove unused import
2024-03-14 10:40:51 +01:00