injast-core 1.0.80 → 1.0.82
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/guidelines/Guidelines.md +64 -23
- package/guidelines/components/buttons.md +41 -12
- package/guidelines/components/data-display.md +39 -1
- package/guidelines/components/date-inputs.md +47 -6
- package/guidelines/components/feedback.md +84 -4
- package/guidelines/components/forms.md +172 -7
- package/guidelines/components/layout.md +108 -6
- package/guidelines/components/overview.md +23 -4
- package/guidelines/foundations/color.md +46 -23
- package/guidelines/foundations/icons.md +72 -0
- package/guidelines/foundations/spacing.md +85 -25
- package/guidelines/foundations/typography.md +41 -18
- package/guidelines/runtime.md +141 -0
- package/guidelines/setup.md +166 -11
- package/guidelines/types.md +60 -0
- package/package.json +2 -1
- package/skills/injast-app-builder/SKILL.md +49 -0
- package/skills/injast-app-builder/agents/openai.yaml +4 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: injast-app-builder
|
|
3
|
+
description: Build or revise Persian RTL mobile product app flows with Injast Core and the Gold reference app. Use when Codex is asked to implement Injast Core screens, Figma-to-Injast designs, Gold-style buy/sell or drawer flows, Persian mobile app UI, or to enforce Injast guidelines around 520px shells, wired navigation, Injast inputs, and drawer-based pre-invoices.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Injast App Builder
|
|
7
|
+
|
|
8
|
+
## Required References
|
|
9
|
+
|
|
10
|
+
Read these before implementing or reviewing an Injast app flow:
|
|
11
|
+
|
|
12
|
+
- `guidelines/Guidelines.md` from the installed `injast-core` package.
|
|
13
|
+
- Focused guideline files linked from that document for setup, layout, forms, feedback, data display, date inputs, icons, runtime, and types.
|
|
14
|
+
- `/Users/ali/Documents/Gold` as the canonical reference app for composition, 520px shell, wired state, drawer pre-invoices, and Persian mobile product behavior when that reference is available locally.
|
|
15
|
+
|
|
16
|
+
## Implementation Workflow
|
|
17
|
+
|
|
18
|
+
1. Inspect the target app and the relevant Gold reference files before editing.
|
|
19
|
+
2. Keep runtime component APIs unchanged unless the user explicitly asks for package source changes.
|
|
20
|
+
3. Build Persian RTL flows with `SPAThemeProvider` for Vite/Figma Make apps or `ThemeProvider` for Next.js apps.
|
|
21
|
+
4. Center mobile app surfaces with `maxWidth: 520` or `max-width: 520px` plus `mx: "auto"` or `margin-inline: auto`.
|
|
22
|
+
5. Wire the product flow end to end: navigation actions, submit buttons, drawers, modals, close actions, and confirmations must update route or local state.
|
|
23
|
+
6. Verify the result against the Gold reference behavior and the focused guidelines.
|
|
24
|
+
|
|
25
|
+
## Figma MCP Workflow
|
|
26
|
+
|
|
27
|
+
For Figma-driven work, use the Figma MCP server at:
|
|
28
|
+
|
|
29
|
+
```text
|
|
30
|
+
http://127.0.0.1:3845/mcp
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use this sequence:
|
|
34
|
+
|
|
35
|
+
1. Fetch design context for the exact node or frame.
|
|
36
|
+
2. Fetch a screenshot for the same target before implementation.
|
|
37
|
+
3. If the payload is too large, fetch metadata and then narrow to the needed node.
|
|
38
|
+
4. Translate the design into Injast Core conventions. Do not keep generic React, Tailwind, raw controls, or mobile OS chrome from MCP output as final code.
|
|
39
|
+
|
|
40
|
+
## Hard Rules
|
|
41
|
+
|
|
42
|
+
- Use Injast Core components before raw HTML or direct Material UI primitives.
|
|
43
|
+
- Use Injast inputs for every field: `TextField`, `NumberInput`, `InputPhoneNumber`, `CardNumberInput`, `OtpInput`, `Select`, `MultiSelect`, `Autocomplete`, `Checkbox`, `Radio`, `Toggle`, `Slider`, or `CounterBoxInput`.
|
|
44
|
+
- Use `iconsax-react` for generated app icons.
|
|
45
|
+
- Do not implement mobile OS status bars or decorative app status bars, even when present in Figma.
|
|
46
|
+
- Pre-invoices (`پیشفاکتور`) are drawer or bottom-sheet overlays, not independent pages.
|
|
47
|
+
- Drawers must feel like drawers: fixed overlay, backdrop, centered 520px sheet, visible close path, and entrance/exit motion from the drawer edge.
|
|
48
|
+
- When useful, dim, blur, or subtly scale the underlying page while an overlay is open.
|
|
49
|
+
- Keep generated apps as wired flows, not disconnected screen previews.
|