[PR #2670] [MERGED] Feat: selector filtering #16033

Closed
opened 2026-05-16 04:04:59 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/2670
Author: @Fredkiss3
Created: 3/18/2026
Status: Merged
Merged: 3/29/2026
Merged by: @miloschwartz

Base: devHead: feat/selector-filtering


📝 Commits (10+)

  • 18ed388 ♻️ filter sites server side in resource target
  • 435cae0 ♻️ refactor
  • c9be84a Merge branch 'dev' into feat/selector-filtering
  • 722595c ♻️ make site selector popover its own component
  • 8f33e25 ♻️ use site selector on private resources
  • e157031 ♻️ resource selector in create share link form
  • ce58e71 ♻️ make machine selector a multi-combobox
  • 02697e2 ♻️ refactor
  • e358d12 ♻️ submit
  • 52cac4a 🚚 rename component

📊 Changes

14 files changed (+596 additions, -296 deletions)

View changed files

📝 messages/en-US.json (+5 -0)
📝 server/routers/resource/getResource.ts (+7 -8)
📝 server/routers/target/listTargets.ts (+1 -0)
📝 src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx (+13 -13)
📝 src/app/[orgId]/settings/resources/proxy/create/page.tsx (+9 -7)
📝 src/components/CreateShareLinkForm.tsx (+48 -80)
📝 src/components/InternalResourceForm.tsx (+117 -116)
📝 src/components/MachineClientsTable.tsx (+1 -1)
📝 src/components/UserDevicesTable.tsx (+1 -1)
src/components/machines-selector.tsx (+108 -0)
src/components/resource-selector.tsx (+97 -0)
📝 src/components/resource-target-address-item.tsx (+52 -61)
src/components/site-selector.tsx (+92 -0)
📝 src/lib/queries.ts (+45 -9)

📄 Description

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Summary

Make site, resources & machine selectors server side filterable.

Screenshots

Name Screenshots
site selector on the resource targets
resource selector on share link form Screenshot 2026-03-19 at 04 44 34
machine selector on the private resources

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/fosrl/pangolin/pull/2670 **Author:** [@Fredkiss3](https://github.com/Fredkiss3) **Created:** 3/18/2026 **Status:** ✅ Merged **Merged:** 3/29/2026 **Merged by:** [@miloschwartz](https://github.com/miloschwartz) **Base:** `dev` ← **Head:** `feat/selector-filtering` --- ### 📝 Commits (10+) - [`18ed388`](https://github.com/fosrl/pangolin/commit/18ed38889fa19ad32009043b48652458a959e669) ♻️ filter sites server side in resource target - [`435cae0`](https://github.com/fosrl/pangolin/commit/435cae06a2f5472b228496b2cf37c5f9aa2d9579) ♻️ refactor - [`c9be84a`](https://github.com/fosrl/pangolin/commit/c9be84a8a858dc8aa04f3bd96059de43da477cf2) Merge branch 'dev' into feat/selector-filtering - [`722595c`](https://github.com/fosrl/pangolin/commit/722595c1319535fa02d904794a205f1d8d926ae2) ♻️ make site selector popover its own component - [`8f33e25`](https://github.com/fosrl/pangolin/commit/8f33e25782b1dccb80997014d321bc2258b2a3c9) ♻️ use site selector on private resources - [`e157031`](https://github.com/fosrl/pangolin/commit/e15703164d231c284090ee04e86b48a7e357cfe5) ♻️ resource selector in create share link form - [`ce58e71`](https://github.com/fosrl/pangolin/commit/ce58e71c440f40a8ea26d6d4d7546c19f16b658a) ♻️ make machine selector a multi-combobox - [`02697e2`](https://github.com/fosrl/pangolin/commit/02697e27a4fa7be24affe70328b0e54a67bcb1d4) ♻️ refactor - [`e358d12`](https://github.com/fosrl/pangolin/commit/e358d1276568bd5e318b5711d4fd93377f67bea1) ♻️ submit - [`52cac4a`](https://github.com/fosrl/pangolin/commit/52cac4aa21ea44c01633f9aaf9d80deca6a74f3d) 🚚 rename component ### 📊 Changes **14 files changed** (+596 additions, -296 deletions) <details> <summary>View changed files</summary> 📝 `messages/en-US.json` (+5 -0) 📝 `server/routers/resource/getResource.ts` (+7 -8) 📝 `server/routers/target/listTargets.ts` (+1 -0) 📝 `src/app/[orgId]/settings/resources/proxy/[niceId]/proxy/page.tsx` (+13 -13) 📝 `src/app/[orgId]/settings/resources/proxy/create/page.tsx` (+9 -7) 📝 `src/components/CreateShareLinkForm.tsx` (+48 -80) 📝 `src/components/InternalResourceForm.tsx` (+117 -116) 📝 `src/components/MachineClientsTable.tsx` (+1 -1) 📝 `src/components/UserDevicesTable.tsx` (+1 -1) ➕ `src/components/machines-selector.tsx` (+108 -0) ➕ `src/components/resource-selector.tsx` (+97 -0) 📝 `src/components/resource-target-address-item.tsx` (+52 -61) ➕ `src/components/site-selector.tsx` (+92 -0) 📝 `src/lib/queries.ts` (+45 -9) </details> ### 📄 Description ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Summary Make site, resources & machine selectors server side filterable. ## Screenshots | Name | Screenshots | | :----------------: | :-----------: | | site selector on the resource targets | <video src="https://github.com/user-attachments/assets/37a6c17f-7d11-4cfe-9df7-5909904e9e10"></video> | | resource selector on share link form | <img width="575" height="568" alt="Screenshot 2026-03-19 at 04 44 34" src="https://github.com/user-attachments/assets/4841b7ac-5aec-4532-8b59-2c1a40841c42" /> | | machine selector on the private resources | <video src="https://github.com/user-attachments/assets/e3d15d83-0cf9-40a6-834b-5a5ec393d37c"></video> | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-16 04:04:59 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#16033