Skip to content

Add project type filter to ysws review page#148

Open
bbarni2020 wants to merge 1 commit intohackclub:stagingfrom
bbarni2020:ysws-review-type-filter
Open

Add project type filter to ysws review page#148
bbarni2020 wants to merge 1 commit intohackclub:stagingfrom
bbarni2020:ysws-review-type-filter

Conversation

@bbarni2020
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings February 11, 2026 18:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a “project type” dimension to the YSWS admin review page so reviewers can see (and filter by) the underlying editor/file source (Onshape/Fusion/etc.).

Changes:

  • Add a multi-select “Type” filter to the YSWS review filter form.
  • Extend the server query payload to include editor/file fields and apply a type filter via getProjectLinkType().
  • Display the derived project type on each project card.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/routes/dashboard/admin/ysws-review/+page.svelte Adds the Type filter UI and shows the derived type per project.
src/routes/dashboard/admin/ysws-review/+page.server.ts Adds type handling to the form action and filters project results by derived link type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +116 to +123
<option value="onshape" class="truncate">Onshape</option>
<option value="fusion-link" class="truncate">Fusion Link</option>
<option value="fusion-file" class="truncate">Fusion File</option>
<option value="blender" class="truncate">Blender</option>
<option value="freecad" class="truncate">FreeCAD</option>
<option value="solvespace" class="truncate">SolveSpace</option>
<option value="unknown" class="truncate">Other</option>
</select>
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The project type <option> list is hardcoded here (and appears duplicated in the non-YSWS admin review page). To reduce the risk of UI options drifting from getProjectLinkType() return values, consider exporting a single shared mapping/list (e.g., projectLinkTypeLabels) from $lib/utils and rendering options from it.

Copilot uses AI. Check for mistakes.
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

Comments