Mattias Granlund
8c61d841c2
Make project metrics optional for GitHost
2024-07-14 14:45:22 +01:00
Mattias Granlund
5d757ab7fb
Misc improvements
...
- simplify metrics reporter now that github has been refactore
- shorten interface name from GitHostService to GitHost
- shorten various types and function names
2024-07-14 13:43:01 +01:00
Mattias Granlund
f7c684edf9
Fix octokit not available bug
2024-07-14 13:43:01 +01:00
Mattias Granlund
354af30550
Fix bug in error map
...
- unsafe destructuring is bad..
2024-07-14 13:43:01 +01:00
Mattias Granlund
032ad230ae
Keep in progress checks badge as is while reloading
...
- the flickering back and forth is annoying
2024-07-14 12:59:45 +01:00
Mattias Granlund
f197e8b288
Handle unhandled promise rejections
...
- users need this feedback in case something goes wrong
2024-07-14 12:55:21 +01:00
Mattias Granlund
1e68325185
Fix merge button by fetching from remotes after merge
2024-07-14 10:30:25 +01:00
Mattias Granlund
7d221519c0
Sleep a bit after merging pr before reloading
...
- github seems a bit eventually consistent
2024-07-14 10:10:14 +01:00
Mattias Granlund
129c948837
Disable pr button when no commits
...
- upgrade pr button to svelte5
2024-07-14 09:52:53 +01:00
Mattias Granlund
d834f64f34
Use s-curve backoff when refreshing github checks
2024-07-13 22:25:20 +01:00
Mattias Granlund
f9f79188ed
Fix: reload vbranches on sync click
...
- regressed last release with removal on emit() on fetch
2024-07-13 20:31:17 +01:00
Mattias Granlund
6addc060df
Fix pr related problem in branch header
...
- regressed in github refactor
2024-07-13 19:24:37 +01:00
Mattias Granlund
8d20674602
Move function into only file where it is referenced
2024-07-13 17:40:10 +01:00
Mattias Granlund
81288fa43f
Drop unnecssary documenation
2024-07-13 17:40:10 +01:00
Mattias Granlund
4d9cb0837f
Rename hostedGit -> gitHost in filenames and code
2024-07-13 17:40:10 +01:00
Mattias Granlund
ef7d27b7fb
rename hostedServices
-> gitHost
2024-07-13 17:40:10 +01:00
Mattias Granlund
0a681fad9a
Add a couple of tests for pr monitoring service
...
- stop polling when completed
- fetch once if no check runs or suites
- fix a few problems discovered while creating test
2024-07-13 17:40:10 +01:00
Mattias Granlund
768da9852d
Add proof-of-concept integration test for GitHub pr service
2024-07-13 17:40:10 +01:00
Mattias Granlund
d113cfa03f
Improve a couple of types
2024-07-13 17:40:10 +01:00
Mattias Granlund
15e4e549bf
Retry PR creation unless error handled
...
- make push rethrow so we don't attempt creating PR if it fails
2024-07-13 17:40:10 +01:00
Mattias Granlund
915bd5bd6b
Only create octokit client if access token is defined
2024-07-13 17:40:10 +01:00
Mattias Granlund
9d6bfb14e1
Migrate pull request preview +page.svelte to runes mode
2024-07-13 17:40:10 +01:00
Mattias Granlund
e676718e66
Remove unused getter / setter
2024-07-13 17:40:10 +01:00
Mattias Granlund
2ac54960bf
Remove merge
method from PrMonitor
2024-07-13 17:40:10 +01:00
Mattias Granlund
374240b196
Move creation of pr monitor into pr service
...
- pr monitor depends on pr service, easier to construct this way
2024-07-13 17:40:10 +01:00
Mattias Granlund
b1fa672d81
Refactor GitHub integration
2024-07-13 17:40:10 +01:00
Nico Domino
7c2243b2a0
fix: rm workflow_dispatch from docs GHA ( #4358 )
2024-07-13 13:27:25 +00:00
Nico Domino
d5497592ca
fix: cleanup markdown modification script in release GHA ( #4357 )
2024-07-13 12:23:00 +00:00
Nico Domino
b91d54623d
fix(gha): update placeholder markdown comment ( #4355 )
2024-07-13 09:33:27 +00:00
Nico Domino
d5053db0c3
feat: append release.mdx
when release is created here ( #4351 )
2024-07-12 17:45:40 +00:00
Pavel Laptev
c8bf338d5c
CSS: fix for long code strings in the mpdal window, update code sting style ( #4350 )
2024-07-12 16:03:16 +02:00
Sebastian Thiel
c769c08a0d
Merge pull request #4316 from Byron/multi-window-safety
...
multi-window safety
2024-07-12 15:38:20 +02:00
Sebastian Thiel
158d6b1ab7
Apply review comments of Mattias
2024-07-12 15:19:09 +02:00
Sebastian Thiel
eaa18da9d0
Make the ProjectSelector
multi-window aware
...
That way it will not allow to open a project if it's known to be open already.
2024-07-12 15:19:09 +02:00
Sebastian Thiel
38f800d877
assure the multi-window lock actually works
...
This includes the UI is responding to issues.
2024-07-12 15:19:09 +02:00
Sebastian Thiel
24b8bdaa86
Open new existing projects with Alt + click
in project popup.
...
This is intentionally non-obvious for now while it's new.
2024-07-12 15:19:09 +02:00
Sebastian Thiel
c310942b12
keep track of state per window
...
This allows multiple application windows to be opened and managed.
2024-07-12 15:19:09 +02:00
Sebastian Thiel
ccd6a6fe0d
let UI trigger necessary updates on addition and removal
2024-07-12 15:19:09 +02:00
Sebastian Thiel
00303704f4
add project-lock to generalized state
...
This means the current watcher also includes a file-lock for the current project.
Later this can be generalized to be per-window.
2024-07-12 15:19:09 +02:00
Sebastian Thiel
4d2a153aed
Use extractors for project-commands
...
That way, it's clearer what facilities or global state
are used when invoking a particular command.
2024-07-12 15:19:09 +02:00
Nico Domino
da6f8ce966
fix: minor modal style tweaks ( #4337 )
2024-07-12 14:06:36 +02:00
Pavel Laptev
2bf0044caa
Merge pull request #4343 from gitbutlerapp/-New-branch-button
...
Update: `New branch` button for the `Up to date` state
2024-07-12 13:09:56 +02:00
Pavel Laptev
9be03a42c4
Update: New branch
button for the Up to date
state
2024-07-12 13:06:29 +02:00
Pavel Laptev
c0b59777a9
Impovment: the new branch creation button for the "up to date" state ( #4341 )
2024-07-12 12:28:54 +02:00
Sebastian Thiel
c51be90aea
Merge pull request #4338 from gitbutlerapp/Fix-double-remote-fetch
...
Fix double remote fetch
2024-07-12 10:37:34 +02:00
Sebastian Thiel
5f4e0adb28
remove now unused default_target()
function
2024-07-12 10:30:56 +02:00
Mattias Granlund
58d3cd5aff
Fix double fetching of remote
...
- all remotes already fetched in existing iter/map
2024-07-12 00:38:46 +01:00
Mattias Granlund
f832e0b83a
Fix double loading of things on open
...
- fetch event is already in use by front end for reloading
2024-07-12 01:30:04 +03:00
Nico Domino
db28854983
fix: commit avatar loading improvement ( #4335 )
2024-07-11 17:46:04 +02:00
Caleb Owens
d0a257e745
Merge pull request #4334 from gitbutlerapp/fix-random-letters-at-bottom-of-page
...
Removed random letters
2024-07-11 15:32:20 +02:00