mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-08 05:39:49 -05:00
[PR #1283] [CLOSED] Enhancement #906/UX & Usability Improvements - Prevent Data Loss, Persist Preferences #9284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/pangolin/pull/1283
Author: @Pallavikumarimdb
Created: 8/15/2025
Status: ❌ Closed
Base:
dev← Head:enhancement-#906/Data-Loss-and-Enter-Key-Improvements📝 Commits (10+)
33b0cbdReusable Hooks and Navigation Guard for Unsaved Changes Protection & Navigation Safety.9e12d88data persistence in setting page1c19174fix Maximum update depth exceeded and implement in site forma713d13cleanup and logic simplified767c3d8fix navigation guard60884c2add data persistance inside resources (general, proxy) forms1c41797add data persistence logic inside resource create form68b01baunnecessary re-render issue fix6ff46e3Improved useFormPersistenceb4d6d47Sidebar NavigationGuard📊 Changes
38 files changed (+1722 additions, -386 deletions)
View changed files
📝
messages/en-US.json(+3 -1)📝
src/app/[orgId]/settings/access/invitations/InvitationsDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/access/roles/RolesDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/access/users/UsersDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/api-keys/OrgApiKeysDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/clients/ClientsDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/domains/DomainsDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/general/page.tsx(+24 -1)📝
src/app/[orgId]/settings/resources/ResourcesTable.tsx(+60 -3)📝
src/app/[orgId]/settings/resources/[resourceId]/authentication/page.tsx(+93 -17)📝
src/app/[orgId]/settings/resources/[resourceId]/general/page.tsx(+57 -16)📝
src/app/[orgId]/settings/resources/[resourceId]/layout.tsx(+8 -4)📝
src/app/[orgId]/settings/resources/[resourceId]/proxy/page.tsx(+211 -67)📝
src/app/[orgId]/settings/resources/[resourceId]/rules/page.tsx(+60 -7)📝
src/app/[orgId]/settings/resources/create/page.tsx(+248 -134)📝
src/app/[orgId]/settings/share-links/ShareLinksDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/sites/SitesDataTable.tsx(+1 -0)📝
src/app/[orgId]/settings/sites/create/page.tsx(+28 -11)📝
src/app/admin/api-keys/ApiKeysDataTable.tsx(+2 -1)📝
src/app/admin/idp/AdminIdpDataTable.tsx(+1 -0)...and 18 more files
📄 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 addresses several usability issues highlighted in #906 to improve user experience and prevent accidental data loss. It focuses on UX reliability and reducing user frustration.
Issues & Sub-issues addressed:
3.1 — Tab Switching = Lost Changes
Switching between tabs on a resource configuration currently causes unsaved changes to be lost if the user hasn’t clicked “Save” first.
3.2 — Leave Warning
No warning is shown when navigating away or closing the browser with unsaved changes.
4.4 — Does Not Save Amount of Entries
The “entries per page” setting is not remembered and resets after every page refresh.
How to test?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.