[US-3.1 / OBT-203] Create a language inline from the project form - #19
[US-3.1 / OBT-203] Create a language inline from the project form#19levigtri wants to merge 3 commits into
Conversation
Add a "New language" action next to the language selector that opens a nested dialog with name and code fields. On save it creates the language via the API, refreshes the languages store, and auto-selects the new entry — the project form state is preserved throughout. Duplicate-code errors are surfaced to the user.
The fetch-on-mount effect intentionally runs once; add eslint-disable-next-line react-hooks/exhaustive-deps to match the codebase convention (LanguagesPage) and clear the ESLint warning. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Warning Review limit reached
Next review available in: 41 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: QUIET Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Summary
US-3.1 / OBT-203 — Let users create a new language directly from the project creation/edit form, without navigating away to the Languages page and losing their progress.
Changes
ProjectsPage.tsx: add a "New language" link next to the language selector that opens a nested dialog (Radix supports nested dialogs) with name and code fields.handleCreateLanguagecallslanguagesAPI.create, invalidates and re-fetches the languages store, auto-selects the new language, and closes the nested dialog. The project form state (name, description) is preserved throughout.Type of Change
Testing
npm run typecheck— passnpm run lint— 0 errors (pre-existing ProjectsPage warning only)npm run build— passFront-only — uses the existing languages API.