refactor: Update <DomainPicker /> to accept default values #515

Closed
opened 2026-04-05 17:15:08 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Fredkiss3 on 12/10/2025

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.

Description

  • In this PR, I updated the domain picker component to accept default subdomain & base Domain props.
    Also updated the fetch logic (fetch domains) to use react query instead.
  • Also fixed a typescript error introduced in c56574e431
  • I also made it so that the default value of subdomain and base domains are passed to the domain picker component in the proxy resource page.

screenshots

Video

*Originally created by @Fredkiss3 on 12/10/2025* ## 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. ## Description - In this PR, I updated the domain picker component to accept default subdomain & base Domain props. Also updated the fetch logic (fetch domains) to use react query instead. - Also fixed a typescript error introduced in c56574e4315a40afbfc6198fb09a67ce7cefbe05 - I also made it so that the default value of subdomain and base domains are passed to the domain picker component in the proxy resource page. ## screenshots <table> <tr> <td align=center>Video</td> </tr> <tr> <td> <video src="https://github.com/user-attachments/assets/6d373853-3f3c-4d42-aed0-6eb3298a311c"></video> </td> </tr> </table>
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#515