diff --git a/CHEATSHEET.md b/CHEATSHEET.md new file mode 100644 index 0000000..8214f53 --- /dev/null +++ b/CHEATSHEET.md @@ -0,0 +1,48 @@ +# Claude Code Cheat Sheet + +## Starting Up + +### Step 1 — Open Terminal +- **Mac:** `Cmd + Space` → type "Terminal" → Enter + +### Step 2 — Start the dev server (Tab 1) +```bash +cd /Users/ssutanto/AI-prototype +npm run dev +``` +Starts React frontend at **http://localhost:5173** and Express API at **http://localhost:3001**. + +### Step 3 — Open a second tab (`Cmd + T`) + +### Step 4 — Launch Claude Code (Tab 2) +```bash +cd /Users/ssutanto/AI-prototype +claude +``` + +### Step 5 — Open the app +``` +http://localhost:5173 +``` + +--- + +## Quick Reference + +| What | Command | +|---|---| +| Start everything | `npm run dev` | +| Launch Claude Code | `claude` | +| Check git status | `git status` | +| Push current branch | `git push` | +| List open PRs | `gh pr list` | +| Merge PR (squash) | `gh pr merge --squash --delete-branch` | + +--- + +## Tips + +- **Figma MCP** — open the Figma desktop app *before* starting Claude Code so the MCP server at `http://127.0.0.1:3845/mcp` is available +- **Two terminals** — keep Tab 1 running `npm run dev` at all times; use Tab 2 for Claude Code +- **gh CLI not found in Claude's shell** — if Claude can't run `gh`, run the command yourself in your terminal with `! gh ...` +- **Git push** — Claude can commit but may not have GitHub credentials; run `git push` yourself if it fails diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..2503d4a --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,22 @@ +# Project Guidelines + +## Design System + +This project uses **Microsoft Fluent 2 Web** as the single source of truth for all UI design. + +- **Figma file**: https://www.figma.com/design/mSjELbJg0DugPqSB0JwocX/Microsoft-Fluent-2-Web--MCP- +- **File key**: `mSjELbJg0DugPqSB0JwocX` + +### Rules for building UI + +- Always reference the Figma design system above when building or modifying any interface component +- Use the Figma MCP tools to inspect components, tokens, and styles from this file before writing code +- Match spacing, typography, colors, and component patterns from Fluent 2 — do not invent custom styles +- When in doubt about a component's appearance or behaviour, look it up in the Figma file first + +### How to use Figma MCP + +The Figma MCP server is configured at `http://127.0.0.1:3845/mcp`. Use it to: +- Inspect components by name (e.g. Button, Input, Card) +- Extract design tokens (colors, spacing, typography) +- Get accurate implementation details before writing code diff --git a/index.html b/index.html index 6b48604..2fc9a32 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,10 @@ -
+ Microsoft Fluent 2 Web design system ·{' '} + + View in Figma + +
+Details content goes here.
}, + { id: 'history', label: 'History', icon: '⟳', content:History content goes here.
}, + ]} /> +Browse your Figma team projects and files
+Please fix the following:
+| {h} | + ))} +||||
|---|---|---|---|---|
| {row.date} | +{row.type} | +{row.provider} | +{row.amount} | +
| {h} | + ))} +|||||
|---|---|---|---|---|---|
| {row.id} | +{row.date} | +{row.type} | +{row.provider} | +{row.amount} | +
+ Answer these questions to ensure compliance with federal and state leave regulations. +
+ ++ Your case manager will review any prior leave usage to calculate remaining entitlements. +
+ )} ++ Workers' compensation and FMLA leave may run concurrently. Additional information may be required. +
+ )} ++ Your case manager will follow up to discuss accommodation options under the ADA. +
+ )} ++ Your request has been received and is now being processed by our HR team. +
+Leave Case Number
+{caseNumber}
++ A confirmation email with all details and instructions has been sent to + + {formData.employeeName.toLowerCase().replace(' ', '.')}@company.com + +
++ Review your leave eligibility and estimated available leave time based on company policies + and applicable laws. +
+ ++ This is an estimate only. An initial determination will be made once your information has been + reviewed by your case manager. Eligibility and benefit amounts are subject to verification. +
+Preliminary Eligibility Confirmed
++ Based on your answers, you appear to meet the requirements for the following +
++ What this means:{' '} + + We will file the applicable claims on your behalf. You do not need to file separately + for these benefits. Your case manager will confirm final eligibility and provide specific benefit amounts + after reviewing your complete file. + +
++ Specify when and how you'll take this leave. Use the date picker for accuracy. +
+ +{dateError}
+ )} + + {duration && ( ++ Calculated Leave Duration: + + {duration.calendarDays} calendar days ({duration.workDays} work days) + +
++ {isPregnancy + ? "We'll use this information to set up your maternity leave." + : "Congratulations! Let's get your leave set up."} +
+ ++ Your best estimate is fine — this can be updated later. +
+ )} ++ Does your spouse or domestic partner also work for the same employer? +
++ Some leave entitlements may be shared between spouses employed by the same company. +
++ Select the option that best fits your situation. Your selection will customize the next screens to + collect relevant information for your leave type. +
+ ++ {isChildRelated + ? "Next, we'll collect details about your new child and expected dates." + : "Next, we'll confirm your work schedule and collect leave dates."} +
++ Please review the summary below. If anything needs to change, click "Edit" to go back to that section. +
+ + {sections.map((section) => ( ++ Confirm your standard work schedule. This is used to calculate leave duration and entitlements. +
+ +