Skip to content

feat(ui/ai): Added more Tool components and expanded the Question Pool massively - Now the ai has more elaborate pool of questions to figure out from#112

Closed
Shashank0701-byte wants to merge 1 commit intomainfrom
feature/expanded_pool
Closed

feat(ui/ai): Added more Tool components and expanded the Question Pool massively - Now the ai has more elaborate pool of questions to figure out from#112
Shashank0701-byte wants to merge 1 commit intomainfrom
feature/expanded_pool

Conversation

@Shashank0701-byte
Copy link
Copy Markdown
Owner

@Shashank0701-byte Shashank0701-byte commented Apr 6, 2026

Closes #89

Summary by CodeRabbit

  • New Features

    • Added 17 new component types (Worker, Container, Gateway, DNS, Firewall, Proxy, NoSQL, Search, GraphDB, PubSub, WebSocket, Logger, Metrics, Tracer, Auth, WAF, Vault) to the component palette
    • Expanded system design question generation with more diverse example topics and larger fallback pools
    • Canvas now renders support for all new component types
  • Bug Fixes

    • Suppressed hydration mismatch warnings during client-side rendering
  • Documentation

    • Added clarifying comments to authentication logic

…l massively

- Now the ai has more elaborate pool of questions to figure out from
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

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

Project Deployment Actions Updated (UTC)
system-craft Ready Ready Preview, Comment Apr 6, 2026 7:48pm

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 6, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 7da12d9b-4451-4fd5-94fd-46015e6178d5

📥 Commits

Reviewing files that changed from the base of the PR and between 230a785 and 93ad3a9.

📒 Files selected for processing (9)
  • app/layout.tsx
  • components/canvas/ComponentPalette.tsx
  • components/canvas/DesignCanvas.tsx
  • git_status.txt
  • src/lib/ai/questionGenerator.ts
  • src/lib/firebase/AuthContext.tsx
  • src/lib/simulation/constants.ts
  • tsc_output.txt
  • tsc_output_2.txt

📝 Walkthrough

Walkthrough

This PR expands the system design component library across the canvas, simulation, and AI question generation layers. New component types are added to the palette and canvas rendering (Worker, Container, Gateway, DNS, Firewall, Proxy, NoSQL, Search, GraphDB, PubSub, WebSocket, Logger, Metrics, Tracer, Auth, WAF, Vault), with corresponding capacity mappings and visual defaults. The AI question generator is enhanced with expanded example topics, a randomization helper, and increased fallback question pools across difficulty levels.

Changes

Cohort / File(s) Summary
Component Palette and Canvas Extensions
components/canvas/ComponentPalette.tsx, components/canvas/DesignCanvas.tsx, src/lib/simulation/constants.ts
Added 17 new component types across Compute, Networking, Storage, Messaging, Observability, and Security categories. Expanded COLOR_MAP and DEFAULT_LABELS in DesignCanvas; added corresponding NODE_CAPACITIES entries with specified capacity values (some Infinity sinks).
AI Question Generation Enhancement
src/lib/ai/questionGenerator.ts
Expanded inspiration topics list, added pickRandom helper for subset selection, updated system-design prompt to emphasize creativity, and increased fallback question pools from 3 to 8 per difficulty level with new interview scenarios (webhook delivery, feature flags, leaderboard, OTP/2FA, food delivery, IoT telemetry, matchmaking, ticket booking, A/B testing).
Hydration Warning Suppression
app/layout.tsx
Added suppressHydrationWarning attribute to both <html> and <body> elements in RootLayout to suppress client-side hydration mismatch warnings.
Documentation and Diagnostics
src/lib/firebase/AuthContext.tsx, git_status.txt, tsc_output.txt
Added inline comments to AuthContext.tsx around early-return logic; added git status snapshot and TypeScript compiler error diagnostics.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • PR #43: Modifies src/lib/ai/questionGenerator.ts with overlapping changes to AI prompt and question-generation logic.
  • PR #8: Modifies components/canvas/ComponentPalette.tsx and components/canvas/DesignCanvas.tsx, directly related to component palette and canvas rendering enhancements.
  • PR #108: Modifies components/canvas/DesignCanvas.tsx node type mappings and rendering behavior.

Poem

🐰 A palette so bright, with components new,
Workers and firewalls and databases too!
From Canvas to questions, the system grows wide,
With Logger and Vault and secrets to hide. ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/expanded_pool

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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.

Add new Components in the Canvas

1 participant