Skip to content

Commit abdebe5

Browse files
authored
feat(design-system): add two skills deslop, get my pr comments [AR-26986] (#177)
1 parent 9381dc7 commit abdebe5

5 files changed

Lines changed: 19 additions & 18 deletions

File tree

.cursor/notepads/add-play-tests.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,3 @@ For each story without `play`, generate an interaction test following these rule
1111
5. Await all interactions: `await userEvent.click(...)`, `await expect(...)`
1212
6. Don't test implementation details (no data attributes, no CSS selectors), unless it's a required part of the story
1313
7. Test user-visible behavior: render check, click interactions, callback assertions
14-
15-
For stories with callback args, verify the callback was called:
16-
17-
```tsx
18-
await userEvent.click(button);
19-
await expect(args.onClick).toHaveBeenCalledOnce();
20-
```
21-
22-
For stories showing disabled state, verify interactions are blocked:
23-
24-
```tsx
25-
await userEvent.click(element, { pointerEventsCheck: 0 });
26-
await expect(args.onClick).not.toHaveBeenCalled();
27-
```

.cursor/notepads/check-ark-ui.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ I'm about to build a component. Before writing custom code, check if Ark UI alre
55
Steps:
66

77
1. Call the Ark UI MCP `list_components` tool with `framework: "react"` to get all available components.
8-
2. If a matching component exists:
9-
- Call `get_component_props` with `framework: "react"` and the component name to show me the full API.
10-
- Call `get_example` with `framework: "react"`, the component name, and `exampleId: "basic"` to show a usage example.
11-
- Call `styling_guide` with the component name to show data attributes I can use in SCSS.
8+
2. If a matching component exists (framework: "react"):
9+
- Get the components name and get the full API.
10+
- Get the basic usage example.
11+
- Get a styling guide with the component name to show data attributes I can use in SCSS.
1212
3. If no match exists, tell me, so I know to build custom.
1313

1414
When showing the Ark UI API, highlight:

.cursor/rules/storybook.mdc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,21 @@ export const Default: Story = {
4141
};
4242
```
4343

44+
For stories with callback args, verify the callback was called:
45+
46+
```tsx
47+
await userEvent.click(button);
48+
await expect(args.onClick).toHaveBeenCalledOnce();
49+
```
50+
51+
For stories showing disabled state, verify interactions are blocked:
52+
53+
```tsx
54+
await userEvent.click(element, { pointerEventsCheck: 0 });
55+
await expect(args.onClick).not.toHaveBeenCalled();
56+
```
57+
58+
4459
---
4560

4661
## Date Mocking

.cursor/skills/deslop/SKILL.md

Whitespace-only changes.

.cursor/skills/get-pr-comments/SKILL.md

Whitespace-only changes.

0 commit comments

Comments
 (0)