Skip to content

feat(ui): refine Bot Selection and Debate Room layout with custom scrollbars and autosizing input - #796

Open
holyarsenic wants to merge 5 commits into
AOSSIE-Org:mainfrom
holyarsenic:feat/debate-ui-improvements
Open

holyarsenic wants to merge 5 commits into
AOSSIE-Org:mainfrom
holyarsenic:feat/debate-ui-improvements

Conversation

@holyarsenic

@holyarsenic holyarsenic commented Nov 2, 2026 •

Copy link
Copy Markdown

Description

This PR refines the UI and user experience in the Bot Selection (/bot-selection) and Bot Debate Room (/debate/:roomId) pages to align with the application's design system and improve interactive usability.

Key Changes

  1. Bot Selection Improvements:

    • Upgraded card and container styling to smooth rounded-2xl border-border/80 bg-card with hover elevation.
    • Fixed difficulty accordion borders to properly stay rounded when collapsed.
    • Modernized bot cards: each bot displays their avatar, name, and Elo rating directly with active primary ring indicators.
    • Pre-selected the default bot ("Rookie Rick") and opened its tier on load for seamless onboarding.
    • Refined responsive grid layout for topic selection and phase timers.
  2. Debate Room Enhancements:

    • Replaced sharp rectangular columns with rounded-2xl overflow-hidden containers and subtle border accents.
    • Added active speaker glow animation matching the primary theme.
    • Distinct message bubbles for user (bg-primary/10) and bot (bg-muted/60) with uppercase phase pills.
    • Integrated react-textarea-autosize for dynamic input expansion up to 4 rows (maxRows={4}).
Screenshot 2026-11-02 183107
  • Implemented an animated unread message button (New message ↓) that appears in the bot column when new counterarguments arrive while scrolled up.
Screenshot 2026-11-02 184039
  1. Custom Scrollbars (index.css):
    • Added .debate-scrollbar with a cross-browser 5px pill thumb, transparent track, and theme-reactive hover highlights.

Before -

Screen.Recording.2026-11-02.123320.mp4

After-

Screen.Recording.2026-11-02.123030.1.mp4

Type of Change

  • New feature / UI enhancement (non-breaking change which improves UX)

Validation

  • Verified build passes with vite build.
  • Tested responsive layouts across desktop and mobile screens.
  • Tested smooth scrolling, speech-to-text, and input autosizing.

Summary by CodeRabbit

  • New Features
    • Bot cards display names and Elo ratings directly, with the first bot’s difficulty options open by default. Saved selections that don’t match an available bot fall back to the first bot.
    • New bot messages are indicated when you’re scrolled away from the latest message, with a button to return to the bottom. The indicator clears when you reach the latest message.
    • The message field grows as you type, preserves line breaks, and disables Send when empty.
  • Style
    • Updated the bot selection, debate setup, and debate room layouts, including clearer participant details and refined scrollbars.

@coderabbitai

coderabbitai Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1fdbb459-5ab3-4175-8684-2d6a5e5b0e2f
Commits

Reviewing files that changed from the base of the PR and between f4a6ddc and 2df1ec9.

Files selected for processing: 2
  • frontend/src/Pages/DebateRoom.tsx
  • frontend/src/index.css
Files skipped from review as they are similar to previous changes: 1
  • frontend/src/index.css

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 0 remain after this review.

Walkthrough

The frontend updates bot selection and debate setup layouts. The debate room adds bot-message scroll tracking, an auto-resizing input, and refreshed message and participant panels.

Changes: Debate setup and room

Layer / File(s) Summary
Bot selection and setup
frontend/src/Pages/BotSelection.tsx
Selection defaults to the first bot, and saved selections expand the matching difficulty group. Bot cards and debate-setup controls receive updated layouts and styling.
Debate room panels and presentation
frontend/package.json, frontend/src/Pages/DebateRoom.tsx, frontend/src/index.css
The debate room separates bot and user panels, updates message and popup styling, and adds custom scrollbar styling. The user input uses an auto-resizing textarea.
Bot message navigation and input
frontend/src/Pages/DebateRoom.tsx
The bot pane tracks scroll position and provides a scroll-to-latest control when needed. Sending is disabled when the input is blank after trimming.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Feature

Suggested reviewers: vinayak302004, rixitgithub

Merge Risk: Minimal · up to 2df1e

No material merge-blocking risk remains in the reviewed changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: a refined layout for the Bot Selection and Debate Room pages, plus custom scrollbars and an autosizing input. The raw summary and objectives confirm each of these part…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title names the main change: a refined layout for the Bot Selection and Debate Room pages, plus custom scrollbars and an autosizing input. The raw summary and objectives confirm each of these parts. The title is specific and maps to the changeset, so it passes. Per the tone instructions, this assessment is written in a respectful Australian voice.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files. (1 skipped: 1 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@socket-security

socket-security Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​react-textarea-autosize@​8.5.91001009783100

View full report

@coderabbitai coderabbitai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

  • Fix comments: Fix CodeRabbit comments on this PR

Comment thread frontend/src/index.css Resolved
Comment thread frontend/src/Pages/DebateRoom.tsx Resolved
Comment thread frontend/src/Pages/DebateRoom.tsx Resolved
Comment thread frontend/src/Pages/DebateRoom.tsx Resolved

This branch has not been deployed

No deployments
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.

1 participant