Archon/PRPs/ai_docs
Wirasm 63a92cf7d7
Some checks failed
Continuous Integration / Frontend Tests (React + Vitest) (push) Has been cancelled
Continuous Integration / Backend Tests (Python + pytest) (push) Has been cancelled
Continuous Integration / Docker Build Tests (agents) (push) Has been cancelled
Continuous Integration / Docker Build Tests (frontend) (push) Has been cancelled
Continuous Integration / Docker Build Tests (mcp) (push) Has been cancelled
Continuous Integration / Docker Build Tests (server) (push) Has been cancelled
Continuous Integration / Test Results Summary (push) Has been cancelled
refactor: reorganize features/shared directory for better maintainability (#730)
* refactor: reorganize features/shared directory structure

- Created organized subdirectories for better code organization:
  - api/ - API clients and HTTP utilities (renamed apiWithEtag.ts to apiClient.ts)
  - config/ - Configuration files (queryClient, queryPatterns)
  - types/ - Shared type definitions (errors)
  - utils/ - Pure utility functions (optimistic, clipboard)
  - hooks/ - Shared React hooks (already existed)

- Updated all import paths across the codebase (~40+ files)
- Updated all AI documentation in PRPs/ai_docs/ to reflect new structure
- All tests passing, build successful, no functional changes

This improves maintainability and follows vertical slice architecture patterns.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix: address PR review comments and code improvements

- Update imports to use @/features alias path for optimistic utils
- Fix optimistic upload item replacement by matching on source_id instead of id
- Clean up test suite naming and remove meta-terms from comments
- Only set Content-Type header on requests with body
- Add explicit TypeScript typing to useProjectFeatures hook
- Complete Phase 4 improvements with proper query typing

* fix: address additional PR review feedback

- Clear feature queries when deleting project to prevent cache memory leaks
- Update KnowledgeCard comments to follow documentation guidelines
- Add explanatory comment for accessibility pattern in KnowledgeCard

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-22 14:59:33 +03:00
..
API_NAMING_CONVENTIONS.md refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00
ARCHITECTURE.md refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00
DATA_FETCHING_ARCHITECTURE.md refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00
ETAG_IMPLEMENTATION.md refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00
optimistic_updates.md refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00
QUERY_PATTERNS.md refactor: reorganize features/shared directory for better maintainability (#730) 2025-09-22 14:59:33 +03:00