42 lines
1.3 KiB
Markdown

# Frontend FSD — Portfolio Pages Tasks
## 1. Create widget directory structure and barrel files
- [ ] Create 6 widget barrels in `widgets/`
- [ ] Copy components to `widgets/*/ui/` with updated imports
- [ ] `npm run build -w apps/frontend` — PASS
- [ ] `npm test -w apps/frontend` — PASS
- [ ] Commit
## 2. Update pages to use widgets
- [ ] Update `PortfoliosListPage.tsx` imports
- [ ] Update `PortfolioDetailPage.tsx` imports
- [ ] `npm run build -w apps/frontend` — PASS
- [ ] `npm test -w apps/frontend` — PASS
- [ ] Commit
## 3. Remove flat components/portfolios/
- [ ] Delete `components/portfolios/*.tsx`
- [ ] No remaining imports from `components/portfolios`
- [ ] `npm run build -w apps/frontend` — PASS
- [ ] `npm test -w apps/frontend` — PASS
- [ ] `npm run lint -w apps/frontend` — PASS
- [ ] Commit
## 4. Update documentation
- [ ] Update `apps/docs/docs/frontend/hooks.md`
- [ ] Update `apps/docs/docs/frontend/routes.md`
- [ ] `npm run build -w apps/docs` — PASS
- [ ] Отдельный коммит
## 5. Final verification
- [ ] `npm test -w apps/frontend` — PASS
- [ ] `npm run lint -w apps/frontend` — PASS
- [ ] `npm run build -w apps/frontend` — PASS
- [ ] `rg "components/portfolios"` — no matches
- [ ] `npm run build -w apps/docs` — PASS