refactor(ui): unify top level pages structure, use standard language codes and time zones (#13573)

### What problem does this PR solve?

- Unify top level pages structure
- Standardize locale language codes (BCP 47) and time zones (IANA tz)


> **Note:** 
> Newly created user info brings non-standard default values `timezone:
"UTC+8\tAsia/Shanghai"` and `language: "English"`.


### Type of change

- [x] Refactoring
This commit is contained in:
Jimmy Ben Klieve
2026-03-12 21:01:09 +08:00
committed by GitHub
parent 35cd56f990
commit 1a4dee4313
42 changed files with 673 additions and 1364 deletions

View File

@@ -83,8 +83,10 @@ export const EmptyAppCard = (props: {
size?: 'small' | 'large';
children?: React.ReactNode;
testId?: string;
tabIndex?: number;
}) => {
const { type, showIcon, className, isSearch, children, testId } = props;
const { type, showIcon, className, isSearch, children, testId, tabIndex } =
props;
const { t } = useTranslation();
let defaultClass = '';
let style = {};
@@ -110,10 +112,10 @@ export const EmptyAppCard = (props: {
<EmptyCard
onClick={isSearch ? undefined : props.onClick}
data-testid={testId}
tabIndex={isSearch ? undefined : 0}
tabIndex={tabIndex ?? (isSearch ? undefined : 0)}
icon={showIcon ? cardData.icon : undefined}
title={isSearch ? notFound : title}
className={cn('cursor-pointer', className)}
className={cn(!isSearch && 'cursor-pointer', className)}
style={style}
// description={EmptyCardData[type].description}
>