[self-care:reactive-ui] Sync reactive-ui skill with element registration and view validation

Aperta Adatta ai principianti
#21,740 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, markdown
Ambito
documentation

Direzione di ricerca

Inizia con .github/skills/reactive-ui/SKILL.md, quindi confronta le sue tre sezioni di guida con VIEW_KEYS, VIEW_ELEMENT_VALUES e il comportamento del validatore in dashboard/site/src/specification.js e dashboard/site/src/validator-views.js. Verifica la registrazione degli elementi e il comportamento dello stato non disponibile rispetto a dashboard/site/src/components/ui-elements.js e dashboard/site/src/presenter.js. Il lavoro è completo quando ogni affermazione modificata corrisponde alla fonte citata e il test del catalogo continua a superarsi; la creazione della pull request può richiedere l’intervento di un maintainer, perché il file skill è protetto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

agentic-workflows pull-request-fallback self-care self-care:reactive-ui-expert

The reactive-ui skill told authors to give named UI elements a view-level intent and implied elements render their own unavailable states by default. The current validator and presenter contradict both. This PR corrects the skill only; no production code, dashboard JSON, or tests change.

Action: Maintainer to review the three guidance edits; acceptance check is that each statement matches the cited source.

No eligible JSON-only view-source migration was found. Every data.source in dashboard.json and its fragments resolves to a declared query, a database projection, or a runtime source. The only remaining JavaScript-shaped sources are configuration-policy (external, reviewed inventory) and the operational-value evidence packet normalization. Neither can move to pure JSON without changing production JavaScript, so this fell back to skill drift.

Corrections
  • intent on views. VIEW_KEYS in specification.js has no intent; only page key lists do, and validator-views.js rejects unknown view keys. The skill now says to record the rationale in the view objective and declare consumed sources in data.sources.
  • Element registration. The skill now lists the other places a new element must be registered: VIEW_ELEMENT_VALUES (enforced in validator-views.js) and a row in docs/dashboard-view-catalog.md (enforced by dashboard-view-catalog.test.js). It also notes that interaction-only elements with data.sources: [], like inventory-sync from #21595, must be added to the allow-lists in validator-views.js and renderElementView.
  • Unavailable states. EMPTY_AWARE_ELEMENTS and UNAVAILABLE_AWARE_ELEMENTS are separate sets in ui-elements.js, and the presenter renders the shared state unless an element opts in. The skill previously described only the first.
Evidence
  • dashboard/site/src/specification.js (VIEW_KEYS, VIEW_ELEMENT_VALUES)
  • dashboard/site/src/validator-views.js (validateView)
  • dashboard/site/src/presenter.js (renderElementView)
  • dashboard/site/src/components/ui-elements.js (EMPTY_AWARE_ELEMENTS, UNAVAILABLE_AWARE_ELEMENTS)
  • dashboard/site/test/unit/dashboard-view-catalog.test.js
  • Commit a1d816c00 (#21595)
Validation
  • npx vitest run test/unit/dashboard-view-catalog.test.js passed (4 tests).
  • node --test tests/unit/workflow-contract-selfcare-dashboard.test.mjs tests/unit/control-policy.test.mjs passed (64 tests).
  • npm run docs:build passed.
  • Dashboard typecheck, lint, vitest, and corpus validation were not run because no dashboard source changed.
  • Full npm test could not run: its Go server build fails in this sandbox because the Go toolchain download hits a TLS error.
  • A diff scan found no secrets.
Control Plane

cao: githubnext/gh-cao, correlation: 46148156627-5012


[!WARNING]
Protected Files — Push Permission Denied

This was originally intended as a pull request, but the change modifies protected files. A human must create the pull request manually.

Protected files

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the artifact from the workflow run
gh run download '46148599269' -n agent -D '/tmp/agent-46148599269'

# Resolve the bundle source ref, fetch it into a temporary ref, then create the local branch
bundle_path='/tmp/agent-46148599269/aw-githubnext-gh-cao-self-care-reactive-ui-skill-sync.bundle'
temp_ref='refs/bundles/create-pr-self-care-reactive-ui-skill-sync-02d5f5b0b18c6ccd-2cc2ee01'
target_ref='refs/heads/self-care/reactive-ui-skill-sync-02d5f5b0b18c6ccd'
bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 ~ /^refs\/heads\// { print $2 }')
if [ -z "$bundle_source_ref" ]; then
  bundle_source_ref=$(git bundle list-heads "$bundle_path" | awk '$2 == "HEAD" { print $2 }')
fi
if [ "$(printf '%s\n' "$bundle_source_ref" | sed '/^$/d' | wc -l | tr -d ' ')" != "1" ]; then
  echo "Expected exactly one bundle source ref, found: $bundle_source_ref" >&2
  exit 1
fi
git fetch "$bundle_path" "${bundle_source_ref}:${temp_ref}"
git update-ref "$target_ref" "$temp_ref"
git checkout 'self-care/reactive-ui-skill-sync-02d5f5b0b18c6ccd'
# Ensure the working tree matches the updated branch
git reset --hard
# Remove the temporary bundle ref
git update-ref -d "$temp_ref"

# Push the branch and create the pull request
git push origin self-care/reactive-ui-skill-sync-02d5f5b0b18c6ccd
gh pr create --title '[self-care:reactive-ui] Sync reactive-ui skill with element registration and view validation' --base main --head self-care/reactive-ui-skill-sync-02d5f5b0b18c6ccd --repo githubnext/gh-cao
Allow intentional protected-file changes

If this workflow is intended to modify these files, add a supported exclusion to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the top-level dot-folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: fallback-to-issue
      exclude:
        - .changeset/

Keep your existing policy and exclusions. Top-level dot-folder exclusions use folder names, not glob patterns; .changeset/ allows all files beneath the top-level .changeset folder, including subfolders. Other protected files still follow the configured policy. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Proposed in this workflow run.

  • expires on Dec 5, 2026, 1:28 PM UTC

Generated by SelfCare / Reactive UI Expert · copilot · routed: sonnet55 high · ~164 AIC · ⌖ ~2 AIC · ⊞ 10.4K · history

Lingua principale
JavaScript
Stelle
23
Fork
8
Merge medio
7h 18m
PR unite (30g)
426

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di githubnext/gh-cao

Tutte le issue di githubnext/gh-cao

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.