Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('Settings app-info loading contract', () => {
);
assert.match(
aboutBlock,
/if \(!info && !infoError\) \{[\s\S]*aria-label="正在加载关于页"/,
/if \(!info && !infoError\) \{[\s\S]*label="正在加载关于页"/,
'About page skeleton should only render while no error has occurred',
);
assert.match(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ const sourcePaths = [
'appearance-settings-page.tsx',
'web-search-settings-page.tsx',
'memory-settings-page.tsx',
'memory-settings-labels.ts',
'settings-error-copy.ts',
'general-settings-page.tsx',
'open-gateway-settings-page.tsx',
'bot-chat-settings-page.tsx',
'bot-wechat-login.tsx',
'usage-settings-page.tsx',
'settings-metric-card.tsx',
'settings-status-badge.ts',
Expand Down
14 changes: 9 additions & 5 deletions apps/desktop/src/renderer/settings/about-settings-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { Sparkles } from '@maka/ui/icons';
import { Button, useToast } from '@maka/ui';
import { SettingsRows, SettingRow } from './settings-rows';
import { settingsActionErrorMessage } from './settings-error-copy';
import { SettingsSkeletonStack } from './settings-skeleton';

type AppInfo = Awaited<ReturnType<typeof window.maka.app.info>>;

Expand Down Expand Up @@ -47,11 +48,14 @@ export function AboutSettingsPage() {

if (!info && !infoError) {
return (
<div className="maka-skeleton-stack" aria-busy="true" aria-label="正在加载关于页">
<div className="maka-skeleton maka-skeleton-line" data-size="lg" style={{ width: '38%' }} />
<div className="maka-skeleton maka-skeleton-line" style={{ width: '70%' }} />
<div className="maka-skeleton maka-skeleton-line" style={{ width: '52%' }} />
</div>
<SettingsSkeletonStack
label="正在加载关于页"
lines={[
{ width: '38%', size: 'lg' },
{ width: '70%' },
{ width: '52%' },
]}
/>
);
}

Expand Down
Loading
Loading