Skip to content

chore: updated AGENTS.md - #435

Merged
NikGurev merged 2 commits into
mainfrom
chore/AGENTSmd
Jul 31, 2026
Merged

chore: updated AGENTS.md#435
NikGurev merged 2 commits into
mainfrom
chore/AGENTSmd

Conversation

@NikGurev

@NikGurev NikGurev commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Updated AGENTS.md according to latest review from angular developers.

It initiates common rules for stories creation, component architecture, etc.

Summary by CodeRabbit

  • Documentation
    • Added contributor guidance for creating Storybook stories, using accessible component props, designing compound component APIs, exporting public prop types, and following API validation and approval workflows.

@NikGurev NikGurev self-assigned this Jul 30, 2026
@NikGurev
NikGurev requested a review from KamilEmeleev as a code owner July 30, 2026 09:35
@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Changes

Contributor guidance

Layer / File(s) Summary
Storybook and component API guidance
AGENTS.md
Adds conventions for Storybook stories, ARIA-aligned props, and compound components.
API Extractor workflow guidance
AGENTS.md
Adds procedures for component registration, API report regeneration, and approval of exported type or signature changes.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: kamilemeleev

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the main change: an update to AGENTS.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/AGENTSmd

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Jul 30, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 22c293c):

https://react-koobiq-next--prs-435-l045yinp.web.app

(expires Wed, 05 Aug 2026 10:35:04 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: fc29847d4a9e5cb1adf458c76a9b681c76e2eeff

@NikGurev

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
AGENTS.md (2)

186-190: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Add public export steps to the API checklist.

tools/api-extractor/config.json registers API reports. It does not replace exports from the component index.ts and packages/components/src/components/index.ts. Add those export steps before updating the API Extractor registry and reports.

Suggested checklist update
 When adding a **new component** to the public API:

-1. Add its name to the `components` array in `tools/api-extractor/config.json`.
-2. Run `pnpm build && pnpm approve-api` to regenerate its `.api.md` report.
-3. Commit the updated `config.json` and `.api.md` files alongside the component.
+1. Export it through the component's local `index.ts` and `packages/components/src/components/index.ts`.
+2. Add its name to the `components` array in `tools/api-extractor/config.json`.
+3. Run `pnpm build && pnpm approve-api` to regenerate its `.api.md` report.
+4. Commit the updated exports, `config.json`, and `.api.md` files alongside the component.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 186 - 190, Update the new-component checklist in
AGENTS.md to first require exporting the component from its component index.ts
and from packages/components/src/components/index.ts, then retain the existing
API Extractor registration and report-generation steps.

203-203: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Define the documentation location for shared utilities.

Not every exported utility has a component-owned MDX file. Require component MDX for component-scoped utilities and package-level documentation for shared utilities.

Suggested wording
-Every exported utility needs its intended usage scenario documented in the component's MDX —
+Every exported utility needs its intended usage scenario documented. Use the component's MDX for component-scoped utilities and package-level documentation for shared utilities.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` at line 203, Update the documentation requirement in AGENTS.md to
distinguish utility scope: require component-owned MDX for component-scoped
exported utilities, and package-level documentation for shared utilities when no
component MDX applies. Preserve the requirement to document each utility’s
intended usage scenario.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@AGENTS.md`:
- Around line 150-151: Update the ARIA guidance in AGENTS.md to clarify that
aria-label and other standard ARIA attributes supplement, rather than replace,
visible-content props such as label; explicitly state that aria-label does not
render visible text.

---

Nitpick comments:
In `@AGENTS.md`:
- Around line 186-190: Update the new-component checklist in AGENTS.md to first
require exporting the component from its component index.ts and from
packages/components/src/components/index.ts, then retain the existing API
Extractor registration and report-generation steps.
- Line 203: Update the documentation requirement in AGENTS.md to distinguish
utility scope: require component-owned MDX for component-scoped exported
utilities, and package-level documentation for shared utilities when no
component MDX applies. Preserve the requirement to document each utility’s
intended usage scenario.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eaa2162d-0523-442a-993c-dae560774678

📥 Commits

Reviewing files that changed from the base of the PR and between d112224 and 7652dd9.

📒 Files selected for processing (1)
  • AGENTS.md

Comment thread AGENTS.md Outdated
Comment thread AGENTS.md
Comment thread AGENTS.md Outdated
Comment thread AGENTS.md Outdated
```

- All boolean props default to `false`. If `true` would be the natural default, invert the name (e.g. `hideArrow` instead of `showArrow={true}`).
- Prefer passing through real ARIA attributes (`role`, `aria-label`, `aria-labelledby`, `aria-hidden`) over inventing custom semantic props like `label`/`decorative` — it matches patterns consumers already know, and avoids clashing with props that mean something else elsewhere in the library (e.g. `label` usually means visible text).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Предлагаю оставить только первый пункт, перенести его в Prop System и сократить до: “Prefer standard ARIA attributes and existing prop names to keep component APIs consistent and familiar.” Второй и третий — удалить.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Исправил

Comment thread AGENTS.md
@NikGurev
NikGurev requested a review from KamilEmeleev July 31, 2026 10:34

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
AGENTS.md (1)

187-193: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Add public export registration to the API checklist.

The checklist updates API Extractor configuration and reports, but it does not tell contributors to export the component through its local index.ts and packages/components/src/components/index.ts, as required by Line 202. Add these steps before regenerating the API report.

Proposed wording
 When adding a **new component** to the public API:

-1. Add its name to the `components` array in `tools/api-extractor/config.json`.
-2. Run `pnpm build && pnpm approve-api` to regenerate its `.api.md` report.
-3. Commit the updated `config.json` and `.api.md` files alongside the component.
+1. Export it through its local `index.ts` and `packages/components/src/components/index.ts`.
+2. Add its name to the `components` array in `tools/api-extractor/config.json`.
+3. Run `pnpm build && pnpm approve-api` to regenerate its `.api.md` report.
+4. Commit the updated exports, `config.json`, and `.api.md` files alongside the component.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@AGENTS.md` around lines 187 - 193, Update the public API checklist in
AGENTS.md to instruct contributors to export each new component from its local
index.ts and from packages/components/src/components/index.ts before running
pnpm build && pnpm approve-api and committing the generated API files.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@AGENTS.md`:
- Around line 187-193: Update the public API checklist in AGENTS.md to instruct
contributors to export each new component from its local index.ts and from
packages/components/src/components/index.ts before running pnpm build && pnpm
approve-api and committing the generated API files.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a11fab01-a247-40d5-9e26-1725c1143d0a

📥 Commits

Reviewing files that changed from the base of the PR and between 7652dd9 and 22c293c.

📒 Files selected for processing (1)
  • AGENTS.md

@NikGurev
NikGurev merged commit b0d0108 into main Jul 31, 2026
7 checks passed
@NikGurev
NikGurev deleted the chore/AGENTSmd branch July 31, 2026 17:13
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.

2 participants