Add project type filter to ysws review page#148
Add project type filter to ysws review page#148bbarni2020 wants to merge 1 commit intohackclub:stagingfrom
Conversation
There was a problem hiding this comment.
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.
| <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> |
There was a problem hiding this comment.
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.
No description provided.