@ihyeon/flow-qa 0.8.3 → 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 +1 -1
- package/README.md +1 -1
- package/dist/src/ui/public/app.js +40 -1
- package/dist/src/ui/public/i18n.js +5 -0
- package/dist/src/ui/public/index.html +1 -1
- package/dist/src/ui/public/style.css +2 -0
- package/docs/mobile.md +1 -1
- package/docs/releases.md +22 -0
- package/docs/ui.md +5 -1
- package/package.json +1 -1
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.
|
|
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.
|
|
19
|
+
npm install -g @ihyeon/flow-qa@0.8.5
|
|
20
20
|
flow-qa browser install
|
|
21
21
|
flow-qa ui --demo
|
|
22
22
|
```
|
|
@@ -702,7 +702,14 @@
|
|
|
702
702
|
const label = option.value === 'all' ? t('report.filterAll') : option.value === 'failed-error' ? t('report.filterFailedError') : i18n.status(option.value);
|
|
703
703
|
option.textContent = `${label} (${counts[option.value]})`;
|
|
704
704
|
}
|
|
705
|
-
for (const option of $('report-case-sort').options)
|
|
705
|
+
for (const option of $('report-case-sort').options) {
|
|
706
|
+
const labelKey = {
|
|
707
|
+
recorded: 'report.sortRecorded',
|
|
708
|
+
'duration-desc': 'report.sortDurationDescending',
|
|
709
|
+
'attempts-desc': 'report.sortAttemptsDescending'
|
|
710
|
+
}[option.value];
|
|
711
|
+
option.textContent = t(labelKey);
|
|
712
|
+
}
|
|
706
713
|
if ($('report-case-search').value !== app.reportFilter.search) $('report-case-search').value = app.reportFilter.search;
|
|
707
714
|
$('report-case-status').value = app.reportFilter.status;
|
|
708
715
|
$('report-case-sort').value = app.reportFilter.sort;
|
|
@@ -722,6 +729,7 @@
|
|
|
722
729
|
if (rightDuration === null) return -1;
|
|
723
730
|
return rightDuration - leftDuration || left.index - right.index;
|
|
724
731
|
});
|
|
732
|
+
else if (app.reportFilter.sort === 'attempts-desc') shown.sort((left, right) => (right.item.attempts || []).length - (left.item.attempts || []).length || left.index - right.index);
|
|
725
733
|
const displayed = shown.map(({ item }) => item);
|
|
726
734
|
$('report-case-count').textContent = t('report.caseCount', { shown: displayed.length, total: cases.length });
|
|
727
735
|
const host = $('report-case-list'); replace(host);
|
|
@@ -731,6 +739,37 @@
|
|
|
731
739
|
const attemptCount = (item.attempts || []).length;
|
|
732
740
|
const attemptCountLabel = t(attemptCount === 1 ? 'report.attemptCountSingular' : 'report.attemptCountPlural', { count: attemptCount });
|
|
733
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);
|
|
734
773
|
const totalAttemptTime = reportCaseTotalAttemptDurationMs(item.attempts);
|
|
735
774
|
if (totalAttemptTime !== null) section.append(el('p', 'hint case-attempt-time', t('report.totalAttemptTime', { duration: totalAttemptTime })));
|
|
736
775
|
if (item.reason) section.append(el('p', '', t('app.reason', { reason: item.reason })));
|
|
@@ -149,6 +149,11 @@
|
|
|
149
149
|
'report.sortLabel': ['Case order', '케이스 정렬'],
|
|
150
150
|
'report.sortRecorded': ['Recorded order', '기록 순서'],
|
|
151
151
|
'report.sortDurationDescending': ['Longest attempt time first', '시도 시간이 긴 순'],
|
|
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를 선택해 직접 복사하세요.'],
|
|
152
157
|
'report.filterAll': ['All statuses', '전체 상태'],
|
|
153
158
|
'report.filterFailedError': ['Failed/error only', '실패·오류만'],
|
|
154
159
|
'report.reset': ['Reset filters', '필터 초기화'],
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
<div id="comparison-results" hidden><div id="comparison-warnings"></div><div id="comparison-summary"></div><div class="comparison-filter-row"><label for="comparison-filter" data-i18n="comparison.filter">Show cases</label><select id="comparison-filter" aria-controls="comparison-content"><option value="" data-i18n="comparison.all">All categories</option><option value="newly-failed" data-i18n="comparison.newlyFailed">Newly failed</option><option value="now-passed" data-i18n="comparison.nowPassed">Now passed</option><option value="changed" data-i18n="comparison.changed">Changed status</option><option value="unchanged" data-i18n="comparison.unchanged">Same status</option><option value="added" data-i18n="comparison.added">Added to current</option><option value="missing" data-i18n="comparison.missing">Missing from current</option></select></div><div class="actions comparison-actions"><button type="button" id="comparison-md" class="button" data-i18n="comparison.downloadMarkdown" disabled>Download comparison Markdown</button><button type="button" id="comparison-json" class="button quiet" data-i18n="comparison.downloadJson" disabled>Download comparison JSON</button><button type="button" id="compare-open-baseline" class="button quiet" data-i18n="comparison.openBaseline" disabled>View baseline report</button><button type="button" id="compare-open-current" class="button quiet" data-i18n="comparison.openCurrent" disabled>View current report</button></div><div id="comparison-content"></div></div>
|
|
105
105
|
</div>
|
|
106
106
|
</section>
|
|
107
|
-
<section id="report-panel" class="report-panel" hidden><div class="section-head"><span class="section-number">03</span><div><h2 data-i18n="history.report">Detailed report</h2><p id="report-heading"></p></div></div><div class="section-body"><div class="actions"><button type="button" id="report-md" class="button" data-i18n="history.downloadMarkdown">Download Markdown</button><button type="button" id="report-json" class="button quiet" data-i18n="history.downloadJson">Download JSON</button><button type="button" id="report-rerun" class="button primary" disabled data-i18n="history.prepareFailed">Prepare failed/error cases</button></div><p class="hint" data-i18n="history.prepareHint">Passed, flaky, blocked, and skipped cases are excluded. Preparation does not start a run.</p><p class="hint" data-i18n="history.evidenceHint">The report summarizes results. Open or download screenshots and recordings from each attempt. Evidence files are not included in report downloads.</p><div class="report-case-filters"><div><label for="report-case-search" data-i18n="report.searchLabel">Search cases</label><input id="report-case-search" type="search" aria-controls="report-case-list" placeholder="Search ID, title, expected result, or errors" data-i18n-placeholder="report.searchPlaceholder"></div><div><label for="report-case-status" data-i18n="report.statusLabel">Case status</label><select id="report-case-status" aria-controls="report-case-list"><option value="all">All</option><option value="failed-error">Failed/error only</option><option value="passed">passed</option><option value="failed">failed</option><option value="error">error</option><option value="blocked">blocked</option><option value="flaky">flaky</option><option value="skipped">skipped</option></select></div><div><label for="report-case-sort" data-i18n="report.sortLabel">Case order</label><select id="report-case-sort" aria-controls="report-case-list"><option value="recorded" data-i18n="report.sortRecorded">Recorded order</option><option value="duration-desc" data-i18n="report.sortDurationDescending">Longest attempt time first</option></select></div><button type="button" id="report-case-reset" class="button quiet" data-i18n="report.reset">Reset filters</button></div><p id="report-case-count" class="hint" role="status" aria-live="polite"></p><p class="hint" data-i18n="report.filterHint">Filters and sorting only change the displayed cases. Downloads include all cases, and failed/error preparation uses all recorded failed/error cases regardless of visibility.</p><div id="report-content"></div></div></section>
|
|
107
|
+
<section id="report-panel" class="report-panel" hidden><div class="section-head"><span class="section-number">03</span><div><h2 data-i18n="history.report">Detailed report</h2><p id="report-heading"></p></div></div><div class="section-body"><div class="actions"><button type="button" id="report-md" class="button" data-i18n="history.downloadMarkdown">Download Markdown</button><button type="button" id="report-json" class="button quiet" data-i18n="history.downloadJson">Download JSON</button><button type="button" id="report-rerun" class="button primary" disabled data-i18n="history.prepareFailed">Prepare failed/error cases</button></div><p class="hint" data-i18n="history.prepareHint">Passed, flaky, blocked, and skipped cases are excluded. Preparation does not start a run.</p><p class="hint" data-i18n="history.evidenceHint">The report summarizes results. Open or download screenshots and recordings from each attempt. Evidence files are not included in report downloads.</p><div class="report-case-filters"><div><label for="report-case-search" data-i18n="report.searchLabel">Search cases</label><input id="report-case-search" type="search" aria-controls="report-case-list" placeholder="Search ID, title, expected result, or errors" data-i18n-placeholder="report.searchPlaceholder"></div><div><label for="report-case-status" data-i18n="report.statusLabel">Case status</label><select id="report-case-status" aria-controls="report-case-list"><option value="all">All</option><option value="failed-error">Failed/error only</option><option value="passed">passed</option><option value="failed">failed</option><option value="error">error</option><option value="blocked">blocked</option><option value="flaky">flaky</option><option value="skipped">skipped</option></select></div><div><label for="report-case-sort" data-i18n="report.sortLabel">Case order</label><select id="report-case-sort" aria-controls="report-case-list"><option value="recorded" data-i18n="report.sortRecorded">Recorded order</option><option value="duration-desc" data-i18n="report.sortDurationDescending">Longest attempt time first</option><option value="attempts-desc" data-i18n="report.sortAttemptsDescending">Most attempts first</option></select></div><button type="button" id="report-case-reset" class="button quiet" data-i18n="report.reset">Reset filters</button></div><p id="report-case-count" class="hint" role="status" aria-live="polite"></p><p class="hint" data-i18n="report.filterHint">Filters and sorting only change the displayed cases. Downloads include all cases, and failed/error preparation uses all recorded failed/error cases regardless of visibility.</p><div id="report-content"></div></div></section>
|
|
108
108
|
</section>
|
|
109
109
|
<section id="view-settings" class="view" hidden>
|
|
110
110
|
<div class="page-heading"><p class="eyebrow" data-i18n="settings.eyebrow">04 / CONNECTIONS</p><h1 data-i18n="nav.settings">Connections</h1><p data-i18n="settings.intro">Configure run targets and models separately. Key values are read only from server environment variables.</p></div>
|
|
@@ -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.
|
|
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,28 @@
|
|
|
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
|
+
|
|
16
|
+
## 0.8.4: find cases with repeated attempts
|
|
17
|
+
|
|
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.
|
|
19
|
+
|
|
20
|
+
The option works with the existing search/status filters and preserves the same report-navigation and reset behavior. Downloads keep the complete original report, evidence links retain their indices, and failed/error preparation keeps its full scope.
|
|
21
|
+
|
|
22
|
+
Locally verified on macOS with Node.js 24.22.1 on 2026-11-09 (Asia/Seoul): 118 tests, type checking, UI syntax/design-system audit, the report-explorer browser smoke, and package checks passed. Browser fixtures covered attempt-count ordering, stable ties, zero attempts, invalid timing independence, search/status combinations, full exports, original evidence indices, rerun scope, persistence/reset behavior, English/Korean, and a 390px layout. A fresh tarball installation ran seven passing browser cases and verified attempt ordering and reset in the installed UI. No model calls, external logins, or native-device runs were used.
|
|
23
|
+
|
|
24
|
+
- Package: [`@ihyeon/flow-qa@0.8.4`](https://www.npmjs.com/package/@ihyeon/flow-qa/v/0.8.4)
|
|
25
|
+
- Release: [GitHub 0.8.4](https://github.com/hyeonse-swing/flow-qa/releases/tag/v0.8.4)
|
|
26
|
+
|
|
5
27
|
## 0.8.3: find slow cases by recorded attempt time
|
|
6
28
|
|
|
7
29
|
Detailed reports now offer **Case order → Longest attempt time first**. The view sorts by the sum of valid recorded attempt durations, keeps equal totals in their original order, and places unknown or invalid totals after all valid totals, including zero. **Recorded order** restores the original order; **Reset filters** also resets sorting. 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.
|
|
10
|
+
npm install -g @ihyeon/flow-qa@0.8.5
|
|
11
11
|
flow-qa browser install
|
|
12
12
|
flow-qa ui --demo
|
|
13
13
|
```
|
|
@@ -84,6 +84,10 @@ From `0.8.1`, each case heading also shows the number of attempts recorded in th
|
|
|
84
84
|
|
|
85
85
|
From `0.8.3`, **Case order → Longest attempt time first** sorts visible cases by their total recorded attempt time. Equal totals keep their recorded order. Missing, incomplete, invalid, or overflowing totals appear after valid totals, including zero. **Recorded order** restores the original report order.
|
|
86
86
|
|
|
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
|
+
|
|
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
|
+
|
|
87
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.
|
|
88
92
|
|
|
89
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.
|