Skip to content

Conversation

@devlasbe
Copy link
Owner

Summary

Reorganized the project structure by moving utility files from @/lib to @/utils directory and updating all import paths accordingly. This improves code organization by consolidating utility functions in a single, more intuitive location.

Key Changes

  • Directory restructuring: Moved lib/utils.tsutils/cn.ts and lib/fetchService.tsutils/fetchService.ts
  • Import path updates: Updated 20+ files to import from @/utils/cn instead of @/lib/utils and @/utils/fetchService instead of @/lib/fetchService
  • Configuration updates:
    • Updated components.json path aliases to point to @/utils/cn instead of @/lib/utils
    • Removed deprecated lib alias from components.json
  • Documentation: Updated AGENTS.md to reflect the new directory structure
  • Cleanup: Removed services/defaultUrl.ts (likely consolidated into fetchService)

Files Modified

  • UI Components: accordion, alert-dialog, alert, badge, button, card, carousel, chart, input, listItem, navigation-menu, separator, table
  • Services: admin, auth, brand, category, head, interior, statistic
  • Configuration: components.json, AGENTS.md

Benefits

  • Clearer project structure with utilities grouped in a single directory
  • More intuitive import paths (@/utils/cn vs @/lib/utils)
  • Easier to locate and maintain utility functions

@vercel
Copy link

vercel bot commented Jan 23, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
open-franchise-web Ready Ready Preview, Comment Jan 23, 2026 2:50pm

@devlasbe devlasbe changed the base branch from main to develop January 23, 2026 14:39
- Move lib/utils.ts to utils/cn.ts
- Move lib/fetchService.ts to utils/api.ts
- Remove redundant services/defaultUrl.ts
- Update all import paths from @/lib to @/utils
- Update components.json aliases
- Update AGENTS.md documentation

https://claude.ai/code/session_017kLXLLpBtmZ1xLQf6x6F9m
@devlasbe devlasbe force-pushed the claude/streamline-frontend-structure-XlMQ5 branch from f6ad5ba to eff9f08 Compare January 23, 2026 14:49
@devlasbe devlasbe merged commit 0bb13bd into develop Jan 23, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants