Skip to content

feat(dashboard): list atlas services with no confirmed install for admins - #1270

Merged
Ardnived merged 4 commits into
mainfrom
claude/admin-uninstalled-services
Nov 25, 2026
Merged

Ardnived merged 4 commits into
mainfrom
claude/admin-uninstalled-services

Conversation

@Ardnived

@Ardnived Ardnived commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The admin's open items now list every enabled Sahaj Atlas client that no check has confirmed or missed yet, as "Not installed".
  • This lets admins follow up with each service and track the move to the new atlas. Installs that started and failed stay "Map not found".

Change outline

Behaviour — which atlas services an admin's list holds

readServiceRows now decides each enabled sahaj-atlas-client client in a fixed order, so no service is listed twice.

 readServiceRows(scope)                                   src/lib/atlasOverview/openItems.ts
   missingOn = failureCount ? primaryPageUrl(site) : null
+  admin scope, !missingOn, no verification.verified
+    → "Not installed" row
+      reportedMountsFor(embedMetadata, site) non-empty → 'unconfirmed'
+      otherwise                                       → 'not-detected'
   missingOn or a failing SEO check → existing row ("Map not found" / "Search problem")
   otherwise → nothing

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.

 OpenItemRow                                              src/lib/atlasOverview/status.ts
-  { kind: 'service', id, title, checkedAt, missingOn, owned, releasedAt }
+  { kind: 'service', id, title } & (
+    | { notInstalled: null, checkedAt, missingOn, owned, releasedAt }
+    | { notInstalled: 'not-detected' | 'unconfirmed', addedAt }
+  )

Behaviour — how the row reads

A new not-installed status: grey pill, rank 4, no filter. That places it below broken installs and search problems, and the oldest client comes first within the rank.

 serviceStatuses(row)                                     src/lib/atlasOverview/status.ts
+  notInstalled → 'Not installed'
+    lines: 'Atlas not detected yet' | 'Atlas detected, not yet confirmed', 'Added <date>'
+    prompt: '<what is true>. Review the install and follow up with the service.'
   missingOn → 'Map not found'
   else      → 'Search problem'

Docs — where "Not installed" is defined

docs/rules/clients.md owns the condition, beside the verification story it comes out of. docs/rules/admin-navigation.md names 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 VerifyEmbeds never 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.

  • Admin home, signed in as an admin: the open items list "Not installed" rows for clients 1022003, 1022005, 1022007 and 1022008 (src/fixture/clients.ts). 1022003 is on it despite having been checked once: that attempt was inconclusive, which neither confirms nor misses. The disabled client 1022006 is not listed.
  • Client 1022005, Install tab: where a row's Review button leads. "Fixture Orchard Web and Atlas" is enabled and has the atlas role, with a page and no verification.

Test results

  • Lean gate: ✓ (lint, format, typecheck, test typecheck, unit lane: 3896 passed)
  • Targeted specs: digests.int.spec.ts 9 passed, atlas-overview.int.spec.ts 22 passed, open-item-status.spec.ts 35 passed
  • Build: N/A (Railway builds the preview)

Manual verification

  1. Open the admin home on the preview and confirm the four "Not installed" rows, each dated "Added …" and linking to its client's Install tab.

Notes for reviewer

  • The admin's open-items digest reads the same list. An admin who gets that section by email will now see every unfinished service in it, at the pace they chose.
  • The review ran /simplify and /code-review high, because the review toolkit plugin is not installed.
Dismissed review findings
  • "Most never-installed services get 'Map not found', not 'Not installed'." That is the intended split, because an install that has a page and fails its check has started. The comment that said otherwise is fixed, and the split is now in docs/rules/clients.md.
  • "Leave out clients with no page, clients created recently, and internal keys." The request was for every client with the atlas role. A client with no page has not started, and those are the clients this change is for.
  • "Select embedMetadata for 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.
  • "A row with failing SEO results but no verified shows only as Not installed." That state cannot occur: SEO checks run only on a pass that verified the mount, and that pass sets verified.
  • "The int spec's clients are not removed afterwards." No later case in the file counts an admin's items, and the other clients in that case are not removed either.
  • "Added <date> is the client record's creation date, and may be a batch day for the existing fleet." since is 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

Ardnived and others added 3 commits November 25, 2026 09:38
…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]>
@railway-app

railway-app Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1270 environment in sahajcloud

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 25, 2026 at 6:35 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-dispatcher

sydevs-dispatcher Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🤖 no session running

recent dispatches
  • 17:16Z address-review · attempt 1 · session · done
  • 17:16Z address-review · attempt 1 · session
  • 17:08Z review-pr · attempt 1 · session · done
  • 17:08Z review-pr · attempt 1 · session

Written by the sydevs dispatcher. Sessions never edit this comment.

@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 25, 2026

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧐 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 joins STATUS_TABLE rather than branching at a call site, its prompt is inline like the two beside it rather than in PROMPTS, which holds only invariant ones, and rowTarget needed no change. Nothing to reclaim.
  • The dismissed "failing SEO with no verified" finding checks out: verifyMount gates the SEO run on a verified outcome (seoCheckRun.ts:134) and a failing pass keeps verified (verification.ts:238).
  • sortOpenItems compares since ascending, so "oldest first within the rank" holds. Nothing outside the two changed files reads missingOn, checkedAt or releasedAt.
  • 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

Comment thread src/lib/atlasOverview/openItems.ts Resolved
Comment thread docs/rules/admin-navigation.md Resolved
Comment thread src/lib/atlasOverview/openItems.ts Resolved
@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Pending in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot added the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Working in SYDevelopers Technical Roadmap Nov 25, 2026
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
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1270 November 25, 2026 17:24 Destroyed
@sydevs-bot

Copy link
Copy Markdown
Contributor

All three critic threads answered. Pushed 0f6ea56.

The branch already holds main, so no merge. Security review skipped: no path matches the trigger. Gate green, unit lane 3896 passed.

🤖 Written by the sydevs autonomous loop — see what this is


Generated by Claude Code

@sydevs-bot sydevs-bot removed the bot:working Lock: a cloud session is running on this item. Removed when it ends. label Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Working to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher

Copy link
Copy Markdown

The newest commit, 0f6ea56, is sydevs-bot's own, so it is not approved on your behalf. Read it, then say @sydevs-bot approve, or enable auto-merge.

🤖 sydevs dispatcher

@Ardnived
Ardnived enabled auto-merge November 25, 2026 18:21
@Ardnived

Copy link
Copy Markdown
Contributor Author

@sydevs-bot approve

@sydevs-dispatcher sydevs-dispatcher Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Ardnived
Ardnived added this pull request to the merge queue Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Pending in SYDevelopers Technical Roadmap Nov 25, 2026
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 25, 2026
Merged via the queue into main with commit ff99b51 Nov 25, 2026
67 of 75 checks passed
@Ardnived
Ardnived deleted the claude/admin-uninstalled-services branch November 25, 2026 18:38
@sydevs-dispatcher sydevs-dispatcher Bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 25, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1270 — 0f6ea567 Deployed Nov 25, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants