Skip to content

feat: add input component to research panel (#784)#785

Merged
NoopDog merged 4 commits intomim-fran-noop/778-ai-epicfrom
fran/784-ai-input
Feb 23, 2026
Merged

feat: add input component to research panel (#784)#785
NoopDog merged 4 commits intomim-fran-noop/778-ai-epicfrom
fran/784-ai-input

Conversation

@frano-m
Copy link
Contributor

@frano-m frano-m commented Feb 23, 2026

Closes #784.

Excludes

  • Configuration for placeholder text in input component.
  • Panel position styling.
  • Microphone/Plus icon.

This pull request introduces a new styled input component for the research panel in the ExploreView, along with reusable MUI prop constants and supporting Storybook stories for both the input and the panel. The main focus is on improving UI consistency and maintainability by centralizing style and prop definitions.

New Input Component and Integration:

  • Added a new Input component for the research panel, featuring a styled paper container, a primary-colored multiline input, and a submit button with a custom up arrow icon. This component is now rendered in the research panel (panel.tsx). [1] [2] [3] [4] [5]

Reusable MUI Prop Constants:

  • Introduced centralized prop constants for MUI components (inputBase.ts, stack.ts), enabling consistent use of colors, sizes, and other options across the app. [1] [2]

Storybook Stories:

  • Added Storybook stories for the new Input and Panel components, including decorators for layout and background, to facilitate UI testing and development. [1] [2]
image

@frano-m frano-m marked this pull request as ready for review February 23, 2026 06:52
@frano-m frano-m requested a review from Copilot February 23, 2026 06:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds an input component to the research panel as specified in issue #784. The implementation includes a multiline text input with a submit button (styled with an up arrow icon), along with supporting MUI utility constants for Stack and InputBase components. The PR follows the Figma design requirements and excludes microphone/plus icons and placeholder text configuration as noted in the scope.

Changes:

  • Added new Input component for the research panel with InputBase, submit button, and up arrow icon
  • Created new MUI utility files for Stack and InputBase prop constants
  • Added UpArrowIcon custom SVG component
  • Updated Panel component to include the new Input component
  • Added Storybook stories for both Input and Panel components

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/views/ExploreView/research/panel/panel.tsx Updated to render the new Input component within the research panel container
src/views/ExploreView/research/panel/components/Input/input.tsx New Input component with InputBase, submit IconButton, and StyledPaper wrapper
src/views/ExploreView/research/panel/components/Input/input.styles.ts Styled Paper component for Input with flexbox layout and padding
src/views/ExploreView/research/panel/components/Input/constants.ts InputBase configuration with multiline, autofocus, and form properties
src/views/ExploreView/research/panel/stories/panel.stories.tsx Storybook story for Panel component with background and sizing decorator
src/views/ExploreView/research/panel/components/Input/stories/input.stories.tsx Storybook story for Input component with width constraint decorator
src/components/common/CustomIcon/components/UpArrowIcon/upArrowIcon.tsx New custom SVG icon component for the submit button
src/styles/common/mui/stack.ts New MUI Stack utility constants for ALIGN_ITEMS, DIRECTION, and FLEX_WRAP
src/styles/common/mui/inputBase.ts New MUI InputBase utility constants for COLOR, MARGIN, SIZE, and TYPE

frano-m and others added 3 commits February 23, 2026 17:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…s.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@NoopDog NoopDog merged commit e9211d8 into mim-fran-noop/778-ai-epic Feb 23, 2026
2 checks passed
@frano-m frano-m deleted the fran/784-ai-input branch February 24, 2026 21:21
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.

3 participants