@ihyeon/flow-qa 0.8.4 → 0.8.5

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.4
19
+ npm install -g @ihyeon/flow-qa@0.8.5
20
20
  flow-qa browser install
21
21
  flow-qa ui --demo
22
22
  ```
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.4
19
+ npm install -g @ihyeon/flow-qa@0.8.5
20
20
  flow-qa browser install
21
21
  flow-qa ui --demo
22
22
  ```
@@ -739,6 +739,37 @@
739
739
  const attemptCount = (item.attempts || []).length;
740
740
  const attemptCountLabel = t(attemptCount === 1 ? 'report.attemptCountSingular' : 'report.attemptCountPlural', { count: attemptCount });
741
741
  const section = el('section', 'case-report'); section.append(el('h3', '', `${item.id} · ${item.title} · ${i18n.status(item.status)} · ${attemptCountLabel}`));
742
+ const actions = el('div', 'case-id-actions');
743
+ const copyButton = el('button', 'button quiet case-id-copy', t('report.copyCaseId'));
744
+ copyButton.type = 'button';
745
+ copyButton.setAttribute('aria-label', t('report.copyCaseIdAria', { id: item.id }));
746
+ const copyStatus = el('span', 'hint case-id-copy-status');
747
+ copyStatus.setAttribute('role', 'status');
748
+ copyStatus.setAttribute('aria-live', 'polite');
749
+ copyButton.addEventListener('click', async () => {
750
+ copyStatus.textContent = '';
751
+ const runId = app.selectedRun;
752
+ const report = app.report;
753
+ const navigationVersion = app.navigationVersion;
754
+ const view = app.view;
755
+ const locale = i18n.locale();
756
+ const canUpdateStatus = () => copyButton.isConnected && copyStatus.isConnected
757
+ && app.selectedRun === runId && app.report === report
758
+ && app.navigationVersion === navigationVersion && app.view === view && view === 'history'
759
+ && i18n.locale() === locale;
760
+ copyButton.disabled = true;
761
+ try {
762
+ if (!globalThis.navigator?.clipboard || typeof globalThis.navigator.clipboard.writeText !== 'function') throw new Error('Clipboard API unavailable');
763
+ await globalThis.navigator.clipboard.writeText(String(item.id));
764
+ if (canUpdateStatus()) copyStatus.textContent = t('report.caseIdCopied');
765
+ } catch {
766
+ if (canUpdateStatus()) copyStatus.textContent = t('report.caseIdCopyFailed');
767
+ } finally {
768
+ if (copyButton.isConnected) copyButton.disabled = false;
769
+ }
770
+ });
771
+ actions.append(copyButton, copyStatus);
772
+ section.append(actions);
742
773
  const totalAttemptTime = reportCaseTotalAttemptDurationMs(item.attempts);
743
774
  if (totalAttemptTime !== null) section.append(el('p', 'hint case-attempt-time', t('report.totalAttemptTime', { duration: totalAttemptTime })));
744
775
  if (item.reason) section.append(el('p', '', t('app.reason', { reason: item.reason })));
@@ -150,6 +150,10 @@
150
150
  'report.sortRecorded': ['Recorded order', '기록 순서'],
151
151
  'report.sortDurationDescending': ['Longest attempt time first', '시도 시간이 긴 순'],
152
152
  'report.sortAttemptsDescending': ['Most attempts first', '시도가 많은 순'],
153
+ 'report.copyCaseId': ['Copy case ID', '케이스 ID 복사'],
154
+ 'report.copyCaseIdAria': ['Copy case ID {id}', '케이스 ID {id} 복사'],
155
+ 'report.caseIdCopied': ['Case ID copied.', '케이스 ID를 복사했습니다.'],
156
+ 'report.caseIdCopyFailed': ['Could not copy. Select the case ID in the heading and copy it manually.', '복사하지 못했습니다. 제목의 케이스 ID를 선택해 직접 복사하세요.'],
153
157
  'report.filterAll': ['All statuses', '전체 상태'],
154
158
  'report.filterFailedError': ['Failed/error only', '실패·오류만'],
155
159
  'report.reset': ['Reset filters', '필터 초기화'],
@@ -181,6 +181,8 @@ button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-
181
181
  .report-meta span { padding: 5px 9px; border: 1px solid var(--line); border-radius: var(--radius-control); font-size: 12px; }
182
182
  .case-report { padding: 21px 0; border-top: 1px solid var(--line); }
183
183
  .case-report h3 { margin: 0 0 9px; font-size: 16px; }
184
+ .case-id-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 9px; }
185
+ .case-id-copy-status { min-width: 0; overflow-wrap: anywhere; }
184
186
  .case-report p { margin: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
185
187
  .report-errors { color: var(--accent-text) !important; white-space: pre-wrap; overflow-wrap: anywhere; }
186
188
  .preferences-section { margin: 0 0 calc(var(--space-factor) * 38px); }
package/docs/mobile.md CHANGED
@@ -9,7 +9,7 @@ Choose **Mobile** on the scenario screen, describe the flow, and generate or dow
9
9
  With the installed CLI:
10
10
 
11
11
  ```sh
12
- npm install -g @ihyeon/flow-qa@0.8.4
12
+ npm install -g @ihyeon/flow-qa@0.8.5
13
13
  flow-qa init ./my-qa
14
14
  # Write your mobile flow in my-qa/flows/my-flow.md first.
15
15
  flow-qa plan flows/my-flow.md --platform mobile --prompt-only --workspace ./my-qa
package/docs/releases.md CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  The alpha entries below are historical release records. They document earlier package versions and checks.
4
4
 
5
+ ## 0.8.5: copy case IDs from detailed reports
6
+
7
+ Each case in the detailed report now has a **Copy case ID** button. It copies only the recorded ID and shows success or failure beside that case, with English and Korean messages. If clipboard access is blocked or unavailable, the message explains how to copy the ID manually from the heading.
8
+
9
+ Only the clicked button is disabled while copying. Feedback from a previous report, language, navigation state, or removed row is ignored. Filtering, sorting, downloads, evidence links, failed/error preparation, and recorded results keep their existing behavior.
10
+
11
+ Locally verified on macOS with Node.js 24.22.1 on 2026-11-10 (Asia/Seoul): 118 tests, type checking, UI syntax/design-system audit, the report-explorer browser smoke, and package checks passed. Browser fixtures covered exact-ID copying after filters/sorting, success, rejection, missing Clipboard API, pending-button isolation, stale detached/navigation responses, English/Korean, and a 390px layout. A fresh tarball installation ran seven passing browser cases and verified the copy action in the installed UI. Clipboard writes were stubbed to avoid changing the host clipboard; OS clipboard permissions were not tested. No model calls, external logins, or native-device runs were used.
12
+
13
+ - Package: [`@ihyeon/flow-qa@0.8.5`](https://www.npmjs.com/package/@ihyeon/flow-qa/v/0.8.5)
14
+ - Release: [GitHub 0.8.5](https://github.com/hyeonse-swing/flow-qa/releases/tag/v0.8.5)
15
+
5
16
  ## 0.8.4: find cases with repeated attempts
6
17
 
7
18
  Detailed reports now offer **Case order → Most attempts first**. Cases sort by the number of saved attempts, keeping equal counts in their original order and placing zero-attempt cases last. Timing availability does not affect this order, and the view does not infer retries or change recorded outcomes. English and Korean labels are available.
package/docs/ui.md CHANGED
@@ -7,7 +7,7 @@ Describe a user flow, review cases, and configure a target when ready to run. We
7
7
  Node.js 24.x (24.22.1 or later) or 26.12.1 or later is required. Node 25 is unsupported. Upgrade the Node runtime and restart any running UI process; updating Flow QA alone does not patch Node. Install Flow QA and start the web demo:
8
8
 
9
9
  ```sh
10
- npm install -g @ihyeon/flow-qa@0.8.4
10
+ npm install -g @ihyeon/flow-qa@0.8.5
11
11
  flow-qa browser install
12
12
  flow-qa ui --demo
13
13
  ```
@@ -86,6 +86,8 @@ From `0.8.3`, **Case order → Longest attempt time first** sorts visible cases
86
86
 
87
87
  From `0.8.4`, **Case order → Most attempts first** brings cases with more recorded attempts to the top. Equal counts retain recorded order; cases with zero attempts follow attempted cases. This uses the saved attempt list only and does not infer a retry policy, change case status, or depend on duration availability.
88
88
 
89
+ From `0.8.5`, **Copy case ID** below a case heading copies only that case ID, including after filtering or sorting. Success or failure is shown beside that button. If the browser blocks clipboard access or the API is unavailable, select the ID in the heading and copy it manually. Copying does not start a run or change report data.
90
+
89
91
  From `0.8.0`, open **Run history → Detailed report** and use **Search cases** with **Case status** to narrow the displayed results. Search ignores case and surrounding whitespace, and matches case IDs, titles, reasons, expected results, attempt errors, secondary errors, step labels, and step errors. User-written Korean text is supported. Artifact paths and translated status labels are not search fields.
90
92
 
91
93
  **Failed/error only** shows those two recorded statuses; the other status choices distinguish passed, failed, error, blocked, flaky, and skipped. Status-option counts describe the entire open report, while the displayed count shows matches out of that report's recorded cases. A partial run's omitted cases are not included in those counts; its selected/full-suite scope remains visible separately. Report-level warnings remain visible even when no case matches. **Reset filters** clears search and status and restores recorded order.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihyeon/flow-qa",
3
- "version": "0.8.4",
3
+ "version": "0.8.5",
4
4
  "license": "MIT",
5
5
  "author": "Hyeonse Im",
6
6
  "repository": {