@ihyeon/flow-qa 0.8.8 → 0.8.9

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/README.ko.md CHANGED
@@ -16,7 +16,7 @@ CLI와 `127.0.0.1` 전용 웹 UI를 제공합니다. UI는 영어로 시작하
16
16
  Node.js 24.x(24.22.1 이상) 또는 26.12.1 이상이 필요합니다. 브라우저는 첫 웹 실행 전에 설치합니다.
17
17
 
18
18
  ```sh
19
- npm install -g @ihyeon/flow-qa@0.8.8
19
+ npm install -g @ihyeon/flow-qa@0.8.9
20
20
  flow-qa browser install
21
21
  flow-qa ui --demo
22
22
  ```
@@ -96,6 +96,8 @@ CLI에서는 `plan flow.md --platform mobile --prompt-only`로 준비하고, `co
96
96
 
97
97
  ![실제 세 케이스 실행 결과](https://raw.githubusercontent.com/hyeonse-swing/flow-qa/main/docs/media/flow-qa-report.png)
98
98
 
99
+ 화면 설정은 브라우저에 저장하고 탭 간에 동기화합니다. 저장소를 사용할 수 없으면 현재 탭에만 적용된다는 안내가 나타나며, 이후 설정 변경이나 초기화가 정상 저장되면 안내가 사라집니다.
100
+
99
101
  ## 구현과 출처
100
102
 
101
103
  Flow QA가 구현한 부분은 플로우·케이스 스키마, 설계 모델 연결, 컴파일, 실행 조율, 결과 해석과 로컬 UI입니다. 실제 브라우저 테스트 엔진은 [tester-army/e2e](https://github.com/tester-army/e2e)와 관련 패키지를 의존성으로 사용합니다. UI는 [Hyeonse Design System](https://github.com/hyeonse-swing/hyeonse-design-system)의 스타일 토큰과 선호 설정 유틸을 사용하며 화면 구성은 이 프로젝트에서 작성했습니다. [제3자 고지](https://github.com/hyeonse-swing/flow-qa/blob/main/THIRD_PARTY_NOTICES.md)와 [아키텍처](https://github.com/hyeonse-swing/flow-qa/blob/main/docs/architecture.md)에 경계를 자세히 적었습니다.
package/README.md CHANGED
@@ -16,7 +16,7 @@ Flow QA is available as a CLI and a web UI bound to `127.0.0.1`. Provide a targe
16
16
  Node.js 24.x (24.22.1 or later) or 26.12.1 or later is required. Install Chromium before the first web run:
17
17
 
18
18
  ```sh
19
- npm install -g @ihyeon/flow-qa@0.8.8
19
+ npm install -g @ihyeon/flow-qa@0.8.9
20
20
  flow-qa browser install
21
21
  flow-qa ui --demo
22
22
  ```
@@ -9,8 +9,9 @@ const { t, onChange } = window.FlowQAI18n;
9
9
  const themeNames = { system: 'display.themeSystemShort', light: 'display.themeLightShort', dark: 'display.themeDarkShort' };
10
10
  const accentNames = { cobalt: 'settings.accentCobalt', forest: 'settings.accentForest', coral: 'settings.accentCoral' };
11
11
  let preferences;
12
+ let storageUnavailable = false;
12
13
  try { preferences = parsePreferences(localStorage.getItem(storageKey)); }
13
- catch { preferences = { ...defaultPreferences }; }
14
+ catch { preferences = { ...defaultPreferences }; storageUnavailable = true; }
14
15
 
15
16
  function apply() {
16
17
  const root = document.documentElement;
@@ -27,11 +28,15 @@ function apply() {
27
28
  toggle.textContent = t('display.themeButton', { theme });
28
29
  toggle.setAttribute('aria-label', t('display.currentTheme', { theme }));
29
30
  document.getElementById('preferences-status').textContent = `${theme} · ${t(accentNames[preferences.accent])}${systemReduced.matches ? ` · ${t('display.motionSystemReduced')}` : ''}`;
31
+ const storageStatus = document.getElementById('preferences-storage-status');
32
+ storageStatus.textContent = storageUnavailable ? t('display.storageUnavailable') : '';
33
+ storageStatus.hidden = !storageUnavailable;
30
34
  }
31
35
 
32
36
  function update(next) {
33
37
  preferences = validatePreferences(next);
34
- try { localStorage.setItem(storageKey, serializePreferences(preferences)); } catch { /* Current tab still works without storage. */ }
38
+ try { localStorage.setItem(storageKey, serializePreferences(preferences)); storageUnavailable = false; }
39
+ catch { storageUnavailable = true; }
35
40
  apply();
36
41
  }
37
42
 
@@ -46,6 +51,8 @@ toggle.addEventListener('click', () => {
46
51
  });
47
52
  document.getElementById('reset-preferences').addEventListener('click', () => update({ ...defaultPreferences }));
48
53
  window.addEventListener('storage', (event) => {
54
+ try { if (event.storageArea !== localStorage) return; }
55
+ catch { return; }
49
56
  if (event.key !== storageKey && event.key !== null) return;
50
57
  preferences = parsePreferences(event.newValue);
51
58
  apply();
@@ -223,6 +223,7 @@
223
223
  'display.currentTheme': ['Change theme: currently {theme}', '테마 변경: 현재 {theme}'],
224
224
  'display.themeButton': ['Display · {theme}', '화면 · {theme}'],
225
225
  'display.motionSystemReduced': ['motion reduced by system setting', '기기 설정에 따라 움직임 감소'],
226
+ 'display.storageUnavailable': ['Browser storage is unavailable. Display changes apply only to this tab and may reset after reload.', '브라우저 저장소를 사용할 수 없습니다. 화면 설정은 현재 탭에만 적용되며 새로고침하면 초기화될 수 있습니다.'],
226
227
  'app.breadcrumb': ['Workspace / {name}', '작업 공간 / {name}'],
227
228
  'app.responseUnreadable': ['Could not read the server response ({status}).', '서버 응답을 읽을 수 없습니다 ({status}).'],
228
229
  'app.requestFailed': ['Request failed ({status})', '요청 실패 ({status})'],
@@ -119,6 +119,7 @@
119
119
  <fieldset class="hds-group"><legend data-i18n="settings.motion">Motion</legend><div class="hds-options"><label class="hds-radioOption"><input type="radio" name="motion" value="full"><span data-i18n="settings.motionFull">Full</span></label><label class="hds-radioOption"><input type="radio" name="motion" value="reduced"><span data-i18n="settings.motionReduced">Reduced</span></label></div></fieldset>
120
120
  </div>
121
121
  <div class="hds-footer"><p id="preferences-status" aria-live="polite">Your display choices are saved in this browser.</p><button id="reset-preferences" type="button" data-i18n="settings.reset">Reset to defaults</button></div>
122
+ <p id="preferences-storage-status" class="hint" role="status" aria-live="polite" hidden></p>
122
123
  </section>
123
124
  <div class="settings-grid">
124
125
  <section class="settings-section"><div class="section-head"><span class="section-number">01</span><div><h2 data-i18n="settings.targets">Run targets</h2><p data-i18n="settings.targetsHelp">Add a web address or a native app and device.</p></div></div><form class="section-body form-stack" id="target-form"><label><span data-i18n="settings.targetName">Target name</span><input name="name" required placeholder="e.g. local-demo" data-i18n-placeholder="settings.targetNamePlaceholder" pattern="[A-Za-z0-9][A-Za-z0-9_\-]*"></label><label><span data-i18n="settings.targetType">Target type</span><select name="kind" id="target-kind"><option value="web" data-i18n="scenario.web">Web</option><option value="ios" data-i18n="settings.ios">iOS app</option><option value="android" data-i18n="settings.android">Android app</option></select></label><label id="target-url-field"><span data-i18n="settings.targetUrl">URL</span><input name="url" type="url" required placeholder="https://example.com"></label><label id="target-bundle-field" hidden><span data-i18n="settings.bundleId">App bundle ID / package name</span><input name="bundleId" autocomplete="off"></label><label id="target-device-field" hidden><span data-i18n="settings.device">Device name or ID</span><input name="device" autocomplete="off"></label><label><span data-i18n="settings.description">Description</span><textarea name="description" rows="3" placeholder="What this target is for" data-i18n-placeholder="settings.descriptionPlaceholder"></textarea></label><button class="button primary" type="submit" data-i18n="settings.saveTarget">Save target</button><p class="hint" data-i18n="settings.targetSafety">Saving a target does not connect a device or install an app.</p><div id="target-list" class="settings-list"></div></form></section>
package/docs/releases.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  The alpha entries below are historical release records. They document earlier package versions and checks.
4
4
 
5
+ ## 0.8.9: report unavailable display-preference storage
6
+
7
+ Display settings now warns in English or Korean when browser storage cannot be read or written. Choices still apply in the current tab. A successful later change or reset clears the warning and saves the full selection. Cross-tab synchronization ignores unrelated session-storage events.
8
+
9
+ A dedicated Chromium regression check covers blocked reads/writes, recovery, reload persistence, cross-tab updates, keyboard controls, system reduced motion, and a 390px Korean layout. The installed-package smoke also exercises a failed write followed by a successful save and reload. Storage failures are injected in the browser fixture; no real browser policy or device permission is changed.
10
+
11
+ Locally verified on macOS with Node.js 24.22.1 on 2026-11-16 (Asia/Seoul): `npm run check` passed 118 tests, type checking and UI checks; all eight `smoke:ui` scripts passed; `check:package` and `smoke:package` passed, including seven real browser cases and the installed preference recovery check. No model calls, real service logins, or native-device tests were performed.
12
+
5
13
  ## 0.8.8: update test-engine dependencies
6
14
 
7
15
  Update `e2e` to 0.22.0, `@e2e-dev/mobile` to 0.12.5, and Zod to 4.6.7. The installed dependency tree now uses `@modelcontextprotocol/server` 2.4.0 and Zod 4.6.7, including in a fresh npm consumer. This removes the reported high-severity findings in the installed package without relying on root-only npm overrides. Browser and mobile case schemas and Flow QA report formats are unchanged.
package/docs/ui.md CHANGED
@@ -138,7 +138,7 @@ The JSON keeps the case content and source reference. The Markdown retains its e
138
138
 
139
139
  The UI uses role tokens and preference utilities from `@hyeonse/design-system`, pinned to GitHub commit `38978c6a86f422fc0e63e919f600bc2dd3451e5c`. Flow QA implements its own workflow layout, buttons, and fields with those tokens.
140
140
 
141
- The top-bar theme button and **Connections → Display settings** control theme, accent, density, corners, and motion. Preferences are saved under `flowqa-display-preferences` in the browser and shared across tabs. The device's reduced-motion setting takes priority. The saved preferences are applied before the token CSS appears on first load.
141
+ The top-bar theme button and **Connections → Display settings** control theme, accent, density, corners, and motion. Preferences are saved under `flowqa-display-preferences` in the browser and shared across tabs. The device's reduced-motion setting takes priority. The saved preferences are applied before the token CSS appears on first load. If browser storage cannot be read or written, Display settings shows a localized warning: changes still apply in the current tab but may reset on reload. A successful later change or reset saves the preferences and clears the warning. Only local-storage events synchronize these settings between tabs.
142
142
 
143
143
  Local DM Sans and a Noto Sans KR subset are used for typography; missing Korean glyphs fall back to installed system fonts. See the [font and package notices](../THIRD_PARTY_NOTICES.md).
144
144
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihyeon/flow-qa",
3
- "version": "0.8.8",
3
+ "version": "0.8.9",
4
4
  "license": "MIT",
5
5
  "author": "Hyeonse Im",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "check:ui": "node --check src/ui/public/app.js && node --check src/ui/public/display.js && node --check src/ui/public/i18n.js && hds-audit .",
58
58
  "demo:serve": "node examples/demo/server.ts",
59
59
  "demo:smoke": "node scripts/demo-smoke.ts",
60
- "smoke:ui": "node scripts/ui-i18n-smoke.mjs && node scripts/ui-comparison-smoke.mjs && node scripts/ui-selection-smoke.mjs && node scripts/ui-rerun-smoke.mjs && node scripts/ui-history-smoke.mjs && node scripts/ui-archive-comparison-smoke.mjs && node scripts/ui-report-explorer-smoke.mjs"
60
+ "smoke:ui": "node scripts/ui-i18n-smoke.mjs && node scripts/ui-comparison-smoke.mjs && node scripts/ui-selection-smoke.mjs && node scripts/ui-rerun-smoke.mjs && node scripts/ui-history-smoke.mjs && node scripts/ui-archive-comparison-smoke.mjs && node scripts/ui-report-explorer-smoke.mjs && node scripts/ui-preferences-smoke.mjs"
61
61
  },
62
62
  "dependencies": {
63
63
  "@ai-sdk/openai-compatible": "3.0.53",