[PR #1328] [MERGED] Enhancement #906/Resources Dashboard: Targets Column, Customizable Columns & Status Indicators #1033

Closed
opened 2025-11-13 12:16:37 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/pangolin/pull/1328
Author: @Pallavikumarimdb
Created: 8/24/2025
Status: Merged
Merged: 11/5/2025
Merged by: @oschwartz10612

Base: devHead: enhancement-#906/dashboard-enhancements


📝 Commits (9)

📊 Changes

4 files changed (+484 additions, -120 deletions)

View changed files

📝 messages/en-US.json (+15 -1)
📝 server/routers/resource/listResources.ts (+121 -6)
📝 src/app/[orgId]/settings/resources/page.tsx (+114 -107)
📝 src/components/ResourcesTable.tsx (+234 -6)

📄 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.

Description

This PR implements the following enhancements to the Resources page, addressing issues #906 .

4.1 Show Target in the Dashboard

  • Added a new “Target” column to the Resources table.
  • Displays all configured targets for each resource in a dropdown menu.
  • Targets are copyable (ip:port) with a single click.
    image

4.2 Customizable Columns

  • Introduced column toggle controls, allowing users to select which columns are visible.
  • Improves usability for large orgs with many resources.
    image
    image

4.3 Status Icons

  • Added online/offline indicators (green/red dots):
  • Per resource: aggregated status → "online" if at least one target is reachable.
  • Per target: individual status displayed next to each target in the dropdown.
  • Status is determined via a lightweight TCP connectivity check (tcp-check-batch endpoint).
  • Results refresh on page reload; not intended as full monitoring, just quick QOL visibility.
    image

How to test?


🔄 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/1328 **Author:** [@Pallavikumarimdb](https://github.com/Pallavikumarimdb) **Created:** 8/24/2025 **Status:** ✅ Merged **Merged:** 11/5/2025 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `dev` ← **Head:** `enhancement-#906/dashboard-enhancements` --- ### 📝 Commits (9) - [`1b3eb32`](https://github.com/fosrl/pangolin/commit/1b3eb32bf4eedeb2bd8aceec0d4b34601eb1ce4b) Show targets and status icons in the dashboard - [`f211880`](https://github.com/fosrl/pangolin/commit/f21188000e4164f979adc055078634075dccf8ef) remove status check and add column filtering on all of the tables - [`8e5dde8`](https://github.com/fosrl/pangolin/commit/8e5dde887c6d1c19fcbc27d4d59da5815c4965eb) list targes in frontend - [`cdf7708`](https://github.com/fosrl/pangolin/commit/cdf77087cdd6e035ad743b03d966ff893657d482) get niceid - [`49bc2dc`](https://github.com/fosrl/pangolin/commit/49bc2dc5dae5288c392e6061e94bba946d51fee8) fix duplicate - [`ad6bb3d`](https://github.com/fosrl/pangolin/commit/ad6bb3da9fc8db4e018ebb1b36ff12e422761758) fix type error - [`54f7525`](https://github.com/fosrl/pangolin/commit/54f7525f1bf55ee2f288821301a860225e4fe43f) add status column in resource table - [`301654b`](https://github.com/fosrl/pangolin/commit/301654b63e7c43860466a1bf1f31f07293ff194a) Fix styling - [`6ddfc9b`](https://github.com/fosrl/pangolin/commit/6ddfc9b8fe5cee6806bb83ff6aae315982103d86) Revert columns ### 📊 Changes **4 files changed** (+484 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `messages/en-US.json` (+15 -1) 📝 `server/routers/resource/listResources.ts` (+121 -6) 📝 `src/app/[orgId]/settings/resources/page.tsx` (+114 -107) 📝 `src/components/ResourcesTable.tsx` (+234 -6) </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. ## Description This PR implements the following enhancements to the Resources page, addressing issues #906 . **4.1 Show Target in the Dashboard** - Added a new “Target” column to the Resources table. - Displays all configured targets for each resource in a dropdown menu. - Targets are copyable (ip:port) with a single click. <img width="1568" height="715" alt="image" src="https://github.com/user-attachments/assets/7510c300-dd6d-4088-bc89-0d70a5d75ef3" /> **4.2 Customizable Columns** - Introduced column toggle controls, allowing users to select which columns are visible. - Improves usability for large orgs with many resources. <img width="1588" height="725" alt="image" src="https://github.com/user-attachments/assets/f815ed79-6cff-4919-9378-d6b7e20b4f66" /> <img width="1585" height="637" alt="image" src="https://github.com/user-attachments/assets/5b0f0989-0abb-4cbf-b082-2f9cc9fefdcb" /> **4.3 Status Icons** - Added online/offline indicators (green/red dots): > - Per resource: aggregated status → "online" if at least one target is reachable. > - Per target: individual status displayed next to each target in the dropdown. - Status is determined via a lightweight TCP connectivity check (tcp-check-batch endpoint). - Results refresh on page reload; not intended as full monitoring, just quick QOL visibility. <img width="1562" height="563" alt="image" src="https://github.com/user-attachments/assets/21bddc61-4072-4f3d-a6ea-1c1f603dce9d" /> ## How to test? --- <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 2025-11-13 12:16:37 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#1033