From 441c8052ba56f994ad5ab2aa9755f434b7ea1269 Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Tue, 24 Mar 2026 17:41:00 +0100 Subject: [PATCH 1/2] chore: add rule on shared components --- AGENTS.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index fd05da23bf6..ca10c9a4211 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -181,6 +181,11 @@ export default connect((state) => ({ }))(MyComponent); ``` +### Shared components should have a single look and feel + +Shared components in `/compass-components` define the baseline design system. +Avoid adding new props or configuration options to a shared component to satisfy a one-off request for a visual change. If a new feature requires a different look and feel, bring up the discrepancy and ask for feedback on how to move forward. + ## Commits and pull requests When drafting git commit messages or GitHub pull requests for this repository, follow the conventions described in `COMMIT_MESSAGES.md`. From c83688aea559c8027d008a041344f843e46abe28 Mon Sep 17 00:00:00 2001 From: Paula Stachova Date: Tue, 24 Mar 2026 17:51:13 +0100 Subject: [PATCH 2/2] Update AGENTS.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- AGENTS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index ca10c9a4211..884a64a39eb 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -183,7 +183,7 @@ export default connect((state) => ({ ### Shared components should have a single look and feel -Shared components in `/compass-components` define the baseline design system. +Shared components in `packages/compass-components` define the baseline design system. Avoid adding new props or configuration options to a shared component to satisfy a one-off request for a visual change. If a new feature requires a different look and feel, bring up the discrepancy and ask for feedback on how to move forward. ## Commits and pull requests