Compare commits

..

4 Commits

Author SHA1 Message Date
zhanxi 0f0aebe3a4 feat(experiments): 发布实验类型与用户管理拆分
已完成双轮review与测试环境验证,沿用现有部署链路。
2026-10-27 03:47:09 +00:00
湛兮 b1c5610f23 feat(experiments): 开放本人通用类型决策读取接口
- BFF:允许已登录用户按类型读取决策,拒绝对决策入口写操作

- README:补充类型消费者接入路径与后台验收边界
2026-10-27 11:40:22 +08:00
zhanxi 1d045b7770 fix(ui): 发布星港图标更新
已完成双轮review与测试环境验证,沿用现有部署链路。
2026-10-27 02:46:46 +00:00
湛兮 a07ba77c5a fix(ui): 统一星港浏览器和主屏幕图标
更新对话气泡星芒标识,提供SVG、ICO与多尺寸PNG,修复标签页旧图标缓存并同步PWA元数据。
2026-10-27 10:44:45 +08:00
10 changed files with 17 additions and 5 deletions
+4
View File
@@ -128,3 +128,7 @@ pnpm start:prod
- `src/app/api/digital/[...path]/route.ts`:白名单 BFF,只转发前台接口,禁止访问后台实验管理,写入校验同源。 - `src/app/api/digital/[...path]/route.ts`:白名单 BFF,只转发前台接口,禁止访问后台实验管理,写入校验同源。
- 实验控制仅在 role-admin。前台没有切换实验或分组入口。 - 实验控制仅在 role-admin。前台没有切换实验或分组入口。
- `DEEPSEEK_API_KEY` 仅在业务后端配置,前端不读取、不保存。 - `DEEPSEEK_API_KEY` 仅在业务后端配置,前端不读取、不保存。
标签页图标采用 `public/stellar-icon-v2.svg`,同时提供多尺寸 `favicon.ico`、180/192/512 PNG,覆盖浏览器、Apple 主屏幕和 PWA。版本化资源路径用于刷新旧图标缓存。
通用实验消费者可经 `GET /api/digital/decisions/:key` 读取本人类型决策的 `data.value`,沿用 HttpOnly 会话与不缓存策略。类型、测试方案和用户分组全部在后台管理;新类型需要应用真实使用返回值并完成后台接入验收后才可启动。
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

+1 -1
View File
@@ -1 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><rect width="64" height="64" rx="17" fill="#171219"/><defs><linearGradient id="a" x2="1" y2="1"><stop stop-color="#e0b888"/><stop offset="1" stop-color="#fcaee4"/></linearGradient></defs><path d="M32 8C35 24 40 29 56 32 40 35 35 40 32 56 29 40 24 35 8 32 24 29 29 24 32 8Z" fill="url(#a)"/><circle cx="50" cy="13" r="3" fill="#fcaee4"/></svg> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><linearGradient id="stellar" x1="12" y1="13" x2="49" y2="49" gradientUnits="userSpaceOnUse"><stop stop-color="#F4D5A3"/><stop offset="1" stop-color="#F5A8D9"/></linearGradient></defs><rect x="2" y="2" width="60" height="60" rx="18" fill="#211628"/><path d="M24 14h16c9 0 15 6 15 15v4c0 9-6 15-15 15H27L14 54l3-13c-4-3-6-7-6-12 0-9 5-15 13-15Z" fill="url(#stellar)"/><path d="M33 20c2.2 6.5 4.5 8.8 11 11-6.5 2.2-8.8 4.5-11 11-2.2-6.5-4.5-8.8-11-11 6.5-2.2 8.8-4.5 11-11Z" fill="#211628"/><circle cx="51" cy="13" r="5" fill="#F7B7DD" stroke="#211628" stroke-width="3"/></svg>

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 640 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64"><defs><linearGradient id="stellar" x1="12" y1="13" x2="49" y2="49" gradientUnits="userSpaceOnUse"><stop stop-color="#F4D5A3"/><stop offset="1" stop-color="#F5A8D9"/></linearGradient></defs><rect x="2" y="2" width="60" height="60" rx="18" fill="#211628"/><path d="M24 14h16c9 0 15 6 15 15v4c0 9-6 15-15 15H27L14 54l3-13c-4-3-6-7-6-12 0-9 5-15 13-15Z" fill="url(#stellar)"/><path d="M33 20c2.2 6.5 4.5 8.8 11 11-6.5 2.2-8.8 4.5-11 11-2.2-6.5-4.5-8.8-11-11 6.5-2.2 8.8-4.5 11-11Z" fill="#211628"/><circle cx="51" cy="13" r="5" fill="#F7B7DD" stroke="#211628" stroke-width="3"/></svg>

After

Width:  |  Height:  |  Size: 640 B

+3 -1
View File
@@ -33,11 +33,13 @@ async function proxy(
const { path } = await context.params; const { path } = await context.params;
const joined = path.join("/"); const joined = path.join("/");
if ( if (
!/^(bootstrap|profile|exposure|conversations(?:\/[a-zA-Z0-9_-]+(?:\/(?:stream|stop|branch|messages\/[a-zA-Z0-9_-]+))?)?)$/.test( !/^(bootstrap|profile|exposure|decisions\/[a-zA-Z0-9_-]+|conversations(?:\/[a-zA-Z0-9_-]+(?:\/(?:stream|stop|branch|messages\/[a-zA-Z0-9_-]+))?)?)$/.test(
joined, joined,
) )
) )
return Response.json({ message: "接口不存在" }, { status: 404 }); return Response.json({ message: "接口不存在" }, { status: 404 });
if (joined.startsWith("decisions/") && request.method !== "GET")
return Response.json({ message: "仅支持读取决策" }, {status:405,headers:{Allow:"GET"}});
if (request.method !== "GET") { if (request.method !== "GET") {
const origin = request.headers.get("origin"); const origin = request.headers.get("origin");
try { try {
+5 -2
View File
@@ -11,8 +11,11 @@ export const metadata: Metadata = {
description: "与有故事的人相遇,让每一段对话继续生长", description: "与有故事的人相遇,让每一段对话继续生长",
manifest: "/manifest.webmanifest", manifest: "/manifest.webmanifest",
icons: { icons: {
icon: "/icon.svg", icon: [
apple: "/icon.svg", { url: "/stellar-icon-v2.svg", type: "image/svg+xml" },
{ url: "/favicon.ico?v=stellar-2", sizes: "any" },
],
apple: "/stellar-icon-180-v2.png",
}, },
appleWebApp: { appleWebApp: {
capable: true, capable: true,
+3 -1
View File
@@ -12,8 +12,10 @@ export default function manifest(): MetadataRoute.Manifest {
background_color: "#141218", background_color: "#141218",
theme_color: "#141218", theme_color: "#141218",
icons: [ icons: [
{ src: "/stellar-icon-192-v2.png", sizes: "192x192", type: "image/png" },
{ src: "/stellar-icon-512-v2.png", sizes: "512x512", type: "image/png" },
{ {
src: "/icon.svg", src: "/stellar-icon-v2.svg",
sizes: "any", sizes: "any",
type: "image/svg+xml", type: "image/svg+xml",
}, },