Fix Dynamic Fee Management Page and Improve CSS Caching - #555
Open
markettes wants to merge 4 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
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()withapp.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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.