@allbluecn/web-app 0.27.7 → 0.27.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allbluecn/web-app",
3
- "version": "0.27.7",
3
+ "version": "0.27.8",
4
4
  "license": "AGPL-3.0-or-later",
5
5
  "type": "module",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  // You should have received a copy of the GNU Affero General Public License
16
16
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
 
18
- // 桌面托盘 mini 快捷记录面板(MiniQuickPanel 组件,历史名 QuickCapturePanel):
18
+ // 桌面托盘 mini 快捷记录面板(MiniQuickPanel):
19
19
  // 1) 顶部栏(logo + 「mini 面板」)+ 默认预选独立需求 + 标题占位 + 快捷键文案
20
20
  // 2) 标题 Enter 提交:quickCaptureStoryFn 收到显式 projectId 与内联字段缺省值
21
21
  // 3) 纯空白标题 Enter 不保存
@@ -137,13 +137,13 @@ vi.mock('@/components/story/inline-editors', () => ({
137
137
  ),
138
138
  }))
139
139
 
140
- import { QuickCapturePanel } from '../mini-quick-panel'
140
+ import { MiniQuickPanel } from '../mini-quick-panel'
141
141
 
142
142
  function renderPanel(initialMode: 'story' | 'inspiration' = 'story') {
143
143
  const client = new QueryClient({ defaultOptions: { queries: { retry: false } } })
144
144
  return render(
145
145
  <QueryClientProvider client={client}>
146
- <QuickCapturePanel initialMode={initialMode} />
146
+ <MiniQuickPanel initialMode={initialMode} />
147
147
  </QueryClientProvider>,
148
148
  )
149
149
  }
@@ -158,7 +158,7 @@ beforeEach(() => {
158
158
 
159
159
  afterEach(() => cleanup())
160
160
 
161
- describe('QuickCapturePanel', () => {
161
+ describe('MiniQuickPanel', () => {
162
162
  it('渲染顶部栏(logo + mini 面板)、三个类型 tab、默认预选独立需求与快捷键文案', async () => {
163
163
  renderPanel()
164
164
  expect(screen.getAllByAltText('AllBlue').length).toBeGreaterThan(0)
@@ -84,7 +84,7 @@ interface ProjectBriefRow {
84
84
  icon: string
85
85
  }
86
86
 
87
- export function QuickCapturePanel({ initialMode }: { initialMode: QuickCaptureMode }) {
87
+ export function MiniQuickPanel({ initialMode }: { initialMode: QuickCaptureMode }) {
88
88
  const [name, setName] = useState("")
89
89
  const [description, setDescription] = useState<{ html: string; markdown: string }>({
90
90
  html: "",
@@ -369,6 +369,7 @@ export function QuickCapturePanel({ initialMode }: { initialMode: QuickCaptureMo
369
369
 
370
370
  return (
371
371
  <div
372
+ data-slot="mini-quick-panel-root"
372
373
  className="flex h-dvh flex-col bg-background text-foreground"
373
374
  onKeyDown={handlePanelKeyDown}
374
375
  >
@@ -112,7 +112,7 @@ export const SDK_GROUPS: SdkGroup[] = [
112
112
  "items": [
113
113
  {
114
114
  "name": "@allbluecn/web-app",
115
- "version": "v0.27.7",
115
+ "version": "v0.27.8",
116
116
  "lastUpdate": "Nov 5, 2026",
117
117
  "source": "apps/web/package.json",
118
118
  "docsUrl": "https://github.com/allbluecn/allblue"
@@ -16,7 +16,7 @@
16
16
  // along with this program. If not, see <https://www.gnu.org/licenses/>.
17
17
 
18
18
  import { createLazyFileRoute } from '@tanstack/react-router'
19
- import { QuickCapturePanel } from '@/components/mini-quick-panel/mini-quick-panel'
19
+ import { MiniQuickPanel } from '@/components/mini-quick-panel/mini-quick-panel'
20
20
 
21
21
  export const Route = createLazyFileRoute('/quick-capture')({
22
22
  component: QuickCapturePage,
@@ -24,5 +24,5 @@ export const Route = createLazyFileRoute('/quick-capture')({
24
24
 
25
25
  function QuickCapturePage() {
26
26
  const { mode } = Route.useSearch()
27
- return <QuickCapturePanel initialMode={mode ?? 'story'} />
27
+ return <MiniQuickPanel initialMode={mode ?? 'story'} />
28
28
  }
@@ -879,3 +879,9 @@ html.desktop-shell body {
879
879
  html.desktop-shell [data-slot='sidebar-inner'] {
880
880
  background-color: color-mix(in srgb, var(--sidebar) 72%, transparent);
881
881
  }
882
+ /* mini 快捷面板(独立 BrowserWindow,vibrancy:'popover')玻璃化:根节点半透明
883
+ 让系统毛玻璃露出(与主窗侧栏同款手法);内部表单卡片仍是 bg-background 不透明。
884
+ 浏览器直开 /quick-capture 无 desktop-shell 类,规则 no-op(维持不透明)。 */
885
+ html.desktop-shell [data-slot='mini-quick-panel-root'] {
886
+ background-color: color-mix(in srgb, var(--background) 78%, transparent);
887
+ }