Repository navigation
feat(dashboard): list atlas services with no confirmed install for admins - #1270
Conversation
…mins The admin's open items held only services whose install broke. Every enabled Sahaj Atlas client whose map was never confirmed now lists too, as "Not installed", split into not detected and detected but unconfirmed, dated from when the client was added. A service's own home leaves these out: its Install tab already says so. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🚅 Deployed to the SahajCloud-pr-1270 environment in sahajcloud
1 service not affected by this PR
|
sydevs-bot
left a comment
There was a problem hiding this comment.
🧐 Adversarial review
Holistic. The diff is the size of its own stated problem: one branch in readServiceRows, one status in STATUS_TABLE, one union variant, two tests. It adds no module, no dependency and no knob, and reuses reportedMountsFor, rowTarget and the status table. The union split is what docs/code-style.md asks for over more | null fields, and nothing outside status.ts reads the row's fields. Both findings are about what the PR says, not what it does.
Findings
should-fix— the Preview section predicts three "Not installed" rows; the fixture makes four (src/lib/atlasOverview/openItems.ts:363).should-fix— "Not installed" is now defined in two rule files (docs/rules/admin-navigation.md:35).consider—Added <date>is the client record's creation date (src/lib/atlasOverview/openItems.ts:369).
What was checked
- Read whole:
openItems.ts,status.ts,fixture/clients.ts,ids.ts,installModel.ts, both specs. new-pieces.mjs→NONE: no streamliner ran, no ladder walk owed. The one new import already has two callers.- Whole-file pass on
status.ts, which the diff grows: the new status joinsSTATUS_TABLErather than branching at a call site, its prompt is inline like the two beside it rather than inPROMPTS, which holds only invariant ones, androwTargetneeded no change. Nothing to reclaim. - The dismissed "failing SEO with no
verified" finding checks out:verifyMountgates the SEO run on a verified outcome (seoCheckRun.ts:134) and a failing pass keepsverified(verification.ts:238). sortOpenItemscomparessinceascending, so "oldest first within the rank" holds. Nothing outside the two changed files readsmissingOn,checkedAtorreleasedAt.- Both preview links
ON_HOST, both cited ids present and showing their claim.
🤖 Written by the sydevs autonomous loop — see what this is
Generated by Claude Code
The admin home paragraph defined "Not installed" and said it was an admin's alone; clients.md stated both in the same diff. The condition belongs with the verification story it comes out of, so this names the status and links there, keeping only what this file owns: that no other home shows it, and why. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Mg9rjYV7yYCz5AiiTskWNs
|
All three critic threads answered. Pushed 0f6ea56.
The branch already holds 🤖 Written by the sydevs autonomous loop — see what this is Generated by Claude Code |
|
The newest commit, 0f6ea56, is sydevs-bot's own, so it is not approved on your behalf. Read it, then say 🤖 sydevs dispatcher |
|
@sydevs-bot approve |
There was a problem hiding this comment.
Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. 🤖 Written by the sydevs autonomous loop — see what this is
Summary
Change outline
Behaviour — which atlas services an admin's list holds
readServiceRowsnow decides each enabledsahaj-atlas-clientclient in a fixed order, so no service is listed twice.A page that was never confirmed but a nightly check has already missed stays "Map not found". That install has started, and the miss says why.
Types — the service row
The service row now has two variants. A not-installed row carries only its state and when the client was added.
Behaviour — how the row reads
A new
not-installedstatus: grey pill, rank 4, no filter. That places it below broken installs and search problems, and the oldest client comes first within the rank.Docs — where "Not installed" is defined
docs/rules/clients.mdowns the condition, beside the verification story it comes out of.docs/rules/admin-navigation.mdnames the status and links there, keeping only what the admin home owns: that no other home shows it, and why.Preview
On a preview the nightly
VerifyEmbedsnever runs, so a client's verification is only what the fixture stores. Every enabled atlas client the fixture leaves unconfirmed and unmissed therefore lists as "Not installed / Atlas not detected yet", since none of them reports a mount either.src/fixture/clients.ts). 1022003 is on it despite having been checked once: that attempt wasinconclusive, which neither confirms nor misses. The disabled client 1022006 is not listed.Test results
digests.int.spec.ts9 passed,atlas-overview.int.spec.ts22 passed,open-item-status.spec.ts35 passedManual verification
Notes for reviewer
/simplifyand/code-review high, because the review toolkit plugin is not installed.Dismissed review findings
docs/rules/clients.md.embedMetadatafor the admin scope only." A client stores at most 50 mounts, about 0.5 KB in practice. A conditional select drops the field from Payload's inferred type, so it would need a cast or a second query.verifiedshows only as Not installed." That state cannot occur: SEO checks run only on a pass that verified the mount, and that pass setsverified.Added <date>is the client record's creation date, and may be a batch day for the existing fleet."sinceis a timestamp, so a shared day costs the line its signal, not the order, and nothing here creates clients in bulk. It is also the only date a never-checked row carries.🤖 Generated with Claude Code