Repository navigation
fix(prompts): show what "Late or missing" leaves and put the furthest behind first - #1098
Merged
gkhngyk merged 2 commits intoOct 16, 2026
Merged
Conversation
… behind first Clicking "Late or missing" on Tracked Prompts seemed to do nothing. It filtered, but nearly every prompt with answers is late or missing on at least one platform (on production, 202 of the 202 answered in 24h), and the list kept its order, so the first page stayed the same and only the row count at the bottom changed. The definition stays (ansvisor#1017). The button now says how many prompts it leaves ("Late or missing · 202", after search and work status), and while it is on the list starts with the prompts furthest behind: - late or missing on the most platforms; - then missing on more of them; - then the worse average position, a prompt never ranked counting as furthest back; - then the more visible. A column picked before is set aside and comes back when the filter is turned off, unless a header is clicked in between; a header click starts at its usual direction. The order is announced in a screen-reader caption, and the button's text moves to en.json. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Collaborator
Author
|
@gkhngyk could you review this when you have a moment? "Late or missing" on Tracked Prompts filtered, but on production every prompt answered in 24h matched (202 of 202) and the order didn't change, so clicking it looked like nothing happened. The definition from #1017 stays; the button now shows its count and the filtered list starts with the prompts furthest behind. At 30d and 90d its count relies on #1094 (the 1000-row cap). |
…ssing-filter # Conflicts: # web/src/app/[locale]/(dashboard)/dashboard/prompts/page.tsx
7 of 12 tasks
gkhngyk
approved these changes
Oct 16, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Thanks, approving. Web tests pass on the tree merged with main and its neighbours (832), and the late-only state only changes through toggleLateOnly, so the ref and the state stay in step. As you note, the count reads low at 30 and 90 days until #1094 lands.
gkhngyk
added a commit
to cihan-gyk/ansvisor
that referenced
this pull request
Oct 16, 2026
…entioned Keeps both sides where ansvisor#1098 added compareLateness next to positionCellKind and opensPositionsPanel.
8 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
Clicking "Late or missing" on Tracked Prompts seemed to do nothing. It now says how many prompts it leaves and lists the furthest behind first.
The filter worked, but its effect was invisible:
The definition stays as #1017 set it. What changes:
Late or missingLate or missing · 202: the prompts it leaves, after search, prompt status (#1054) and work statusFurthest behind first (
compareLatenessinlib/prompt-position-summary.ts):Sorting while the filter is on:
Also: the button's text and title move to
en.json(prompts.lateFilter).Depends on #1094 for 30d and 90d. On
mainthose ranges still lose most prompts' positions to the 1000-row cap, so the count reads low there (167 instead of about 700 on production) until #1094 merges. 24h and 7d are not affected.Related issue
None. Reported by the user on the live Tracked Prompts page.
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
Late or missing · N.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/): no errors; the 7 warnings are in files this PR does not touchyarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run:
web:yarn testpasses (802, withmainmerged in for feat(prompts): show usage cards above the tracked prompts table #1054's usage cards), andyarn buildpasses.lib/prompt-position-summary.test.tstestscompareLateness:In the browser (demo data, 30d):
· 5, and turning it on left 5 of 10 prompts, ordered 8, 6, 3, 2 and 2 platforms behind;I checked at 1024px, in the light and dark themes.
Production, read only: before the change, the filter took 24h from 709 to 202 prompts with the first page unchanged.
Review: a code review raised:
All four are fixed above. A test of the page wiring was left out; the behavior was checked in the browser.
🤖 Generated with Claude Code