diff --git a/CLAUDE.md b/CLAUDE.md index 17560ee..2e58740 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -10,6 +10,7 @@ - **Tooling Reliance:** Do not act as a syntax linter or formatter. Rely on ESLint, Stylelint, and Prettier (see Commands below) and CI to catch formatting/lint issues. - **Never amend commits:** Always create a new commit instead of `git commit --amend`, even for a small immediate follow-up fix (e.g. a lint/format correction) to a commit made moments earlier. This holds regardless of whether the original commit has been pushed. - **Run Prettier before committing:** Run `npx prettier --write` on changed files (or `npm run format`) before creating a commit, so CI's Prettier check doesn't fail on avoidable formatting issues. +- **Keep the commit title short:** The subject line must fit the conventional-commit standard of ~50 characters and never exceed 72 — GitHub truncates longer titles in the commits list and PR view, so the point of the change gets cut off. Recent history here has titles that are far too long; don't copy them. Write `: ` and put the detail in the commit body, not the title. - **No AI co-author trailer:** Never add a `Co-Authored-By: Claude ...` (or similar AI-attribution) line to commit messages. - **Branch from a local ref, not a remote-tracking ref:** Never run `git checkout -b origin/main` (or `origin/`) to create a feature branch. Passing a remote-tracking ref as the start-point makes git auto-set that branch's upstream to it (`branch.autoSetupMerge`), so a later push with no explicit destination silently targets `main`/that remote branch instead of creating `origin/` — this already caused a rejected push straight to `main`. Instead branch from local `main` (`git checkout -b main`, after `git fetch`/`git pull` if it needs to be current) so no upstream is auto-configured, and only set one explicitly via `git push -u origin ` when actually pushing. diff --git a/src/app/analyzer/math-channel-modal/math-channel-modal.css b/src/app/analyzer/math-channel-modal/math-channel-modal.css index a3953f2..968647d 100644 --- a/src/app/analyzer/math-channel-modal/math-channel-modal.css +++ b/src/app/analyzer/math-channel-modal/math-channel-modal.css @@ -69,3 +69,13 @@ font-size: 0.85em; padding: 6px 4px; } + +.math-tag-note { + font-size: 0.8rem; + color: var(--text-secondary); + margin: 6px 0 0; +} + +.math-tag-note strong { + color: var(--accent, var(--text-primary)); +} diff --git a/src/app/analyzer/math-channel-modal/math-channel-modal.html b/src/app/analyzer/math-channel-modal/math-channel-modal.html index d27063d..97a9cf8 100644 --- a/src/app/analyzer/math-channel-modal/math-channel-modal.html +++ b/src/app/analyzer/math-channel-modal/math-channel-modal.html @@ -91,7 +91,12 @@

Create Math Channel

No signals match. } - } @else if (input.isConstant && input.options) { + @if (appliedTag(); as tag) { +

+ Preselected {{ selectedSources().length }} signal(s) for the + {{ tag }} tag. +

+ } } @else if (input.isConstant && input.options) {