Repository navigation
fix(action-center): one date sort, most recent first by default, a clickable Updated column, AC numbers on rows, and no tab or menu counts - #2418
Merged
Conversation
…a clickable Updated column
The Actions list's Newest sort ordered rows by creation date, which the list
shows nowhere, so beside the Updated column ("5d, 5d, 6d, 16d, 8d ago") its
order read as wrong, and people couldn't tell it from Recently updated.
- One date sort, by the shown date: Recently updated (most recent first) is
now the default; Newest is gone from the dropdown and ?sort=newest in old
links lands on the same date sort. Priority and Due date stay.
- The Updated and Priority Score headers sort on a click: most recent (or
highest) first, then the other way round (?sort=updated_asc /
?sort=priority_asc), with an arrow and aria-sort; the dropdown names the
current sort.
- Ties keep one order (the later action number first, then id), and
getActions reads in the same order, so the 1,000-row cap keeps the most
recently updated, the same ones on every read.
- Each row shows the action's code ("AC-251", as Chat names it) on the line
under its title, and the search finds it by "AC-251", "ac-251" or "251".
The code is built by one helper (actionCode) and matched by one
(matchesActionCode) for the list, its search and CSV, and the drawer and
its exports; the list CSV's number column now holds the code.
- Help (Action Center actions) and the docs guide say how the list sorts and
that the number is shown and searchable.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
…he menu's Action Center The owner found the counts disagreeing with the lists: "Signals 207" over a list whose All chip said 445, "Actions 53" over 55, and the menu's Action Center "53". Each counted a different set from its list (untriaged signals of all time; open actions unassigned or the person's), so the number read as wrong. The owner asked to remove the numbers rather than align them: the menu's dots already say when something is new or waiting, and each list shows its own count. - The Action Center tab row shows no count beside Actions or Signals. Agents keeps its count of agents waiting on the person. - The menu (sidebar and mobile) shows no number beside Action Center. - What only those counts used is gone: the menu read's open-action count (MenuStateAsk.count, MenuState.openActions, openActionCount, OpenActionsCount, ACTION_CENTER_ITEM, the menuDots.openActions string) and the tab's new-signal read (getNewSignalCount). getMyOpenActionCount stays for Today. The lists, their default filters, the KPI cards and the chips' counts are unchanged. - Help (Dots in the menu) no longer describes the number. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
This was referenced Nov 14, 2026
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
Conflicts: - help/chat/chat.md: main's keywords (Settings in the chat menu) plus this branch's (most important actions, top actions, action title); main's new text and this branch's "Ask about your actions" section both kept. - action-ref.test.ts: both sets of tests (actionRef from this branch; actionCode, searchedActionNo and matchesActionCode from main's ansvisor#2418). actionCode now builds its code with actionRef, so one formatter remains. - web/src/lib/chat/skills/library.json: regenerated from skills/*/SKILL.md (yarn vitest run -u src/lib/chat/skills). - approved-articles.json: regenerated (yarn vitest run -u src/lib/help). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
cihan-gyk
pushed a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Nov 16, 2026
…umbers Brings the updated ansvisor#2420, which carries upstream main. Conflicts: - action-ref.ts and action-ref.test.ts: this branch's versions (actionCode from the brand's number via actionCodeNo, with every test from both branches and ansvisor#2418). - server/src/lib/action-center/from-chat.js: main's Ads source (`source` param, verifiedPlace without a conversation for Ads) and this branch's `brandNo` in the answer and actionCode in the duplicate message. - from-chat.test.js: main's Ads test now expects the answer's brandNo for the same key again (this branch's answer shape). - server/src/lib/demo/coverage.js: both SKIPPED entries, brand_number_counters (00534) and mentions_terms_packed_ready (00540). - supabase/schema.sql: regenerated (bash supabase/build-schema.sh); 00534 sits before 00535-00540 by file order. - library.json and approved-articles.json: regenerated, unchanged from the automatic merge. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SvzkMf5TZg7yqwaSeMFba9
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
The owner asked for these three changes after reviewing the Actions list (
/dashboard/action-center/actions).The changes are in two commits: sorting and numbers first, then the count removal.
Changes
Sorting
?sort=. Newest is gone from the dropdown, and old?sort=newestlinks open the same date sort, so they still work. Priority and Due date are unchanged.?sort=updated_asc).?sort=priority_asc). Actions with no score yet stay last in both directions.aria-sort. The dropdown's trigger names the current sort, for example "Least recently updated".getActionsused to read up to 1,000 rows in no particular order. It now reads in the same order as the default sort (updated_at desc, action_no desc). Above the cap, the list keeps the most recently updated actions, and the same ones on every read. There is no pagination. No index is needed: the read is already filtered by(brand_id, status), so Postgres only sorts one brand's rows.web/src/lib/action-center/sort.ts.ActionSortmoves there fromregistry.ts.Action numbers
actionCode()andmatchesActionCode()inweb/src/lib/action-center/action-ref.ts. The list rows, the search, the list CSV, the drawer header and the drawer's exports all use them.numbercolumn. It now holds the same "AC-251" code the list shows, where it used to hold the bare number.Tab and menu counts
MenuStateAsk.count,MenuState.openActions,openActionCount,OpenActionsCount,ACTION_CENTER_ITEMand themenuDots.openActionsstring;getNewSignalCount.getMyOpenActionCountstays because Today uses it. Thesignals_new_countdatabase function now has no caller, but it stays (no migration).menu-state.ts, a'use server'file, is removing internal code. Its exports are still async functions and types only.Strings, Help and docs
en.json:table.sortTo(the header's tooltip);sort.newestandmenuDots.openActions.approved-articles.jsonis regenerated.How to test
?sort=. The dropdown reads Sort: Recently updated, and the Updated column runs from the most recent down. The dropdown offers Recently updated, Priority and Due date, and no Newest.…/actions?sort=newest. The list is sorted the same way as in step 1, andsortdrops out of the URL.?sort=updated_asc, and the trigger reads Least recently updated. Click it again to go back to most recent first.?sort=priority). Click again for lowest first (?sort=priority_asc). Unscored actions stay last. Refresh: the sort is kept.Checks
tsc --noEmit): clean.src/components/action-centerandsrc/components/layout;src/lib/action-center;src/lib/actions/action-signals,action-center*,menu-stateandtoday*;src/lib/menu-dots;use-server-exports;-u.?sort=newestmapping to that sort;aria-sortand the arrows;Generated by Claude Code