@allbluecn/web-app 0.27.9 → 0.27.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/__tests__/bench/baselines/format-timestamp.json +44 -0
- package/src/__typeprobe__.d.ts +4 -0
- package/src/components/mini-quick-panel/mini-quick-panel.tsx +8 -0
- package/src/components/settings/language-selector.tsx +4 -0
- package/src/components/shared-kit/peek/__tests__/dock-resize.test.tsx +153 -0
- package/src/components/shared-kit/peek/dock-resize.ts +214 -0
- package/src/components/story/detail/story-detail-toolbar/children.tsx +5 -3
- package/src/components/story/peek-panel.tsx +57 -4
- package/src/components/story/relations/story-ref-row.tsx +14 -10
- package/src/components/story/views/story-list/index.tsx +4 -1
- package/src/components/story/views/story-list/row.tsx +24 -18
- package/src/lib/changelog/sdk-versions.ts +2 -2
- package/src/lib/desktop-bridge-types.ts +4 -0
- package/src/lib/locale-sync.ts +36 -0
- package/src/paraglide/README.md +1 -1
- package/src/paraglide/messages/_index.js +89922 -5751
- package/src/paraglide/messages/en.js +28780 -0
- package/src/paraglide/messages/story_peek_resizepanel1.js +30 -0
- package/src/paraglide/messages/zh.js +28778 -0
- package/src/providers/theme-mode-provider.tsx +9 -1
- package/src/server/serverFns/story/story-crud.ts +15 -3
|
@@ -111,24 +111,30 @@ export const StoryListRow = memo(function StoryListRow({ story, group, indent, i
|
|
|
111
111
|
{/* 在看成员徽标(§7.1 行级 presence):行 hover 渐显,无在看者不渲染 */}
|
|
112
112
|
<EntityPresenceBadge module="stories" route={`/stories/${story.id}`} />
|
|
113
113
|
|
|
114
|
-
{
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
114
|
+
{/* 属性编辑器簇整体 shrink-0:行宽随容器自适应后(不再强制 44rem 横滑),
|
|
115
|
+
收缩全部由 flex-1 truncate 的姓名吸收;簇内徽标永不压缩(#428 防
|
|
116
|
+
「挤压重叠」的口径在自适应行宽下由本簇承接)。极端窄容器(低于簇总宽,
|
|
117
|
+
实际布局下限 min-w-120 内罕见)溢出部分由卡片 overflow-hidden 裁剪。 */}
|
|
118
|
+
<div className="flex shrink-0 items-center gap-1.5">
|
|
119
|
+
{properties.includes("priority") && (
|
|
120
|
+
<PriorityEditor value={story.priority} onChange={setPriority} variant="button" />
|
|
121
|
+
)}
|
|
122
|
+
{properties.includes("state") && (
|
|
123
|
+
<StateEditor value={story.state} onChange={setState} variant="button" />
|
|
124
|
+
)}
|
|
125
|
+
{properties.includes("assignee") && (
|
|
126
|
+
<AssigneeEditor assignee={story.assignee} users={users} onChange={setAssignee} variant="button" />
|
|
127
|
+
)}
|
|
128
|
+
{properties.includes("startDate") && (
|
|
129
|
+
<DateEditor value={story.startDate} onChange={setStartDate} label={m.story_row_startDate()} icon={CalendarPlus2} />
|
|
130
|
+
)}
|
|
131
|
+
{properties.includes("dueDate") && (
|
|
132
|
+
<DateEditor value={story.targetDate} onChange={setTargetDate} label={m.story_row_dueDate()} icon={CalendarCheck} overdue={overdue} />
|
|
133
|
+
)}
|
|
134
|
+
{properties.includes("labels") && (
|
|
135
|
+
<LabelsEditor projectId={story.projectId ?? ""} labelIds={currentLabelIds} labels={labels} onChange={setLabels} variant="button" aiContext={{ name: () => story.name }} />
|
|
136
|
+
)}
|
|
137
|
+
</div>
|
|
132
138
|
</div>
|
|
133
139
|
);
|
|
134
140
|
});
|
|
@@ -112,8 +112,8 @@ export const SDK_GROUPS: SdkGroup[] = [
|
|
|
112
112
|
"items": [
|
|
113
113
|
{
|
|
114
114
|
"name": "@allbluecn/web-app",
|
|
115
|
-
"version": "v0.27.
|
|
116
|
-
"lastUpdate": "Nov
|
|
115
|
+
"version": "v0.27.11",
|
|
116
|
+
"lastUpdate": "Nov 6, 2026",
|
|
117
117
|
"source": "apps/web/package.json",
|
|
118
118
|
"docsUrl": "https://github.com/allbluecn/allblue"
|
|
119
119
|
},
|
|
@@ -110,6 +110,10 @@ export interface DesktopBridgeApi {
|
|
|
110
110
|
setMiniPanelPinned?: (pinned: boolean) => void
|
|
111
111
|
onMiniPanelPinned?: (cb: (pinned: boolean) => void) => () => void
|
|
112
112
|
popUpTrayMenu?: () => void
|
|
113
|
+
/** App 主题 → macOS 原生外观(nativeTheme.themeSource):vibrancy 材质跟随
|
|
114
|
+
* App 主题而非系统外观(否则暗色 App 在浅色系统下露出浅色毛玻璃边框)。
|
|
115
|
+
* 传 "light" | "dark" | "system"。旧壳 undefined——调用方可选链降级。 */
|
|
116
|
+
setNativeTheme?: (theme: "light" | "dark" | "system") => void
|
|
113
117
|
/** mini 面板每次显示(presentPanel)推送的**无参信号**:面板窗口单例复用、
|
|
114
118
|
* 组件不重挂载,渲染端据此重新聚焦标题框(否则 mini 窗口重新打开后焦点
|
|
115
119
|
* 仍停在最后一个聚焦元素/图钉按钮上)。订阅返回 unsubscribe。 */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
2
|
+
// AllBlue - 理想之海
|
|
3
|
+
// Copyright (C) 2026 AllBlue Contributors
|
|
4
|
+
|
|
5
|
+
// 跨窗口语言同步:paraglide setLocale 默认 reload:true——主窗切语言靠整页重载
|
|
6
|
+
// 换文案,而托盘 mini 面板窗口单例复用、不重载,其 cookie(lng,同源共享)虽已
|
|
7
|
+
// 是新值但文案还是旧语言。用 BroadcastChannel(同源同 session 的所有文档可达)
|
|
8
|
+
// 广播语言变更,mini 窗收到后自重载(重载时 SSR/runtime 读新 cookie)。
|
|
9
|
+
// localStorage 的 storage 事件只覆盖 localStorage 写入,cookie 变更无事件,
|
|
10
|
+
// 故此处不用同款机制。
|
|
11
|
+
|
|
12
|
+
export const LOCALE_SYNC_CHANNEL = "allblue:locale-sync"
|
|
13
|
+
|
|
14
|
+
/** 主窗切换语言后调用:广播新语言给同源其他窗口(mini 面板等) */
|
|
15
|
+
export function publishLocaleChange(locale: string): void {
|
|
16
|
+
try {
|
|
17
|
+
const channel = new BroadcastChannel(LOCALE_SYNC_CHANNEL)
|
|
18
|
+
channel.postMessage(locale)
|
|
19
|
+
channel.close()
|
|
20
|
+
} catch {
|
|
21
|
+
// BroadcastChannel 不可用(极端环境)时静默:仅影响第二窗口不同步
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/** 第二窗口(mini 面板等)订阅语言变更;返回退订函数 */
|
|
26
|
+
export function subscribeLocaleChange(onLocale: (locale: string) => void): () => void {
|
|
27
|
+
try {
|
|
28
|
+
const channel = new BroadcastChannel(LOCALE_SYNC_CHANNEL)
|
|
29
|
+
channel.onmessage = (e) => {
|
|
30
|
+
if (typeof e.data === "string") onLocale(e.data)
|
|
31
|
+
}
|
|
32
|
+
return () => channel.close()
|
|
33
|
+
} catch {
|
|
34
|
+
return () => {}
|
|
35
|
+
}
|
|
36
|
+
}
|
package/src/paraglide/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
> Auto-generated i18n message functions. Import `messages.js` to use translated strings.
|
|
4
4
|
|
|
5
|
-
Compiled from: `/Users/urmynami/HelloAI/AllBlue-Workspace/AllBlue
|
|
5
|
+
Compiled from: `/Users/urmynami/HelloAI/AllBlue-Workspace/AllBlue/apps/web/project.inlang`
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
## What is this folder?
|