优化客户端主界面表现 (#177)
Project CI / Repository checks (push) Successful in 4m11s
Project CI / Frontend tests (push) Successful in 5m52s
Project CI / Backend tests (push) Successful in 5m59s
Project CI / Native shell tests (push) Successful in 12m34s

调整首页品牌区、创作类型按钮和输入框视觉比例。

重做最近项目横向信息卡并展示类型、更新时间和进度。

补充本地项目修改时间只读字段及首页回归测试。

同步更新 GameAgent 客户端实施文档。

---------

Co-authored-by: kdletters <kdletters@qq.com>
Reviewed-on: http://192.168.35.82/git/GenarrativeAI/Genarrative/pulls/177
Co-authored-by: 五香丸子 <15518898337@163.com>
Co-committed-by: 五香丸子 <15518898337@163.com>
This commit was merged in pull request #177.
This commit is contained in:
2026-08-23 16:50:14 +08:00
committed by 段舒康
parent c98bf4a17a
commit 814fc343e2
11 changed files with 155 additions and 69 deletions
+22 -8
View File
@@ -14,13 +14,11 @@ const developmentWorkflowDocPath =
'docs/project-memory/shared-memory/development-workflow.md';
const decisionLogDocPath = 'docs/project-memory/shared-memory/decision-log.md';
const rootPackageJson = JSON.parse(fs.readFileSync('package.json', 'utf8'));
const mobileShellConfigCheckSource = fs.readFileSync(
'apps/mobile-shell/scripts/check-config.mjs',
'utf8',
const mobileShellConfigCheckSource = normalizeSourceForGuardrail(
fs.readFileSync('apps/mobile-shell/scripts/check-config.mjs', 'utf8'),
);
const desktopShellConfigCheckSource = fs.readFileSync(
'apps/desktop-shell/scripts/check-config.mjs',
'utf8',
const desktopShellConfigCheckSource = normalizeSourceForGuardrail(
fs.readFileSync('apps/desktop-shell/scripts/check-config.mjs', 'utf8'),
);
const aiGameCreatorShellAppSource = fs.readFileSync(
'apps/ai-game-creator-shell/src/App.tsx',
@@ -152,6 +150,14 @@ function readSourceTree(entryPath, extension) {
return fs.readFileSync(entryPath, 'utf8');
}
function normalizeSourceForGuardrail(source) {
return source
.replace(/\s+/g, ' ')
.replace(/\s*([(),])\s*/g, '$1')
.replace(/,\s*\)/g, ')')
.trim();
}
function assertRootNativeShellCheckScripts() {
if (
rootPackageJson.scripts?.['check:native-shells'] !==
@@ -187,7 +193,11 @@ function assertNativeShellDependencyVersionGuardrails() {
"'eas-cli': '^20.3.0'",
"assertPackageLockVersion('apps/mobile-shell', 'eas-cli', '20.3.0')",
]) {
if (!mobileShellConfigCheckSource.includes(snippet)) {
if (
!mobileShellConfigCheckSource.includes(
normalizeSourceForGuardrail(snippet),
)
) {
throw new Error(
`mobile shell dependency guardrail drifted: missing ${snippet}`,
);
@@ -211,7 +221,11 @@ function assertNativeShellDependencyVersionGuardrails() {
"['tauri', '2.11.2']",
'tauri-plugin-single-instance = { version = "2.4.2", features = ["deep-link"] }',
]) {
if (!desktopShellConfigCheckSource.includes(snippet)) {
if (
!desktopShellConfigCheckSource.includes(
normalizeSourceForGuardrail(snippet),
)
) {
throw new Error(
`desktop shell dependency guardrail drifted: missing ${snippet}`,
);