Skip to content

Fix/155 hide schools toggle#172

Closed
hansinig wants to merge 2 commits intomainfrom
fix/155-hide-schools-toggle
Closed

Fix/155 hide schools toggle#172
hansinig wants to merge 2 commits intomainfrom
fix/155-hide-schools-toggle

Conversation

@hansinig
Copy link
Copy Markdown
Collaborator

@hansinig hansinig commented Apr 9, 2026

Issue

#155 Design: Hide Schools Toggle

Who worked on this sprint/bug?

Hansini

Features Implemented

Replaced the "Hide Schools" / "Show Schools" button on the heatmap with a shadcn Switch toggle component

New files created

src/components/ui/switch.tsx — shadcn-style Switch component built on @radix-ui/react-switch, styled with a green checked state to match the design spec

Existing files modified

src/app/map/page.tsx — replaced with + "Show Schools" label; added @radix-ui/react-switch dependency to package.json

Acceptance Criteria

Use the shadcn Switch component to add a slider to switch between showing/hiding school icons - done
Ensure functionality remains the same (schools still show/hide on toggle) - done

Testing: how did you test?

Ran the app locally and navigated to the heatmap page
Verified the toggle renders in the top right corner
Toggled it on and off to confirm school icons show and hide correctly

Tag Dan and Shayne

@danglorioso @shaynesidman

hansinig and others added 2 commits April 8, 2026 23:37
Excludes schools with 0 students, teachers, and projects from the
schools table for a given year. Fixes #128.
Converts the Hide Schools button on the heatmap to a shadcn Switch
component. Fixes #155.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hansinig hansinig self-assigned this Apr 9, 2026
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mhd Ready Ready Preview, Comment Apr 9, 2026 3:58am

@hansinig hansinig linked an issue Apr 9, 2026 that may be closed by this pull request
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.

Design: Hide Schools Toggle

2 participants