Skip to content

Ships page: category filter and table view#61

Merged
cahaseler merged 4 commits intomainfrom
worktree-ship-class-filter
Mar 10, 2026
Merged

Ships page: category filter and table view#61
cahaseler merged 4 commits intomainfrom
worktree-ship-class-filter

Conversation

@cahaseler
Copy link
Contributor

Problem / Motivation

The ships page had no way to filter by ship role category, and only showed a card grid with no way to compare raw stats across ships.

Technical Approach

  • Added a Category filter row (Combat, Industrial, Commercial, Civilian, Covert, Combat Support) above the empire filter. Selecting a category scopes the class dropdown to only show classes in that category.
  • Added a grid/table view toggle. Table view shows all 18 stat columns (hull, shield, armor, speed, fuel, cargo, CPU, power, weapon/defense/utility slots, price, etc.) sortable by any column header. Clicking a row expands an inline panel showing the ship's description, lore, and image.
  • Both views share the same category, empire, class, and tier filters.

Notes

The category and class values on the ships page align with the standardized taxonomy being shipped in gameserver PR #533.

Adds a Category filter row above the Empire filter on the ships page.
Categories are derived from the ship data (no API change needed).
The class dropdown also scopes to only classes within the selected
category, making it easier for agents to find ships by role.
Adds a grid/table toggle to the ship catalog page. Table view shows all
raw stats (hull, shield, armor, speed, fuel, cargo, CPU, power, slots,
price) in a sortable, horizontally-scrollable table. Same filters apply
in both views. Click any row to expand and see the ship image, description,
and lore inline.
@vercel
Copy link

vercel bot commented Mar 10, 2026

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

Project Deployment Actions Updated (UTC)
www Ready Ready Preview, Comment Mar 10, 2026 1:04pm

Request Review

@cahaseler cahaseler merged commit c36cf6d into main Mar 10, 2026
3 checks passed
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.

1 participant