Skip to content

🎨 Palette: Add item counters to section headers#50

Draft
google-labs-jules[bot] wants to merge 2 commits into
mainfrom
palette-item-counters-10914268045398347351
Draft

🎨 Palette: Add item counters to section headers#50
google-labs-jules[bot] wants to merge 2 commits into
mainfrom
palette-item-counters-10914268045398347351

Conversation

@google-labs-jules
Copy link
Copy Markdown
Contributor

This PR introduces a micro-UX improvement by adding item counters to the section headers of the portfolio.

💡 What:

A new count prop in the generic Section component displays a small chip next to the section title, indicating the number of items currently visible in that section.

🎯 Why:

The portfolio uses a unified filter bar. When users search or filter by area/skill, it's not always immediately obvious which sections have matching results if they are scrolled away. These counters provide immediate feedback and help users understand the distribution of their filtered results across the site.

♿ Accessibility:

The counters are clearly associated with the section headings and provide additional context for screen reader users when navigating the document outline.

🛠 Technical Details:

  • Integrated HeroUI Chip for the counters.
  • Passed dynamic lengths from filteredSkills, filteredCerts, filteredProjects, and filteredPositions.
  • Updated the Education section with its total count for consistency.
  • Refined header alignment to items-baseline for better visual balance between the title and the counter.

PR created automatically by Jules for task 10914268045398347351 started by @amrabed

- Added optional `count` prop to the `Section` component.
- Implemented item counts in Skills, Certifications, Projects, Experience, and Education sections.
- Used HeroUI `Chip` (variant="soft", color="primary") for clear, non-intrusive counters.
- Ensured counts update dynamically based on active search and area filters.
- Improved section header alignment with `items-baseline`.
@google-labs-jules
Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Added optional `count` prop to the `Section` component.
- Implemented item counts in Skills, Certifications, Projects, Experience, and Education sections.
- Used HeroUI `Chip` (variant="soft", color="accent") for clear, non-intrusive counters.
- Fixed TypeScript error by using valid `color="accent"` for `Chip`.
- Improved section header alignment with `items-baseline` and cleaned up redundant classes.
- Ensured counts update dynamically based on active search and area filters.
@sonarqubecloud
Copy link
Copy Markdown

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.

0 participants