Skip to content

VAR-Q2 Component  #1124

Open
Open

Description

@sasmi825

VAR-Q2

This component appears as a single-line expandable text input where users summarize their weekly activity, with real-time character count and validation for a 150-character limit.

Figma: VAR-Q2

Location

Component File:

  • common/components/componentsBySection/VolunteerActivityReporting/VolunteerActivityReportingQ2.jsx

Storybook File:

  • common/components/componentsBySection/VolunteerActivityReporting/stories/VolunteerActivityReportingQ2.stories.jsx

Styles File:

  • civictechprojects/static/css/partials/_VolunteerActivityReportingQ2.scss

Image

<VARQ2
  className=""
  value={""} 
  onUpdate={(val: string) => {}}
  error={false} 
/>
  • value (string): The text value of the input field. This can change based on user interaction and represents different UI states (idle, filled, or error).
  • onUpdate (function): A callback function that is called when the input value is updated. Receives the updated value (string) as an argument.
  • error (boolean): Indicates whether the input has an error. Set to true when the character count exceeds 150 characters.

Story book Test cases:

  • Idle State (Empty Input): Render with value="" and error=false. Ensure the placeholder text "Enter text..." appears and no error styling is applied.
  • Filled State: Set value="Sample Text" and error=false. Verify the input appears filled and styled correctly.
  • Error State (Character Count > 150): Set value="Long input text..." (over 150 characters) and error=true. Ensure error styling is applied.

Activity

  1. changed the title [-]VAR-Q2 Component (Frontend)[/-] [+]VAR-Q2 Component [/+] on May 8, 2025
  2. self-assigned this
    on Aug 28, 2025
  3. moved this from Todo to In Progress in Volunteer Activity Reportingon Aug 28, 2025
  4. sasmi825 commented on Sep 4, 2025

    @sasmi825
    CollaboratorAuthor

    Please review the PR: PR-1141 for the above issue.
    @ddfridley

  5. moved this from In Progress to Ready for Review in Volunteer Activity Reportingon Sep 4, 2025
  6. moved this from Ready for Review to In Progress in Volunteer Activity Reportingon Sep 16, 2025
  7. moved this from In Progress to Ready for Review in Volunteer Activity Reportingon Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Front EndPrimarily front-end (react/javascript)

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions