Skip to content

Pixel AI Bot enhancments - #4283

Open
yiilinzhang wants to merge 27 commits into
masterfrom
yilin/pixel
Open

Pixel AI Bot enhancments#4283
yiilinzhang wants to merge 27 commits into
masterfrom
yilin/pixel

Conversation

@yiilinzhang

Copy link
Copy Markdown
Contributor

Description

UI changes to the admin panel linked to backend pr 1382. Lets the admin configure the course specific llm key in the frontend.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Code quality improvements

How to test

  1. Run with the backend mr.
  2. Need to run migrations.
  3. Try to add a api url and llm key in the admin panel. Pixel will use the new key

Checklist

  • I have tested this code
  • I have updated the documentation

@yiilinzhang
yiilinzhang requested a review from sayomaki August 11, 2026 17:22
@coderabbitai

coderabbitai Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 92c848e7-71d4-402c-891e-d35f328eef16

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
📝 Walkthrough

Summary by CodeRabbit

  • New Features
    • Added configuration support for selecting a Pixel Chatbot model at the course and session levels.
    • Added a Pixel Chatbot model field to the course configuration panel.
    • Provider settings are now shown when either LLM grading or Pixel Chatbot features are enabled.
  • Improvements
    • LLM grading settings remain visible only when LLM grading is enabled.

Walkthrough

The configuration types now support an optional pixelbotModel. The admin course configuration panel displays provider settings for LLM grading or Pixel Chatbot and provides a separate Pixel Chatbot model input.

Changes

Pixelbot configuration

Layer / File(s) Summary
Configuration type extensions
src/commons/application/types/SessionTypes.ts
SessionState and CourseConfiguration now include optional pixelbotModel properties.
Admin panel provider settings
src/features/adminPanel/subcomponents/CourseConfigPanel.tsx
The panel reads and updates pixelbotModel. Provider settings appear when LLM grading or Pixel Chatbot is enabled. LLM and Pixel Chatbot model inputs use separate conditions.

Estimated code review effort: 2 (Simple) | ~10 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title identifies the Pixel AI Bot changes and is directly related to the pull request scope, despite a minor spelling error.
Description check ✅ Passed The description includes the change summary, change type, testing steps, backend dependency, and checklist status.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

@yiilinzhang
yiilinzhang marked this pull request as ready for review August 11, 2026 17:24

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@src/features/adminPanel/subcomponents/CourseConfigPanel.tsx`:
- Around line 197-200: Update the conditional rendering around the LLM provider
section and the Pixel configuration block in CourseConfigPanel so optional
enablePixelbot values use the same default-enabled behavior as the existing
logic near line 388. Ensure undefined enablePixelbot still renders the provider
and Pixel model fields, while preserving the current enableLlmGrading behavior.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 65b0fe15-a225-4ad4-8cfe-019f2b77afb5

📥 Commits

Reviewing files that changed from the base of the PR and between 866ce8b and c7a6c53.

📒 Files selected for processing (2)
  • src/commons/application/types/SessionTypes.ts
  • src/features/adminPanel/subcomponents/CourseConfigPanel.tsx

Comment thread src/features/adminPanel/subcomponents/CourseConfigPanel.tsx Outdated
@coveralls

coveralls commented Aug 11, 2026

Copy link
Copy Markdown

Coverage Report for CI Build 32000627930

Coverage decreased (-0.006%) to 45.352%

Details

  • Coverage decreased (-0.006%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (0 of 1 lines covered, 0.0%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
src/features/adminPanel/subcomponents/CourseConfigPanel.tsx 1 0 0.0%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 14621
Covered Lines: 7081
Line Coverage: 48.43%
Relevant Branches: 7861
Covered Branches: 3115
Branch Coverage: 39.63%
Branches in Coverage %: Yes
Coverage Strength: 30.76 hits per line

💛 - Coveralls

@sayomaki sayomaki left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that the backend PR is missing/not ready yet, so I'm holding back on merging this until the backend PR is ready as well (otherwise it will break functionality).

A thing you might want to take note for backend:

  • The default model name sent to the backend if left blank is an empty string, not null/undefined, so double check to make sure that is checked properly and correctly substituted for the default value

Comment thread src/features/adminPanel/subcomponents/CourseConfigPanel.tsx Outdated
Comment thread src/features/adminPanel/subcomponents/CourseConfigPanel.tsx
@yiilinzhang
yiilinzhang requested a review from sayomaki August 18, 2026 04:18
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.

4 participants