Documentation Index
Fetch the complete documentation index at: https://mintlify.com/nayalsaurav/resume-analyzer/llms.txt
Use this file to discover all available pages before exploring further.
FeedbackDisplay is a client component that renders the full AI analysis result for a resume, including the overall score, animated per-category progress bars, and color-coded improvement tips. It is rendered by the Upload component once the analyzeResume server action resolves successfully, and it delegates the “start over” action back to Upload via the onReset callback.
Signature
Props
The complete analysis result returned by
analyzeResume. Contains an overallScore (0–100) and five named section objects — ATS, toneAndStyle, content, skills, and structure — each with a score and an array of tips. See /reference/feedback-types for the full type definition.Callback invoked when the user clicks the “Analyze Another Resume” button in the footer. Typically wired to the parent
Upload component’s resetForm function to clear all state and return to the form.Usage
Rendered Sections
The component is structured into four visual regions rendered top to bottom.Header
A top bar that displays the “Resume Analysis Results” heading alongside an “Analyze Another Resume” button (outline variant) that firesonReset. This gives users a reset action without having to scroll down.
Overall Score Card
Prominently displays theoverallScore out of 100. An animated ProgressBar fills to the overall score with a gradient that shifts from green (≥ 80) to yellow-orange (60–79) to red (< 60). A text descriptor ("Excellent", "Good", "Fair", "Needs Improvement", "Poor") appears below the number.
Section Grid
Five analysis cards arranged in a 2-column grid, one per feedback category. Each card contains:- Title and icon drawn from
sectionConfig - ScoreBadge — color-coded by score tier (see Score Badge Variants below)
- Animated ProgressBar — transitions from 0% to the section score (see ProgressBar Animation below)
- Tips list — each tip color-coded by type (see Tip Rendering below)
Section Configuration
The five section keys and their display metadata are defined insectionConfig:
| Key | Display Title | Gradient |
|---|---|---|
ATS | ATS Compatibility | blue-500 → cyan-500 |
toneAndStyle | Tone & Style | purple-500 → pink-500 |
content | Content Quality | green-500 → emerald-500 |
skills | Skills Relevance | orange-500 → red-500 |
structure | Structure & Formatting | indigo-500 → purple-500 |
Footer CTA
A call-to-action card at the bottom of the scorecard containing a second “Analyze Another Resume” button that firesonReset when clicked. This mirrors the header button, giving users a convenient reset action without scrolling back up.
Score Badge Variants
Each section card displays aScoreBadge whose visual style is determined by the section’s numeric score:
| Score Range | Variant | Appearance |
|---|---|---|
| ≥ 80 | default | Green — strong performance |
| 60–79 | secondary | Neutral — acceptable but improvable |
| < 60 | destructive | Red — needs significant work |
Tip Rendering
Each tip in a section’s tips array carries atype field and an optional explanation string.
ProgressBar Animation
The animatedProgressBar sub-component uses a CSS transition to create a smooth fill effect:
- On mount, the bar starts at 0% width.
- After a 300 ms delay, the transition begins.
- Over 1000 ms (ease-out), the bar expands to the section’s actual score percentage.
The ProgressBar animation is driven by a CSS transition rather than a JavaScript animation loop, keeping it performant and accessible — the final value is always correct for users who prefer reduced motion or disable animations at the OS level.