Skip to content

Claude/add standards audit fim qb#25

Open
peterod99 wants to merge 6 commits intomainfrom
claude/add-standards-audit-FimQb
Open

Claude/add standards audit fim qb#25
peterod99 wants to merge 6 commits intomainfrom
claude/add-standards-audit-FimQb

Conversation

@peterod99
Copy link
Copy Markdown
Owner

No description provided.

claude added 6 commits January 4, 2026 10:15
- Replace console.log/warn/error with log from @/lib/logger
- Add proper logger imports to all files
- Convert error objects to proper format
- Replace console.log/warn/error/info/debug with log from @/lib/logger
- Add logger imports to all affected src files
- Update supabase functions to use log.* methods
- Replace any with unknown for truly unknown types
- Fix Record<string, any> -> Record<string, unknown>
- Fix Array<any> -> Array<unknown>
- Fix Promise<any> -> Promise<unknown>
- Fix error handler types (error: any) -> (error: unknown)
- Fix catch clause types
- Create src/lib/demoUtils.ts with isDemoMode(), setDemoMode(), clearDemoMode()
- Add isDemoMode import to files with demo-related !user patterns
- Most !user patterns are legitimate auth checks, not demo detection
- Replace hex colors with semantic CSS variables (hsl(var(--primary)), etc.)
- Replace Tailwind hardcoded colors with semantic classes
- Update chart colors to use CSS variable tokens
Create reusable state management hooks to reduce useState count:
- useCourseManagementDialogs: Extract 13 dialog states from CourseManagementDialog
- useBuildDemoState: Extract build demo UI states
- usePostEditorState: Extract forum post editor states
- useChatContainerState: Extract chat container states
- useCustomCodeState: Extract custom code manager states

These hooks can be used by the respective components to reduce inline useState calls
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 4, 2026

Important

Review skipped

Too many files!

150 files out of 300 files are above the max files limit of 150. Please upgrade to a paid plan to get higher limits.

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


Note

🎁 Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

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

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.

2 participants