Skip to content

[#338] Components refactor#367

Open
Spyderma9 wants to merge 12 commits intomainfrom
components-refactor
Open

[#338] Components refactor#367
Spyderma9 wants to merge 12 commits intomainfrom
components-refactor

Conversation

@Spyderma9
Copy link

@Spyderma9 Spyderma9 commented Feb 14, 2026

Why

The codebase was messy

What

Issue(s): #338

Organized components that were scattered all around the codebase into single src/app folders that contain everything for that app

Test Plan

Ran apps to make sure I didn't break anything

Checklist

  • Database: No schema changes, OR I have contacted the Development Lead to run db:push before merging
  • Environment Variables: No environment variables changed, OR I have contacted the Development Lead to modify them on Coolify BEFORE merging.

…tory

Reorganize 164 Blade components from 23+ scattered _components directories
into a unified apps/blade/src/app/_components/ structure with logical
subdirectories mirroring route organization:

- navigation/ - Session navbar, user dropdown, logo, QR code components
- admin/charts/ - All demographic chart components
- admin/club/ - Club check-in, data, events, members subdirectories
- admin/hackathon/ - Hackathon management (check-in, data, events, hackers,
  rooms, judge, control-room, judge-assignment, roomAssignment)
- admin/forms/ - Form editor and response viewer components
- admin/roles/ - Role configuration components
- admin/banquet-raffle/ - Raffle draw component
- dashboard/ - Dashboard components (hacker, hackathon, member subdirectories)
- forms/ - Public form components with _hooks subdirectory
- judge/ - Judge interface components
- settings/ - Profile and settings components
- shared/ - Cross-cutting utilities (scanner, csv-importer, SortButton, etc.)

Updated 78+ import statements across 49 files to use ~/app/_components/
pattern for consistency. Removed old src/components/ directory and all
empty route-specific _components directories.

Added @types/canvas-confetti to resolve TypeScript compilation errors.
…s directory

Move components from 3 scattered route-specific _components directories into
the unified apps/club/src/app/_components/ structure:

- contact/_components/ (4 files + assets) → _components/contact/
- links/_components/ (2 files + assets) → _components/links/
- officers/_components/ (2 files + assets) → _components/officers/

Updated import paths in contact/page.tsx, links/page.tsx, and officers/page.tsx
to use ~/app/_components/ pattern for consistency.

Removed all empty route-specific _components directories.

Total: 67 component files now consolidated in apps/club/src/app/_components/
organized by feature area (contact, landing, links, navigation, officers).
- Move hooks from _components/hooks/ to dedicated src/hooks/ directory in 2025 app
- Update 7 component imports to use ~/hooks/ pattern
- Remove duplicate UI components from gemiknights (accordion, card, separator)
- Update gemiknights components to import from @forge/ui instead
@Spyderma9 Spyderma9 requested a review from a team as a code owner February 14, 2026 00:49
@coderabbitai
Copy link

coderabbitai bot commented Feb 14, 2026

Important

Review skipped

Too many files!

This PR contains 260 files, which is 110 over the limit of 150.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch components-refactor

Comment @coderabbitai help to get the list of available commands and usage tips.

@Spyderma9 Spyderma9 self-assigned this Feb 14, 2026
@Spyderma9 Spyderma9 added Documentation Improvements or additions to documentation Onboarding Good first issue for onboarding Developers Major Big change - 2+ reviewers required labels Feb 14, 2026
@Spyderma9 Spyderma9 changed the title Components refactor [#338] Components refactor Feb 14, 2026
@Spyderma9 Spyderma9 enabled auto-merge February 14, 2026 23:46
@Spyderma9 Spyderma9 disabled auto-merge February 14, 2026 23:46
@Spyderma9 Spyderma9 enabled auto-merge February 14, 2026 23:47
@Spyderma9 Spyderma9 disabled auto-merge February 14, 2026 23:47
Resolve conflicts from component consolidation:
- Moved new files (HowFound, RatingRanking, view-feedback-button, view-rating-button, connection-handler) to consolidated _components directory
- Updated import paths in form-responder-client.tsx to use consolidated structure
- Updated import paths in forms/[formName]/page.tsx to reference consolidated components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Documentation Improvements or additions to documentation Major Big change - 2+ reviewers required Onboarding Good first issue for onboarding Developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant