Skip to content

Fix Dynamic Fee Management Page and Improve CSS Caching - #555

Open
markettes wants to merge 4 commits into
mainfrom
fix/dynamic-fee-management-page
Open

Fix Dynamic Fee Management Page and Improve CSS Caching#555
markettes wants to merge 4 commits into
mainfrom
fix/dynamic-fee-management-page

Conversation

@markettes

Copy link
Copy Markdown
Contributor

Update the Peers page to serve as the Dynamic Fee Management page, enhancing user experience. Replace UseStaticFiles with MapStaticAssets to improve CSS caching and ensure browsers revalidate assets after deployment.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR repurposes the existing “Peers” UI into a dedicated Dynamic Fee Management page and updates the ASP.NET Core static-asset pipeline to improve post-deploy CSS/asset freshness via revalidation.

Changes:

  • Replaced app.UseStaticFiles() with app.MapStaticAssets() to change how static assets are served/cached.
  • Renamed the Peers page UI/route to Dynamic Fee Management (/dynamic-fee-management).
  • Added new scoped CSS for the Dynamic Fee Management page layout and table styling.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
src/Program.cs Switches static file handling to MapStaticAssets for improved asset revalidation behavior.
src/Pages/DynamicFeeManagement.razor Updates the page route/title and logger category to match “Dynamic Fee Management”.
src/Pages/DynamicFeeManagement.razor.css Adds page-specific scoped CSS for the new Dynamic Fee Management UI styling.
Suppressed comments (2)

src/Pages/DynamicFeeManagement.razor:1

  • The app navigation still links to the legacy "peers" route (e.g., NavMenu uses href="peers"), so changing this page’s route to only "/dynamic-fee-management" will make the menu entry and any existing bookmarks to "/peers" break. Consider keeping "/peers" as an alias route (or update all callers in the same PR).
    src/Pages/DynamicFeeManagement.razor:239
  • Several log/audit messages in this component still say "Peers page" (e.g., DynamicFeeManagement.razor:285, 292, 408, 416, 510). Now that the UI is labeled "Dynamic Fee Management", these messages become misleading during troubleshooting and in the audit trail; update them to match the new page name/route.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@markettes
markettes requested a review from Jossec101 August 5, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants