fix(onboarding): add error recovery for setupIntegrations failure
If setupIntegrations rejects, fall back to the select phase instead of leaving the user stuck on an infinite loading screen. Also fix OpenCollective bookmark icon to use dashboard-icons CDN SVG for consistency with other bookmark icons.
This commit is contained in:
2 files changed
+7
-3
No files matched your search
@@ -38,8 +38,12 @@ export const InitIntegrations = () => {
|
|||||||
|
|
||||||
const finishSetupAsync = async () => {
|
const finishSetupAsync = async () => {
|
||||||
setPhase("done");
|
setPhase("done");
|
||||||
await setupIntegrations();
|
try {
|
||||||
router.refresh();
|
await setupIntegrations();
|
||||||
|
router.refresh();
|
||||||
|
} catch {
|
||||||
|
setPhase("select");
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const advanceOrFinish = () => {
|
const advanceOrFinish = () => {
|
||||||
|
|||||||
@@ -96,6 +96,6 @@ export const defaultBookmarkApps = [
|
|||||||
{
|
{
|
||||||
name: "Support Homarr",
|
name: "Support Homarr",
|
||||||
href: "https://opencollective.com/homarr",
|
href: "https://opencollective.com/homarr",
|
||||||
iconUrl: "https://avatars.githubusercontent.com/u/13403593?v=4",
|
iconUrl: "https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons@master/svg/open-collective.svg",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
Reference in new issue
Block a user