Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
17f9a9b
chore: migrate components
lcamargof Dec 8, 2025
bd9e531
chore: wip
lcamargof Dec 8, 2025
f00adc7
chore: update subgraph url
lcamargof Dec 8, 2025
6ef4f1e
chore: bump zapper
lcamargof Dec 8, 2025
e55ef1a
chore: refresh lock
lcamargof Dec 8, 2025
7c1e343
wip
lcamargof Dec 9, 2025
b61cf87
chore: final tweaks
lcamargof Dec 9, 2025
5840ca7
chore: migrate charts
lcamargof Dec 9, 2025
aae0cf8
chore: allow custom url
lcamargof Dec 11, 2025
589e5fb
chore: small fixes
lcamargof Dec 11, 2025
b364579
chore: fix exposure logo
lcamargof Dec 11, 2025
3204561
chore: add chainId to submit
lcamargof Dec 11, 2025
0c47fb3
chore: use dtf chainId
lcamargof Dec 11, 2025
583d110
chore: bump react-zapper version
JuampiRombola Dec 15, 2025
fa9c67c
feat: add bridge dtf contract address
JuampiRombola Dec 16, 2025
4e7d6f9
chore: add stacked chain logo for multinetwork dtfs
JuampiRombola Dec 16, 2025
8c76b06
chore: sort portfolio positions by value
JuampiRombola Dec 16, 2025
30f4fec
fix: nit types
JuampiRombola Dec 16, 2025
98d1b31
chore: move sort logic to atoms
JuampiRombola Dec 16, 2025
5925481
feat: internal dtf list
lcamargof Dec 16, 2025
8f76e99
chore: remove duplicated steakusdc from collateral yield updater
JuampiRombola Dec 17, 2025
da0a95e
fix: 0 weight tokens on basket change
JuampiRombola Dec 18, 2025
cd9bbb5
feat: stg deprecation banner
JuampiRombola Dec 18, 2025
13087b1
chore: change vaya msg
JuampiRombola Dec 18, 2025
1ec8648
feat: add LCAP ink bridged ca
JuampiRombola Dec 18, 2025
d2a7dd2
chore: improve seo
lcamargof Nov 26, 2025
5f6583a
feat: static approach
lcamargof Nov 26, 2025
0f1a3ac
chore: fix seo pages
lcamargof Nov 26, 2025
a96e752
chore: add social sharing
lcamargof Dec 19, 2025
7c01654
chore: improve seo
lcamargof Dec 19, 2025
8aec891
chore: test preview
lcamargof Dec 19, 2025
db235fc
chore: use prod url
lcamargof Dec 19, 2025
49e90d3
chore: update title
lcamargof Dec 19, 2025
c4a5029
chore: add full click on feature dff
lcamargof Jan 5, 2026
72a4d7c
chore: implement approva all on minting
lcamargof Jan 5, 2026
64f4654
chore: add approval all
lcamargof Jan 5, 2026
0c7ef9f
chore: migrate staking
lcamargof Jan 7, 2026
87dfb93
chore: tweak stake UI
lcamargof Jan 8, 2026
07c924e
chore: migrate zod
lcamargof Jan 15, 2026
351d8a2
chore: remove swr
lcamargof Jan 16, 2026
47964d4
chore: migration plan
lcamargof Jan 16, 2026
e632587
Merge remote-tracking branch 'origin/master' into feature/remove-themeui
lcamargof Jan 16, 2026
2561733
chore: refresh packages
lcamargof Jan 16, 2026
c1f9ce3
chore: remove some libs
lcamargof Jan 16, 2026
41228b7
chore: remove some old components
lcamargof Jan 16, 2026
8bbb737
chore: remove boxes and other
lcamargof Jan 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .claude/commands/review-file.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
description: Review a specific file for code quality
model: sonnet
argument-hint: <file-path>
---

# Code Review: $ARGUMENTS

Review the specified file for code quality, patterns, and potential bugs.

## Review Focus

### TypeScript
- Check for type errors
- Verify imports are correct and used
- Look for `any` types that should be typed

### React
- Hook dependency arrays
- Component size and composition
- Proper state management

### Styling
- TailwindCSS class usage
- No inline styles
- Use of cn() for conditional classes
- No theme-ui or emotion remnants

### Best Practices
- No console.log statements
- Proper error handling
- Loading states for async operations

## Instructions

1. Read the file at: $ARGUMENTS
2. Analyze against the review focus areas
3. Report any issues found with line numbers
4. Provide specific suggestions for fixes
5. If the file looks good, confirm it passes review
41 changes: 41 additions & 0 deletions .claude/commands/review-ui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
description: Review UI components with visual validation via Chrome extension
model: sonnet
argument-hint: <component-path>
---

# UI Review: $ARGUMENTS

Review the UI component for visual correctness and code quality.

## Code Review

1. Read the component file at: $ARGUMENTS
2. Check for:
- Correct TailwindCSS classes
- Proper use of shadcn/ui components
- Responsive design (sm:, md:, lg: breakpoints)
- Accessibility (aria labels, semantic HTML)
- Animation classes match tailwind.config.ts

## Visual Validation

After code review, request a screenshot from the user:

"Please provide a screenshot of this component in the browser. You can:
1. Use the Claude Code Chrome extension to capture the current tab
2. Or paste a screenshot directly

I'll validate that the rendered UI matches the expected styling from the code."

## When Screenshot is Provided

Analyze the screenshot for:
1. Layout matches flex/grid classes in code
2. Colors match theme variables (primary, secondary, muted, etc.)
3. Spacing looks correct (padding, margins, gaps)
4. Text styling (font weights, sizes)
5. Interactive states if visible (hover, focus, disabled)
6. Any visual bugs or misalignments

Report findings with specific code references and visual observations.
61 changes: 61 additions & 0 deletions .claude/commands/review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
description: Review code changes for quality, patterns, and potential bugs
model: sonnet
---

# Code Review

You are a code reviewer for a React/TypeScript project. Review the recent code changes with a focus on:

## Review Checklist

### 1. TypeScript & Imports
- Missing or incorrect imports
- Type errors or any usage
- Unused imports or variables

### 2. React Patterns
- Proper hook dependencies in useEffect/useMemo/useCallback
- Missing keys in lists
- State updates that could cause infinite loops
- Component composition and size (prefer < 150 lines)

### 3. Styling (TailwindCSS)
- Verify className usage follows Tailwind patterns
- Check for hardcoded values that should use theme variables
- Ensure cn() helper is used for conditional classes
- No inline styles or emotion/theme-ui remnants

### 4. State Management (Jotai)
- Small, focused atoms
- Derived atoms for computed values
- No useEffect for atom synchronization

### 5. Error Handling
- Loading states for async operations
- Error boundaries where needed
- Proper try/catch for async code

## Instructions

1. Get the list of modified files:
```bash
git diff --name-only HEAD~1
```

2. Read each modified file and analyze against the checklist

3. Report findings in this format:

**File: `path/to/file.tsx`**
- [ ] Issue: Description of the problem
- Line X: `code snippet`
- Suggestion: How to fix it

4. If no issues found, confirm the code looks good

5. Pay special attention to:
- Missing dependencies in hooks
- Incorrect Tailwind classes
- Components that are too large
- Console.log statements left in code
41 changes: 31 additions & 10 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -764,25 +764,46 @@ VITE_INFURA_KEY=your_key

```bash
npm install # Install dependencies
npm run dev # Start dev server
npm run build # Build for production
npm run lint # Run linter
npm run format # Format code
npm run start # Start dev server (port 3000)
npm run build # Build for production
npm run typecheck # TypeScript validation
npm run test # Run tests (watch mode)
npm run test:run # Run tests (single run)
```

### Testing

- **Current**: Manual testing on Base network
- **Planned**: Jest for unit tests, E2E with wallet integration
- **Note**: No current test coverage requirements
- **Framework**: Vitest with jsdom environment
- **Location**: `src/**/tests/**/*.test.{ts,tsx}`
- **Run**: `npm run test` (watch) or `npm run test:run` (single)
- **Current coverage**: Critical hooks (useQuery, useDebounce, useTimeRemaining)

## Active Migration: theme-ui → Tailwind

**IMPORTANT**: We are actively migrating from theme-ui to Tailwind/shadcn. See `docs/migration-plan.md` for full details.

### Migration Rules

1. **Update the migration doc** (`docs/migration-plan.md`) after any migration work
2. **Record learnings** - decisions, gotchas, patterns that worked
3. **Don't mix patterns** - new components use Tailwind only, no theme-ui
4. **Test before/after** - run `npm run typecheck && npm run test:run` after changes
5. **Bottom-up approach** - start with `components/old/*`, then shared, then views

### Current Status

- 284 files still import theme-ui
- `@emotion/react` removed (animations now in Tailwind)
- `swr` removed (replaced with React Query wrapper)
- Tailwind v3.4 (v4 upgrade planned before full migration)

## Known Issues & Tech Debt

### High Priority

1. **Testing Infrastructure**: No automated tests
2. **Bundle Size**: Large SPA bundle
3. **Legacy UI**: Yield DTFs use old theme-ui components
1. **theme-ui Migration**: 284 files need conversion to Tailwind
2. **Bundle Size**: Large SPA bundle (theme-ui removal will help)
3. **Tailwind v4**: Upgrade needed before migration completes

### Complex Areas Needing Attention

Expand Down
Loading