Repository navigation
feat(messaging): Setup lists the Slack page where connector-slack is composed (Part of #34730) - #35973
Conversation
…composed SLACK_SETUP_UI_BUNDLE contributes Setup > Integrations > Slack (componentRef messaging:slack, requiredPermissions setup.write), registered in the slack channel's kernel:ready hook so a composition without connector-slack lists no entry. Nav label in all eleven platform locales; the nav i18n gate roster and the Integrations order pin read the bundle. Changeset carries the owed slack_link_removed topic sentence. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
… the Setup app The Setup entry pin constructs a SchemaRegistry, so the suite declares the registry log level check:registry-log-declared asks of every such suite. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
…ntegrations order pin Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
📓 Docs Drift CheckThis PR changes 3 package(s): 8 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:
⛔ 3 release-owned page(s) also name something this change touched. These are read-only:
What this run could not see
Coarse fallback — 45 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin aa037d0bb0f0ac025fa5a8ad90dcb3febe7105fe && git checkout aa037d0bb0f0ac025fa5a8ad90dcb3febe7105fe
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin e72f2aa07d2c9b363b61f1fa950acbbaa10a7bd6 60b28db3589d524c96fdbcaafa8279c95400154e && git checkout -B drift-repro e72f2aa07d2c9b363b61f1fa950acbbaa10a7bd6 && git merge --no-ff 60b28db3589d524c96fdbcaafa8279c95400154e
node scripts/docs-audit/affected-docs.mjs --json e72f2aa07d2c9b363b61f1fa950acbbaa10a7bd6
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4cwxJaQdC11ABGtTez8 L1 verdict (L1-a): ACCEPT at head Gates on this head: The entry is gated where it should be. Tests, run here, with a positive control. a4-W's point 1: files beyond the claim's
Every one of these is mechanical, nobody else claims it, and the body declares it. a4-W's point 2: my #35968 N1. With this PR, the guide's "Without the connector none of this appears" is true of everything a person is shown: no Slack channel in Notification Settings, and no Slack entry in Setup. What remains is a page someone could still type the address of, and that page answers with the server's own "no Slack transport" sentence. True enough, so no clause is owed. If the guide is touched again, it could say so in passing. The changeset, sentence by sentence: every claim in the Setup bullet is true of the diff: the entry under Integrations, what the page does, Declarations: Landing: a4-W lands #35973 with or before #35968, so the Setup page and its entry arrive together. Generated by Claude Code |
|
repo:objectstack#4 · os-elon-musk · session_016WV4cwxWUDevGYuHGney5V Landing (area a4-W, seat 4) · 2026-11-21T09:32Z · head
|
Requested by Elon · project thread
Part of #34730
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
Step 3 of #34730, server half: Setup's menu entry for the Slack page that PR #35968 adds (component
messaging:slack, gated bysetup.write, today reachable only at/apps/setup/component/messaging/slack). This PR was written in sessionsession_016WV4czKnDE6hsyXQzB9wB2.service-messaging/src/slack-setup-ui.ts):SLACK_SETUP_UI_BUNDLEcontributes Setup › Integrations (group_integrations) › Slack,type: 'component',componentRef: 'messaging:slack',requiredPermissions: ['setup.write'](theSLACK_ADMIN_CAPABILITYevery Slack administrator door asks), priority 140: after Connector Credentials / Connector Connections (120), before Cloud Connection (200). The shape copiesCONNECTOR_CREDENTIALS_UI_BUNDLEin service-automation.MessagingServicePluginregisters the bundle through themanifestservice inside the samekernel:readyhook as theslackchannel, after the sameif (!getSlack()) return;. Without connector-slack, no entry. A composition with nomanifestservice gets no entry and still boots (the pattern's try/catch).apps.setup.navigation.nav_slack.label=Slack(the product name, kept verbatim asWebhooksis inzh-CN) in all eleven platform locales underpackages/platform-objects/src/apps/translations/, with the source digest recorded in the seven locales that record one for the neighbouringnav_connector_connections(c3c9e181e8c74b22, computed withhashSource; control:Connector Connectionsreproduces the committed949e9a8fd25c3d57).packages/cli/scripts/check-app-nav-i18n.mjsgains a roster row readingSLACK_SETUP_UI_BUNDLE(theservice-automationrow's shape, since the bundle registers atkernel:ready), so the label is judged in every locale;packages/cli/test/setup-integrations-order.pin.test.tsorders it as its own tier.packages/cli/vitest.config.tsresolves@objectstack/service-messagingto source (check:test-source-aliasasked for it);packages/services/service-messaging/vitest.config.tsdeclaresOS_REGISTRY_LOG: 'warn'(check:registry-log-declaredasked for it, since the new pin folds aSchemaRegistry)..changeset/34730-s3b-slack-setup-entry.md, patch on service-messaging and platform-objects): the entry, plus the sentence owed from step 2: the topicmessaging.slack_link_removedis listed byGET /api/v1/messaging/preference-optionsandGET /api/v1/messaging/me/preferenceson every deployment, and is emitted only where connector-slack is composed (when an administrator removes a person's link or the organization's install).Read first:
messaging-service-plugin.ts(the hook, the riskiest hunk: the registration must stay behind the slack guard),slack-setup-ui.ts,slack-channel-composition.test.ts.Two-minute check:
pnpm --filter @objectstack/service-messaging exec vitest run src/slack-channel-composition.test.tsshows 5 passed, among them "with a slack service: the entry is registered once and served under Integrations" and "without a slack service: no entry is registered and Integrations serves none".Evals
Base
523ada4cc0; tests below atfd50ed384d/60b28db358(final head; the last commit only adds the cli alias).Pins: with and without connector-slack, through the Setup app fold
The new top-level describe sits in the existing slack composition harness (
slack-channel-composition.test.ts), whosecompose({ slack })bootsMessagingServicePluginwith and without connector-slack'sslackservice. The harness now records what the plugin registers withmanifest, and each side folds those manifests into the Setup app the way the meta door serves it (SchemaRegistry.registerApp(SETUP_APP)+setPackageNavContributions, thengetApp('setup')):group_integrationsservesnav_slackwithcomponentRef: 'messaging:slack'andrequiredPermissions: ['setup.write'];nav_slackin the served group, while the same boot registered the messaging manifest;ManifestSchema, andsetup.writeis a declared org-scoped platform capability.pnpm --filter @objectstack/service-messaging testonfd50ed384d:Test Files 79 passed (79),Tests 1060 passed (1060),VERDICT command-exit 0.pnpm --filter @objectstack/cli exec vitest run --project unit test/setup-integrations-order.pin.test.tson60b28db358:Tests 1 passed (1).pnpm --filter @objectstack/platform-objects exec vitest run src/apps/translations/:Test Files 26 passed (26),Tests 587 passed (587).node packages/cli/scripts/check-app-nav-i18n.mjs:OK (14 contributor(s), 11 locale(s), 2 app(s) — setup: 61 merged nav id(s), account: 15 merged nav id(s) — every id labelled in every locale);--self-testexit 0.Ablations (all through scripts/ablation-replace.mjs, each restored to HEAD with git diff HEAD empty)
...register(SLACK_SETUP_UI_BUNDLE);replaced by a marker): anchor 1 to 0, blob794db597159atoa5675d9a239f;Tests 1 failed | 4 passed (5), the failure being "with a slack service: the entry is registered once and served under Integrations".if (!getSlack()) return;): anchor 1 to 0;Tests 2 failed | 3 passed (5): both "without a slack service" cases, the step-2 channel pin and the new entry pin.expected Set{ 'nav_cloud_connection' } to deeply equal Set{ 'nav_slack' }.The messaging tests import the plugin by relative path (source), and the cli pin reaches source through the new alias, so no rebuild sits between mutation and run.
Type-check and gates
pnpm --filter @objectstack/service-messaging typecheck && pnpm --filter @objectstack/platform-objects typecheck && pnpm --filter @objectstack/cli typecheck: exit 0.node scripts/pm/dispatch-gates.mjs --commandsderived 77 commands on the final head60b28db358: all 77 exit 0, and--ranreconciles 77 of 77 with a derived zero NOT-MEASURED. First run (74 on5380a29a6a) was red oncheck:registry-log-declaredandcheck:test-source-alias(fixed by the two vitest config entries above) and refused on a missing build forcheck:i18nandcheck:dual-build-cjs-loads(exit 3; green after building the closures they name).node scripts/pm/overlap-check.mjs --branch=claude/area-a4W-34730-s3b:VERDICT clean exit 0(no open PR shares a file).@objectstack/cliunit layer (a two-worker local run passed 570 s without finishing and was stopped, so it is NOT MEASURED here; Test Core runs it).Acceptance notes
packages/services/service-messaging/src/**: the order asks for nav label i18n "following the pattern", and the pattern's labels live inpackages/platform-objects/src/apps/translations/and are judged by the cli roster gate and order pin, so those files, and the two vitest configs the gates asked for, ride here. No ui, spec or skills change.Metadata-protocol: nonemeasured: the entry adds no authorable key, value or metadata type; it is a navigation contribution a deployment without connector-slack never sees (it is not registered there)./api/v1/meta/appdoor serves, not through an HTTP request to that door; booting ObjectQL plus REST in service-messaging's suite would add a full engine boot for the same fold.https://claude.ai/code/session_016WV4czKnDE6hsyXQzB9wB2
🤖 Generated with Claude Code