You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/09/10 03:15:37 UTC
(maka) branch feat/about-page-update-action created (now 0f43ad41cf)
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a change to branch feat/about-page-update-action
in repository https://gitbox.apache.org/repos/asf/maka.git
at 0f43ad41cf feat(desktop): lead About with the wordmark and offer the restart there
This branch includes the following new commits:
new 0f43ad41cf feat(desktop): lead About with the wordmark and offer the restart there
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
(maka) 01/01: feat(desktop): lead About with the wordmark and offer the restart there
Posted by as...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch feat/about-page-update-action
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 0f43ad41cf979911319bc2e04a97b6b29c7453c9
Author: AstroHan <le...@outlook.com>
AuthorDate: Thu Sep 10 11:15:29 2026 +0800
feat(desktop): lead About with the wordmark and offer the restart there
设置 → 关于 had two problems after #4857. The page read as bare: a
version row, an update row and three support rows on a surface that
never said what it was about. And a downloaded update told the user to
go back to the bottom of the sidebar to restart, when they were already
on the one page that exists for exactly that.
The lead is now the wordmark in the brand colour over the build, its
channel sentence and the provenance line, so the page is about Maka
before any row. The update row moves under its own 更新 group and, once
an update is downloaded, offers 重启安装 itself. The button calls the
same `openUpdate` the sidebar footer's restart calls, published through
the About projection as `installDownloadedUpdate`, so the two entries
share the active-tasks confirmation and the failure toasts and cannot
drift. The hint copy that pointed at the sidebar leaves all three
catalogs.
Generated-by: Claude Code
---
.../src/main/__tests__/about-update-status.test.ts | 10 +-
.../src/renderer/features/app-update/README.md | 3 +-
.../app-update/ui/app-update-projection-context.ts | 2 +
.../features/app-update/ui/app-update-provider.tsx | 9 +-
.../renderer/locales/settings-preferences-copy.ts | 13 +-
.../src/renderer/settings/about-settings-page.tsx | 175 +++++++++++----------
.../src/renderer/settings/about-update-status.ts | 21 +--
.../stories/settings/settings-pages.stories.tsx | 31 +++-
docs/astryx-surface-file-inventory.md | 2 +-
9 files changed, 153 insertions(+), 113 deletions(-)
diff --git a/apps/desktop/src/main/__tests__/about-update-status.test.ts b/apps/desktop/src/main/__tests__/about-update-status.test.ts
index b54b12f22d..fc9994954f 100644
--- a/apps/desktop/src/main/__tests__/about-update-status.test.ts
+++ b/apps/desktop/src/main/__tests__/about-update-status.test.ts
@@ -61,7 +61,7 @@ test('the row only offers a check where the service would honour one', () => {
);
// The service returns the current status untouched for these, so a check
// button here was a control that did nothing when pressed.
- for (const state of ['available', 'verifying', 'downloaded', 'installing'] as const) {
+ for (const state of ['available', 'verifying', 'installing'] as const) {
assert.equal(
aboutUpdateRow({ state, currentVersion: current, latestVersion: latest }, copy).action,
'none',
@@ -86,16 +86,16 @@ test('the nightly steady states each read as themselves', () => {
action: 'none',
});
- // The restart lives in the sidebar footer; the row says so instead of
- // growing a second install handshake.
+ // A downloaded update offers the restart right here, not only in the
+ // sidebar footer.
const downloaded = aboutUpdateRow(
{ state: 'downloaded', currentVersion: current, latestVersion: latest },
copy,
);
assert.deepEqual(downloaded, {
label: 'v0.2.0-dev.12.20260901 已下载',
- description: '在侧栏底部重启即可安装。',
- action: 'none',
+ description: null,
+ action: 'install',
});
});
diff --git a/apps/desktop/src/renderer/features/app-update/README.md b/apps/desktop/src/renderer/features/app-update/README.md
index 626fda6924..494f5caa99 100644
--- a/apps/desktop/src/renderer/features/app-update/README.md
+++ b/apps/desktop/src/renderer/features/app-update/README.md
@@ -39,7 +39,8 @@ can overwrite newer status.
The provider publishes two independent projections:
-- About receives full status plus the guarded manual-check command.
+- About receives full status, the guarded manual-check command, and the same
+ install action the sidebar offers once an update is downloaded.
- The sidebar footer receives only `downloaded` and versioned `error`
reminders plus the install/retry command.
diff --git a/apps/desktop/src/renderer/features/app-update/ui/app-update-projection-context.ts b/apps/desktop/src/renderer/features/app-update/ui/app-update-projection-context.ts
index ca39a24051..dca15a79d5 100644
--- a/apps/desktop/src/renderer/features/app-update/ui/app-update-projection-context.ts
+++ b/apps/desktop/src/renderer/features/app-update/ui/app-update-projection-context.ts
@@ -24,6 +24,8 @@ export interface AppUpdateAboutProjection {
readonly status: AppUpdateStatus | null;
readonly checking: boolean;
readonly checkForUpdates: () => Promise<AppUpdateStatus>;
+ /** The sidebar footer's restart, offered here too; undefined until an update is downloaded. */
+ readonly installDownloadedUpdate: (() => void) | undefined;
}
const AppUpdateAboutProjectionContext = createContext<AppUpdateAboutProjection | null>(null);
diff --git a/apps/desktop/src/renderer/features/app-update/ui/app-update-provider.tsx b/apps/desktop/src/renderer/features/app-update/ui/app-update-provider.tsx
index a177e0751a..f16b2e1982 100644
--- a/apps/desktop/src/renderer/features/app-update/ui/app-update-provider.tsx
+++ b/apps/desktop/src/renderer/features/app-update/ui/app-update-provider.tsx
@@ -130,13 +130,20 @@ export function AppUpdateProvider(props: { readonly children?: ReactNode }) {
() => ({ reminder, onOpenUpdate: reminder ? openUpdate : undefined }),
[openUpdate, reminder],
);
+ const installDownloadedUpdate = reminder?.state === 'downloaded' ? openUpdate : undefined;
const about = useMemo<AppUpdateAboutProjection>(
() => ({
status: controller.status,
checking: controller.checking,
checkForUpdates: controller.commands.checkForUpdates,
+ installDownloadedUpdate,
}),
- [controller.checking, controller.commands.checkForUpdates, controller.status],
+ [
+ controller.checking,
+ controller.commands.checkForUpdates,
+ controller.status,
+ installDownloadedUpdate,
+ ],
);
return (
diff --git a/apps/desktop/src/renderer/locales/settings-preferences-copy.ts b/apps/desktop/src/renderer/locales/settings-preferences-copy.ts
index a065bc83d3..db7cd2d319 100644
--- a/apps/desktop/src/renderer/locales/settings-preferences-copy.ts
+++ b/apps/desktop/src/renderer/locales/settings-preferences-copy.ts
@@ -244,9 +244,9 @@ export type SettingsPreferencesCopy = {
updateAvailable: (version: string) => string;
updateDownloading: (version: string, percent: number) => string;
updateVerifying: (version: string) => string;
+ updateTitle: string;
updateDownloaded: (version: string) => string;
- /** Where the restart lives: the sidebar footer owns that handshake. */
- updateDownloadedHint: string;
+ installUpdate: string;
updateInstalling: (version: string) => string;
updateFailed: Record<'check' | 'download' | 'install', string>;
/** Provenance in one line: project, foundation status, licence. */
@@ -358,7 +358,8 @@ const SETTINGS_PREFERENCES_COPY_BY_LOCALE = {
updateDownloading: (version, percent) => `正在下载 v${version}(${percent}%)`,
updateVerifying: (version) => `正在验证 v${version} 的发布来源`,
updateDownloaded: (version) => `v${version} 已下载`,
- updateDownloadedHint: '在侧栏底部重启即可安装。',
+ updateTitle: '更新',
+ installUpdate: '重启安装',
updateInstalling: (version) => `正在安装 v${version}`,
updateFailed: { check: '检查更新失败', download: '下载更新失败', install: '安装更新失败' },
openSourceSummary: 'Apache Maka (incubating) · Apache License 2.0',
@@ -449,7 +450,8 @@ const SETTINGS_PREFERENCES_COPY_BY_LOCALE = {
updateDownloading: (version, percent) => `正在下載 v${version}(${percent}%)`,
updateVerifying: (version) => `正在驗證 v${version} 的發佈來源`,
updateDownloaded: (version) => `v${version} 已下載`,
- updateDownloadedHint: '在側欄底部重啟即可安裝。',
+ updateTitle: '更新',
+ installUpdate: '重新啟動安裝',
updateInstalling: (version) => `正在安裝 v${version}`,
updateFailed: { check: '檢查更新失敗', download: '下載更新失敗', install: '安裝更新失敗' },
openSourceSummary: 'Apache Maka (incubating) · Apache License 2.0',
@@ -511,7 +513,8 @@ const SETTINGS_PREFERENCES_COPY_BY_LOCALE = {
updateDownloading: (version, percent) => `Downloading v${version} (${percent}%)`,
updateVerifying: (version) => `Verifying the release provenance for v${version}`,
updateDownloaded: (version) => `v${version} is ready to install`,
- updateDownloadedHint: 'Restart from the bottom of the sidebar to install it.',
+ updateTitle: 'Updates',
+ installUpdate: 'Restart to install',
updateInstalling: (version) => `Installing v${version}`,
updateFailed: { check: 'Could not check for updates', download: 'Could not download the update', install: 'Could not install the update' },
openSourceSummary: 'Apache Maka (incubating) · Apache License 2.0',
diff --git a/apps/desktop/src/renderer/settings/about-settings-page.tsx b/apps/desktop/src/renderer/settings/about-settings-page.tsx
index 6ef840c887..e78fe87647 100644
--- a/apps/desktop/src/renderer/settings/about-settings-page.tsx
+++ b/apps/desktop/src/renderer/settings/about-settings-page.tsx
@@ -18,8 +18,16 @@
*/
import { useEffect, useState, type ReactNode, type RefObject } from 'react';
-import { Link, Text } from '@astryxdesign/core';
-import { Banner, Button, useMountedRef, useToast, useUiLocale, type ToastApi } from '@maka/ui';
+import { Heading, Link, Text, VStack } from '@astryxdesign/core';
+import {
+ Banner,
+ Button,
+ MakaWordmark,
+ useMountedRef,
+ useToast,
+ useUiLocale,
+ type ToastApi,
+} from '@maka/ui';
import {
AppUpdateAboutProjectionConsumer,
type AppUpdateAboutProjection,
@@ -42,24 +50,23 @@ const ISSUE_TRACKER_URL = `${REPOSITORY_URL}/issues`;
const RELEASES_URL = `${REPOSITORY_URL}/releases`;
/**
- * The page is rows of one shape — label, one quiet line, one control at the
- * end — because that is the Astryx settings idiom (the CLI's settings-sidebar
- * template), and because every second vocabulary on this page (a keycap, a
- * token, secondary buttons, a bulleted list) was a second thing to read on a
- * page whose content is four facts and three actions.
+ * The page is an identity lead over rows of one shape — label, one quiet line,
+ * one control at the end — the Astryx settings idiom (the CLI's
+ * settings-sidebar template).
*
- * Two control faces remain, and that split is Astryx's own rule, not ours:
- * `Button` "is for actions like saving, deleting, or submitting"; `Link` is
- * for "navigating between pages or to external URLs" and its docs say not to
- * use it "for actions that do not navigate". So 检查更新, 复制 and 查看 are
- * buttons (secondary or ghost "based on emphasis"), and the two places that
- * leave the app are links. The link takes the button's inline inset so both
- * faces end on one text edge.
+ * Two control faces, and that split is Astryx's own rule, not ours: `Button`
+ * "is for actions like saving, deleting, or submitting"; `Link` is for
+ * "navigating between pages or to external URLs" and its docs say not to use
+ * it "for actions that do not navigate". So 检查更新, 重启安装, 复制 and 查看
+ * are buttons, and the places that leave the app are links. The row-end link
+ * takes the button's inline inset so both faces end on one text edge.
*/
/* The ghost `sm` button pads its label by one spacing step; without the same
inset the link's text sits 12px further right than the buttons' text. */
const linkInRowEnd = { paddingInline: 'var(--spacing-3)' } as const;
+/* Same brand tint the onboarding and empty-chat marks wear. */
+const wordmarkStyle = { color: 'var(--maka-brand)' } as const;
type AboutCopy = ReturnType<typeof getSettingsPreferencesCopy>['about'];
/**
@@ -98,25 +105,31 @@ function AboutUpdateStatusRow(props: {
}
}
- return (
- <SettingsRow
- label={row.label}
- description={row.description ?? undefined}
- end={row.action === 'none' ? undefined : (
- /* Secondary, not primary: the page has no task to complete, and the
- one action the update flow cannot do without (the restart) lives in
- the sidebar reminder. Not ghost either: unlike 复制 and 查看 below,
- this changes the updater's state. */
- <Button
- variant="secondary"
- size="sm"
- isLoading={update.checking || row.action === 'checking'}
- onClick={() => void checkForUpdates()}
- label={copy.checkForUpdates}
- />
- )}
- />
- );
+ let end: ReactNode;
+ if (row.action === 'install' && update.installDownloadedUpdate) {
+ /* The same handler the sidebar footer's restart button calls, so the two
+ entries cannot drift in what they confirm or how they fail. */
+ end = (
+ <Button
+ variant="primary"
+ size="sm"
+ onClick={update.installDownloadedUpdate}
+ label={copy.installUpdate}
+ />
+ );
+ } else if (row.action === 'check' || row.action === 'checking') {
+ end = (
+ <Button
+ variant="secondary"
+ size="sm"
+ isLoading={update.checking || row.action === 'checking'}
+ onClick={() => void checkForUpdates()}
+ label={copy.checkForUpdates}
+ />
+ );
+ }
+
+ return <SettingsRow label={row.label} description={row.description ?? undefined} end={end} />;
}
export function AboutSettingsPage(props: { onOpenKeyboardHelp?(): void }) {
@@ -171,40 +184,59 @@ export function AboutSettingsPage(props: { onOpenKeyboardHelp?(): void }) {
}
}
+ const provenance = (
+ <Text type="supporting" color="secondary">
+ {copy.openSourceSummary}
+ {' · '}
+ <Link href={REPOSITORY_URL} target="_blank" rel="noreferrer noopener" type="inherit">
+ {copy.sourceCode}
+ </Link>
+ {' · '}
+ <Link href={RELEASES_URL} target="_blank" rel="noreferrer noopener" type="inherit">
+ {copy.releaseNotes}
+ </Link>
+ </Text>
+ );
+
let identity: ReactNode;
if (!info && !infoError) {
identity = (
- <SettingsSection variant="bare">
- <SettingsSkeletonStack
- label={copy.loading}
- lines={[
- { width: '38%', size: 'lg' },
- { width: '70%' },
- { width: '52%' },
- ]}
- />
- </SettingsSection>
+ <SettingsSkeletonStack
+ label={copy.loading}
+ lines={[
+ { width: '38%', size: 'lg' },
+ { width: '70%' },
+ { width: '52%' },
+ ]}
+ />
);
} else if (!info) {
- identity = (
- <SettingsSection variant="bare">
- <Banner status="info" role="alert" title={copy.unavailable} description={infoError} />
- </SettingsSection>
- );
+ identity = <Banner status="info" role="alert" title={copy.unavailable} description={infoError} />;
} else {
identity = (
- /* The two facts a user opens this page for, as the unlabeled lead group:
- which build this is, and whether it is current. Unlabeled because the
- page title already says 关于.
+ <VStack gap={1}>
+ <Heading level={3}>{`Maka v${info.appVersion}`}</Heading>
+ <Text type="supporting" color="secondary">{aboutChannelSummary(info, copy)}</Text>
+ </VStack>
+ );
+ }
- A dev checkout follows no feed, so it gets no update row at all: its
- channel line already says it does not update. Everywhere else the row
- offers 检查更新 only where the service would honour one; a downloaded
- update says where the restart is (the sidebar footer owns that
- handshake) rather than growing a second one here. */
- <SettingsSection>
- <SettingsRow label={`Maka v${info.appVersion}`} description={aboutChannelSummary(info, copy)} />
- {info.buildMode === 'dev' ? null : (
+ return (
+ <SettingsPage>
+ {/* The lead is the wordmark over the build and its provenance: what the
+ page is about, before any row. Unlabeled because the page title
+ already says 关于. */}
+ <SettingsSection variant="bare">
+ <VStack gap={4}>
+ <MakaWordmark width={128} style={wordmarkStyle} />
+ {identity}
+ {provenance}
+ </VStack>
+ </SettingsSection>
+ {/* A dev checkout follows no feed, so it gets no update group at all: its
+ channel line already says it does not update. */}
+ {info && info.buildMode !== 'dev' ? (
+ <SettingsSection title={copy.updateTitle}>
<AppUpdateAboutProjectionConsumer>
{(update) => (
<AboutUpdateStatusRow
@@ -216,14 +248,8 @@ export function AboutSettingsPage(props: { onOpenKeyboardHelp?(): void }) {
/>
)}
</AppUpdateAboutProjectionConsumer>
- )}
- </SettingsSection>
- );
- }
-
- return (
- <SettingsPage>
- {identity}
+ </SettingsSection>
+ ) : null}
{/* Support lives OUTSIDE the info conditional on purpose: copying
diagnostics must not depend on `app.info` succeeding — that is the
very moment a user needs it. The keyboard sheet used to be reachable
@@ -280,21 +306,6 @@ export function AboutSettingsPage(props: { onOpenKeyboardHelp?(): void }) {
/>
) : null}
</SettingsSection>
- {/* Provenance is one quiet line, not a group: nothing here is a setting
- or an action the user came for. */}
- <SettingsSection variant="bare">
- <Text type="supporting" color="secondary">
- {copy.openSourceSummary}
- {' · '}
- <Link href={REPOSITORY_URL} target="_blank" rel="noreferrer noopener" type="inherit">
- {copy.sourceCode}
- </Link>
- {' · '}
- <Link href={RELEASES_URL} target="_blank" rel="noreferrer noopener" type="inherit">
- {copy.releaseNotes}
- </Link>
- </Text>
- </SettingsSection>
</SettingsPage>
);
}
diff --git a/apps/desktop/src/renderer/settings/about-update-status.ts b/apps/desktop/src/renderer/settings/about-update-status.ts
index 4d7802f354..d2f5ae4cc1 100644
--- a/apps/desktop/src/renderer/settings/about-update-status.ts
+++ b/apps/desktop/src/renderer/settings/about-update-status.ts
@@ -46,11 +46,11 @@ export interface AboutUpdateRow {
/** Where to act or why it failed; null when the label says it all. */
readonly description: string | null;
/**
- * Whether the row offers 检查更新: `check` resting, `checking` while one runs,
- * `none` while the updater is working on its own or waiting for the restart
- * that the sidebar footer offers.
+ * The row's control: 检查更新 (`check` resting, `checking` while one runs),
+ * the restart once an update is downloaded (`install`), or nothing while the
+ * updater is working on its own.
*/
- readonly action: 'check' | 'checking' | 'none';
+ readonly action: 'check' | 'checking' | 'install' | 'none';
}
/**
@@ -59,10 +59,9 @@ export interface AboutUpdateRow {
* The control follows the state instead of always reading 检查更新: the service
* refuses a check while a download is in flight or an update sits downloaded
* (app-update-service.ts), so a check button in those states was a control that
- * did nothing when pressed — which is exactly what a nightly user, whose steady
- * state is `downloaded`, met every time. A failed download is re-fetched by the
- * same check (the updater downloads on its own once it sees a release), so the
- * page needs no second retry control next to the sidebar's.
+ * did nothing when pressed. A failed download is re-fetched by the same check
+ * (the updater downloads on its own once it sees a release), so the page needs
+ * no second retry control next to the sidebar's.
*/
export function aboutUpdateRow(
status: AppUpdateStatus | null,
@@ -88,11 +87,7 @@ export function aboutUpdateRow(
case 'verifying':
return { label: copy.updateVerifying(status.latestVersion), description: null, action: 'none' };
case 'downloaded':
- return {
- label: copy.updateDownloaded(status.latestVersion),
- description: copy.updateDownloadedHint,
- action: 'none',
- };
+ return { label: copy.updateDownloaded(status.latestVersion), description: null, action: 'install' };
case 'installing':
return { label: copy.updateInstalling(status.latestVersion), description: null, action: 'none' };
case 'error':
diff --git a/apps/desktop/stories/settings/settings-pages.stories.tsx b/apps/desktop/stories/settings/settings-pages.stories.tsx
index d19577c119..d721c0380b 100644
--- a/apps/desktop/stories/settings/settings-pages.stories.tsx
+++ b/apps/desktop/stories/settings/settings-pages.stories.tsx
@@ -41,7 +41,11 @@ import type {
} from '@maka/core/capabilities';
import type { HealthSignal, HealthSnapshot } from '@maka/core/health';
import type { DesktopExternalSessionCatalogItem } from '../../src/preload/external-session-catalog';
-import type { AppUpdateStatus } from '../../src/preload/bridge-contract';
+import type {
+ AppUpdateInstallRequest,
+ AppUpdateInstallResult,
+ AppUpdateStatus,
+} from '../../src/preload/bridge-contract';
import {
AppUpdateProvider,
AppUpdateServicesProvider,
@@ -983,6 +987,7 @@ function withPackagedChannelBridge(channel: {
updateChannel: 'nightly' | 'release';
appVersion: string;
updateStatus: AppUpdateStatus;
+ installUpdate?: (input: AppUpdateInstallRequest) => Promise<AppUpdateInstallResult>;
}) {
return withScopedMakaBridge({
...makaBridge,
@@ -995,6 +1000,7 @@ function withPackagedChannelBridge(channel: {
appVersion: channel.appVersion,
}),
updateStatus: async () => channel.updateStatus,
+ ...(channel.installUpdate ? { installUpdate: channel.installUpdate } : {}),
},
} satisfies Record<string, unknown>);
}
@@ -2965,10 +2971,11 @@ export const About: Story = {
render: () => <SettingsStory section="about" />,
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
- // The lead row is the version with the channel sentence under it; a dev
- // checkout says it does not update and gets no update row at all.
- await expect(canvas.findByText(/^Maka v\d/)).resolves.toBeTruthy();
+ // The lead is the wordmark over the version and the channel sentence; a
+ // dev checkout says it does not update and gets no 更新 group at all.
+ await expect(canvas.findByRole('heading', { name: /^Maka v\d/ })).resolves.toBeTruthy();
await expect(canvas.findByText('本地开发构建,不检查更新。')).resolves.toBeTruthy();
+ await expect(canvas.queryByRole('heading', { name: '更新' })).not.toBeInTheDocument();
await expect(canvas.queryByRole('button', { name: '检查更新' })).not.toBeInTheDocument();
// Support lives outside the info conditional; each control is named by its
// row, not by the verb on its face. Actions are buttons, navigation a link.
@@ -2993,7 +3000,9 @@ export const About: Story = {
// Real path: the same page inside a packaged Nightly. Nightly publishes daily
// and auto-downloads, so `downloaded` — not `not-available` — is what a nightly
// user actually opens this page to. The version string is the shipped shape:
-// <product>-dev.<run>.<UTC day>.
+// <product>-dev.<run>.<UTC day>. 重启安装 here is the sidebar footer's restart
+// offered on the page itself, through the same install command.
+const nightlyInstallUpdate = fn(async (_input: AppUpdateInstallRequest) => ({ ok: true as const }));
export const AboutNightly: Story = {
decorators: [
withPackagedChannelBridge({
@@ -3004,9 +3013,21 @@ export const AboutNightly: Story = {
currentVersion: '0.2.0-dev.12.20260901',
latestVersion: '0.2.0-dev.13.20260902',
},
+ installUpdate: nightlyInstallUpdate,
}),
],
render: () => <SettingsStory section="about" />,
+ play: async ({ canvasElement }) => {
+ nightlyInstallUpdate.mockClear();
+ const canvas = within(canvasElement);
+ await expect(canvas.findByRole('heading', { name: '更新' })).resolves.toBeTruthy();
+ await expect(canvas.queryByRole('button', { name: '检查更新' })).not.toBeInTheDocument();
+ const install = await canvas.findByRole('button', { name: '重启安装' });
+ await userEvent.click(install);
+ await waitFor(() => {
+ expect(nightlyInstallUpdate).toHaveBeenCalledWith({ allowInterruptActiveTasks: false });
+ });
+ },
};
// Real path: the same page inside a packaged release — the default state, which
diff --git a/docs/astryx-surface-file-inventory.md b/docs/astryx-surface-file-inventory.md
index 8e8865ad5f..edc3c2d1db 100644
--- a/docs/astryx-surface-file-inventory.md
+++ b/docs/astryx-surface-file-inventory.md
@@ -113,7 +113,7 @@ Wiki bar: Design Conventions · API Use-the-System · Theming · Container Paddi
| `apps/desktop/src/renderer/reference-shell.css` | styles | n/a (css) | aligned — no off-rhythm control heights flagged | aligned |
| `apps/desktop/src/renderer/remote-project-directory-dialog.tsx` | dialog-overlay | Button, Dialog, DialogHeader, DropdownMenu, DropdownMenuItem, HStack, Layout, LayoutContent, LayoutFooter, Text | aligned — uses Astryx (Button, Dialog, DialogHeader, DropdownMenu, DropdownMenuItem, HStack, Layout, LayoutContent) | aligned |
| `apps/desktop/src/renderer/session-collaboration-dialog.tsx` | dialog-overlay | Banner, Button, Dialog, DialogHeader, FormLayout, Layout, LayoutContent, LayoutFooter, SegmentedControl, SegmentedControlItem, Text, TextArea | aligned — uses Astryx (Banner, Button, Dialog, DialogHeader, FormLayout, Layout, LayoutContent, LayoutFooter) | aligned |
-| `apps/desktop/src/renderer/settings/about-settings-page.tsx` | settings-page | Banner, Button, Link, Text | aligned — uses Astryx (Banner, Button, Link, Text) | aligned |
+| `apps/desktop/src/renderer/settings/about-settings-page.tsx` | settings-page | Banner, Button, Heading, Link, Text, VStack | aligned — uses Astryx (Banner, Button, Heading, Link, Text, VStack) | aligned |
| `apps/desktop/src/renderer/settings/appearance-settings-page.tsx` | settings-page | Button, Grid, HStack, NumberInput, SelectableCard, Switch, Text, VStack | aligned — uses Astryx (Button, Grid, HStack, NumberInput, SelectableCard, Switch, Text, VStack) | aligned |
| `apps/desktop/src/renderer/settings/bot-chat-detail.tsx` | settings-module | Banner, Button, Card, FormLayout, MetadataList, MetadataListItem, SegmentedControl, SegmentedControlItem, Selector, StatusDot, Switch, Text, TextArea, TextInput, VStack | aligned — uses Astryx (Banner, Button, Card, FormLayout, MetadataList, MetadataListItem, SegmentedControl, SegmentedControlItem) | aligned |
| `apps/desktop/src/renderer/settings/bot-chat-overview.tsx` | settings-module | Banner, Button, EmptyState, Item, StatusDot | aligned — uses Astryx (Banner, Button, EmptyState, Item, StatusDot) | aligned |
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org