chore(activation): replace gateCheckMode with reviewCheckMode on the maintainer-activation surface - #5455
Conversation
…maintainer-activation surface (#5373) Removes currentGateMode (MaintainerActivationPreview) and the gateCheckMode passthrough on the POST /activation response, replacing both with a reviewCheckMode-based equivalent instead of dropping the information outright -- reviewCheckMode is strictly more informative (required/visible/disabled vs. the old off/enabled) and was already the real value driving the recommendedAction/currentlyActive decision; gateCheckMode was purely a display echo that never affected any logic in buildMaintainerActivationPreview. Updates the UI (activation-preview.tsx's "gate {…}" status pill and its local response type) to match, and rewrites the #2852 legacy-yml mismatch regression test: gateCheckMode/reviewCheckMode can no longer diverge on this surface since the display field IS reviewCheckMode now, so the test keeps its real invariant (recommendedAction follows reviewCheckMode only) without the now-meaningless gateCheckMode echo.
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
gittensory-ui | 987e547 | Commit Preview URL Branch Preview URL |
Jul 12 2026, 08:06 PM |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5455 +/- ##
==========================================
- Coverage 94.48% 94.44% -0.04%
==========================================
Files 554 554
Lines 44450 44450
Branches 14663 14663
==========================================
- Hits 41999 41982 -17
- Misses 1776 1793 +17
Partials 675 675
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-12 20:10:54 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 non-blocking
Concerns raised — review before merging
📋 Copy for AI agents — paste into your coding agent
Review context
Contributor next steps
Signal definitions
[BETA] Chat with GittensoryAsk Gittensory a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/gittensory-commands Visual preview
Click any thumbnail to open the full-size screenshot. Before = production · After = this PR's preview deploy. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|


Summary
Stage 2.8 of #5373's staged removal plan.
currentGateMode(MaintainerActivationPreview) and thegateCheckModepassthrough on thePOST /activationresponse, replacing both with areviewCheckMode-based equivalent instead of dropping the information outright --reviewCheckModeis strictly more informative (required/visible/disabledvs. the oldoff/enabled) and was already the real value driving therecommendedAction/currentlyActivedecision;gateCheckModewas purely a display echo that never affected any logic inbuildMaintainerActivationPreview.activation-preview.tsx's"gate {…}"status pill and its local response type) to match.#2852legacy-yml-mismatch regression test:gateCheckMode/reviewCheckModecan no longer diverge on this surface since the display field isreviewCheckModenow, so the test keeps its real invariant (recommendedActionfollowsreviewCheckModeonly, regardless of any other setting) without the now-meaninglessgateCheckModeecho.Test plan
npm run typechecknpm run ui:typechecknpm run ui:lintnpm run docs:drift-checktest/unit/maintainer-activation.test.ts,test/integration/maintainer-activation.test.ts-- 19/19activation-previewtest suite -- 7/7