Repository navigation
feat(action-center): copy or export everything an action shows - #1070
Merged
Merged
Conversation
…ls by platform
The Signals list never said which AI platform or location a signal was
about, and named platforms by their raw ids ("Visibility dropped on
gemini-web", "Weak in JP"). Part one of AC-002:
- Each row's Affected cell gets a line with the engines and locations the
signal is about: from the payload for platform and country signals, and
from the prompts' tracked platforms and locations for prompt and topic
signals. A line rather than a column keeps the table within the page
beside a pinned sidebar.
- Platforms and locations read as people know them ("Gemini", "Japan").
- Descriptions carry the measured fact instead of a generic sentence, e.g.
"Your mention rate fell from 34% to 18% against the week before."
- A Platform filter, search over platform and location names, and
platforms and locations columns in the CSV export.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every action's drawer gets Copy Data, Export CSV and Export Excel (AC-005). Copy Data opens the whole action as Markdown, every tab of the drawer, to copy a part or all of it with one click; the copy falls back to the browser's copy command where the clipboard API is blocked. The CSV (action-AC-52.csv, UTF-8 with a BOM) has a row per task and per signal marked by a section column; the Excel workbook has a sheet each for the action, its tasks, its signals and its history. Adds the write-excel-file package, loaded only when a workbook is asked for. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
# Conflicts: # web/src/components/action-center/action-drawer.tsx
…ed event text Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 15, 2026
…ure/action-export
8 of 12 tasks
…ure/action-export
…ure/action-export
# Conflicts: # web/src/lib/action-center/display.test.ts
The History line now comes from actionEventText, so the title (ansvisor#1078) and outcome (ansvisor#1079) values that main added inline move into it, with a test.
gkhngyk
approved these changes
Oct 17, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Thanks, approving. I merged main into the branch. With #1058 squashed and #1078, #1079 and #1101 in, the History line keeps your actionEventText, and the title and outcome values those PRs added inline now go through it, with a test. The drawer reads export buttons in the header, then the Status / Assignee / Due date row, then the tabs. Against main the diff is only this PR's files, and CI (including yarn test and yarn build with write-excel-file installed) is green.
gkhngyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 17, 2026
main carries ansvisor#1058 as a squash, so its files come from main and this branch keeps only its own commit on top; schema.sql is regenerated. The export fixtures from ansvisor#1070 gain SignalWhere's new topics field.
7 of 12 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
AC-005, with Excel added on request: every action's drawer gets Copy Data, Export CSV and Export Excel in its header. Stacked on #1058 for the signals' platforms and locations; please review the second commit,
feat(action-center): copy or export everything an action shows, or merge #1058 first.Copy Data
The window: a click opens the whole action as Markdown, everything the drawer's tabs show:
What it was sent from:
Copying: the reader can select any part to copy, or copy all of it with the icon in the text's corner. The icon turns into a check, and a toast says "Action AC-52 copied: 6 tasks, 87 signals".
Blocked clipboard: where the clipboard API is blocked (an insecure page, an embedded browser), the icon falls back to the browser's copy command. The spec asks for this.
Export CSV
action-AC-52.csv, as the spec names it, UTF-8 with a BOM so Excel keeps Turkish characters.sectioncolumn (task/signal). Every row also carriesaction(AC-52) and the shared columns: type, entity, status, platforms, locations, dates and link.toCsv).Export Excel
action-AC-52.xlsx, with a sheet each for the action, its tasks, its signals and its history. Headers are bold and the header row is sticky.write-excel-file4.1.1 (MIT, one dependency,fflate, already in the lockfile). It is by the author ofread-excel-file, which we already use, and is loaded only when someone asks for a workbook.Shared code
actionEventTextmoves the History sentence intodisplay.ts, so the drawer and the export say the same thing.opportunityLists(lib/content) is what both the drawer and the export list of an opportunity.lib/time-zone).Not in this PR
These AC-005 items wait on other work:
affectedrows)Review
I ran a code review before the final changes. All seven findings are fixed:
Related issue
None. Product spec AC-005 (Action Center), plus Excel.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
action-AC-<n>.csvopens in Excel and Google Sheets with Turkish characters intact, one row per task and signal.action-AC-<n>.xlsxhas the Action, Tasks, Signals and History sheets.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): 0 errors; the 7 warnings are in files this PR doesn't touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
yarn test: 577/577. New:export.test.ts: the export model, Markdown, CSV, workbook and file names. It also writes the real.xlsxand reads it back withread-excel-file.action-export-buttons.test.tsx:yarn build: passes.🤖 Generated with Claude Code