Skip to content

fix(server): honor the project's ignore: in the project dashboard - #991

Merged
runkids merged 1 commit into
mainfrom
runkids/project-dashboard-ignore
Nov 23, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/project-dashboard-ignore

Conversation

@runkids

@runkids runkids commented Nov 23, 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

No issue.

What was wrong

In project mode, the dashboard (skillshare ui -p) ignored the project config's ignore: (copy-mode file ignores):

  • Sync copied the files ignore: lists into copy-mode targets.
  • Diff checksummed them, so editing an ignored file marked the skill as changed.

skillshare sync -p and skillshare diff -p leave those files out.

The project dashboard runs on a config built from the project. The reload that runs before each API request refreshed its sources and targets from .skillshare/config.yaml, but not ignore:, which stayed empty.

Fix

The reload also copies the project's ignore: (internal/server/server.go). Dashboard sync, /api/diff and /api/diff/stream read it from there, as the CLI does. Because the reload runs before each API request, an edit to ignore: applies on the next one.

Tests

TestProjectDashboard_AppliesIgnore serves a project with a copy-mode target and ignore: [notes.md].

  • Sync: notes.md is not copied. This fails on main.
  • Diff: after notes.md gets a newer mtime, the skill is not listed as changed. This fails when only the diff handler drops the project's patterns.

Checks

  • make check passes in the devcontainer.

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) — for code changes
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

`skillshare ui -p` builds its config from the project, and the reload
that runs before each API request refreshed the sources and targets but
not `ignore:`. Dashboard sync therefore copied files the project's
`ignore:` lists into copy-mode targets, and diff checksummed them, while
`skillshare sync -p` and `diff -p` left them out.

The reload now carries the project's `ignore:` too, so the dashboard's
sync, diff and diff stream match the CLI, and an edit to `ignore:`
applies on the next request.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-23T06:06:52.759302Z 9fb966e 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 99652b6 into main Nov 23, 2026
10 checks passed
@runkids
runkids deleted the runkids/project-dashboard-ignore branch November 23, 2026 06:12
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