Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d0e5d7077f |
No files matched your search
@@ -4,14 +4,14 @@
|
|||||||
<h3>Homarr</h3>
|
<h3>Homarr</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
**Thank you for your contribution. Please ensure that your pull request meets the following pull request:**
|
**Thank you for your contribution. Please ensure that your pull request meets the following requirements:**
|
||||||
|
|
||||||
- [ ] Builds without warnings or errors (`pnpm build`, autofix with `pnpm format:fix`)
|
- [ ] Relevant checks pass without warnings or errors
|
||||||
- [ ] Pull request targets `dev` branch
|
- [ ] Pull request targets the intended base branch (`dev` by default; `release/v2` for v2 release work)
|
||||||
- [ ] Commits follow the [conventional commits guideline](https://www.conventionalcommits.org/en/v1.0.0/)
|
- [ ] Commits follow the [conventional commits guideline](https://www.conventionalcommits.org/en/v1.0.0/)
|
||||||
- [ ] No shorthand variable names are used (eg. `x`, `y`, `i` or any abbrevation)
|
- [ ] No shorthand variable names are used (for example, `x`, `y`, `i`, or abbreviations)
|
||||||
- [ ] Documentation is up to date. Create a pull request [here](https://github.com/homarr-labs/documentation/).
|
- [ ] User-facing changes include matching documentation updates under `apps/docs`
|
||||||
- [ ] When using AI; No temp files are checked in, the code style follows the rest of the project
|
- [ ] When using AI, no temporary files are checked in and the code style follows the rest of the project
|
||||||
|
|
||||||
**When contributing a new integration or widget:**
|
**When contributing a new integration or widget:**
|
||||||
|
|
||||||
|
|||||||
@@ -30,9 +30,8 @@ needed to restore encrypted integration credentials.
|
|||||||
Select a Homarr backup ZIP. The browser previews entity counts, board names, and required database migrations before
|
Select a Homarr backup ZIP. The browser previews entity counts, board names, and required database migrations before
|
||||||
the archive is uploaded.
|
the archive is uploaded.
|
||||||
|
|
||||||
Restoring replaces the current SQLite database and cannot be undone. It also invalidates the current database session.
|
Restoring replaces the current SQLite database and cannot be undone. After a successful restore, the Next.js process
|
||||||
After a successful management restore, Homarr waits for the restarted server and sends the administrator to sign in
|
restarts and the page reloads when Homarr is ready.
|
||||||
again. The first-run onboarding restore keeps its existing board destination.
|
|
||||||
|
|
||||||
A backup can be restored on another Homarr instance. When its `SECRET_ENCRYPTION_KEY` differs, Homarr re-encrypts stored
|
A backup can be restored on another Homarr instance. When its `SECRET_ENCRYPTION_KEY` differs, Homarr re-encrypts stored
|
||||||
integration secrets for the target instance. Version metadata is used to apply compatible migrations.
|
integration secrets for the target instance. Version metadata is used to apply compatible migrations.
|
||||||
|
|||||||
@@ -204,12 +204,8 @@ export const DatabaseRestoreFlow = ({ variant = "card", onRestoreComplete }: Dat
|
|||||||
}
|
}
|
||||||
|
|
||||||
onRestoreComplete?.();
|
onRestoreComplete?.();
|
||||||
let destination: string | null = null;
|
const destination =
|
||||||
if (variant === "standalone" && homeBoardName) {
|
variant === "standalone" && homeBoardName ? `/boards/${encodeURIComponent(homeBoardName)}` : null;
|
||||||
destination = `/boards/${encodeURIComponent(homeBoardName)}`;
|
|
||||||
} else if (variant === "card") {
|
|
||||||
destination = "/auth/login";
|
|
||||||
}
|
|
||||||
startReadinessCheck(restartAfterMs, destination);
|
startReadinessCheck(restartAfterMs, destination);
|
||||||
}, [file, onRestoreComplete, startReadinessCheck, t, variant]);
|
}, [file, onRestoreComplete, startReadinessCheck, t, variant]);
|
||||||
|
|
||||||
@@ -321,7 +317,6 @@ export const DatabaseRestoreFlow = ({ variant = "card", onRestoreComplete }: Dat
|
|||||||
<RestoreProgressPanel
|
<RestoreProgressPanel
|
||||||
active
|
active
|
||||||
status={restoreStatus}
|
status={restoreStatus}
|
||||||
reloginRequired={variant === "card"}
|
|
||||||
onRetry={() => startReadinessCheck(0)}
|
onRetry={() => startReadinessCheck(0)}
|
||||||
onReload={() => window.location.reload()}
|
onReload={() => window.location.reload()}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -11,18 +11,11 @@ export type RestoreProgressStatus = "restoring" | "restarting" | "timedOut";
|
|||||||
interface RestoreProgressPanelProps {
|
interface RestoreProgressPanelProps {
|
||||||
active: boolean;
|
active: boolean;
|
||||||
status: RestoreProgressStatus;
|
status: RestoreProgressStatus;
|
||||||
reloginRequired?: boolean;
|
|
||||||
onRetry: () => void;
|
onRetry: () => void;
|
||||||
onReload: () => void;
|
onReload: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RestoreProgressPanel = ({
|
export const RestoreProgressPanel = ({ active, status, onRetry, onReload }: RestoreProgressPanelProps) => {
|
||||||
active,
|
|
||||||
status,
|
|
||||||
reloginRequired = false,
|
|
||||||
onRetry,
|
|
||||||
onReload,
|
|
||||||
}: RestoreProgressPanelProps) => {
|
|
||||||
const t = useI18n("management.page.tool.backup.restore");
|
const t = useI18n("management.page.tool.backup.restore");
|
||||||
const tCommon = useI18n("common");
|
const tCommon = useI18n("common");
|
||||||
const reduceMotion = useReducedMotion();
|
const reduceMotion = useReducedMotion();
|
||||||
@@ -70,12 +63,6 @@ export const RestoreProgressPanel = ({
|
|||||||
</div>
|
</div>
|
||||||
</Group>
|
</Group>
|
||||||
|
|
||||||
{reloginRequired && !isRestoring ? (
|
|
||||||
<Text size="sm" c="dimmed">
|
|
||||||
{t("progress.relogin")}
|
|
||||||
</Text>
|
|
||||||
) : null}
|
|
||||||
|
|
||||||
{isTimedOut ? (
|
{isTimedOut ? (
|
||||||
<Group>
|
<Group>
|
||||||
<Button variant="light" onClick={onRetry} leftSection={<IconRefresh size={16} />}>
|
<Button variant="light" onClick={onRetry} leftSection={<IconRefresh size={16} />}>
|
||||||
|
|||||||
@@ -6456,8 +6456,7 @@
|
|||||||
},
|
},
|
||||||
"progress": {
|
"progress": {
|
||||||
"title": "Restoring database...",
|
"title": "Restoring database...",
|
||||||
"restarting": "Restarting server",
|
"restarting": "Restarting server"
|
||||||
"relogin": "Restoring the database invalidated your current session. Homarr will send you to sign in when the server is ready."
|
|
||||||
},
|
},
|
||||||
"timeout": {
|
"timeout": {
|
||||||
"title": "Server did not come back online",
|
"title": "Server did not come back online",
|
||||||
|
|||||||
Reference in new issue
Block a user