Skip to content

fix(ui): show a target with skills off as off on the skill page - #927

Merged
runkids merged 1 commit into
mainfrom
runkids/skills-off-target-label
Nov 16, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/skills-off-target-label

Conversation

@runkids

@runkids runkids commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

Refs #925. Not "Closes": the wording of "All" in the Set targets menu, which the reporter also found confusing, is still open.

What was wrong

The sync matrix reports a target as na in two cases: it is in symlink mode, or skills are switched off for it. The skill detail page read every na as symlink mode. A target with skills off showed "Symlink mode, filters do not apply" with its switch on and counted toward "4 of 4", although skillshare writes nothing there. The Skills list shows only the targets a skill reaches, so the two pages contradicted each other.

Response from a real dashboard server with one target of each kind:

{"skill": "demo", "target": "copilot", "status": "na", "reason": "skills off for this target"}
{"skill": "demo", "target": "universal", "status": "synced", "reason": "", "reasonCode": "sync_matrix.synced"}
{"skill": "demo", "target": "claude", "status": "na", "reason": "symlink mode — filters not applicable", "reasonCode": "sync_matrix.symlink_filters_not_applicable"}

Change

The detail page now uses receivesSkill, the rule the Sync page already applies: only a symlinked folder counts as carrying the skill. A target with skills off shows "Skills off" (existing targets.skillsOff key), with its switch off and out of the count. The per-project count on the same page follows the same rule. Symlink-mode targets and agents are unchanged.

Checks

  • npx vitest run in ui/ (devcontainer): 111 files, 922 tests passed.
  • tsc -b: no errors. eslint on the changed files: no warnings.
  • A throwaway rendered check of the page with three targets (skills off, symlink, synced): off / on / on, "2 of 3". It failed before the fix. It is not committed, since wiki/frontend.md keeps rendered tests for user data; the committed test pins receivesSkill instead.
  • Not run: make check, the full eslint ., a browser screenshot.

Not covered

  • The Skills list page's own handling of na (symlink-mode targets missing from the Targets column): Skills list ignores symlink-mode targets #926.
  • The reporter's setup is inferred from the screenshots. If those three targets are in symlink mode instead, this change does not alter what they see.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check) — UI tests, type check and lint of the changed files passed; make check itself was not run
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

The sync matrix reports a target as `na` both when it is in symlink
mode and when skills are switched off for it. The skill detail page
read every `na` as symlink mode, so a skills-off target showed
"Symlink mode, filters do not apply" with its switch on and counted
toward "4 of 4", although nothing syncs there. Next to a Skills list
that shows only the targets the skill reaches, the two pages
contradicted each other (#925).

Use receivesSkill, the rule the Sync page already applies, so only a
symlinked folder counts as carrying the skill, and label the other
case "Skills off".
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-16T15:23:08.910292Z 9c0d6fd PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit 06b72eb into main Nov 16, 2026
9 checks passed
@runkids
runkids deleted the runkids/skills-off-target-label branch November 16, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant