UI enhancements for admin interface#752
Merged
Merged
Conversation
Added a success alert for settings save, auto-dismissed after 5s. Introduced a confirmation modal before saving settings, with form submission triggered via a hidden button. Accordion UI state is now persisted in localStorage and restored on page load. All enhancements use Bootstrap and JavaScript for improved interactivity and user feedback.
Enhance blog post create/edit pages with Bootstrap success alerts and confirmation modals. Success messages are shown after submission and auto-dismissed. "Create" and "Save" actions now require user confirmation via modal before form submission to prevent accidental changes.
Refactor UpdateAuthor to redirect and show a success message. Add Bootstrap success alert to ViewEditAuthor for feedback. Implement confirmation modal for profile updates. Include JS for modal handling and auto-dismiss alert. Set form method to POST for clarity.
Replaces browser confirm dialogs with a Bootstrap modal for approving or deleting comments in the admin interface. Shows a success alert after actions, improving user feedback and overall UI/UX.
Updated Settings.cshtml to use sessionStorage instead of localStorage for saving and restoring open accordion items. Accordion state now persists only for the current browser session, improving privacy and reducing stale data across sessions.
Adds admin ability to reply to comments via modal in the admin UI, with Markdown support and cache invalidation. Improves user feedback for comment actions (approve/delete/reply) using Bootstrap alerts and sessionStorage. Enhances UX with AJAX form submission, confirmation modals, and auto-dismissing alerts.
Replaced inline alert and modal markup in Razor views with reusable partials for success/error alerts and confirmation modals. Added dasblog-ui.js for shared UI utilities (alerts, modals, accordion state). Centralized UI logic for easier maintenance and consistent behavior.
This was referenced Jan 14, 2026
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.
PR Classification
User experience and UI enhancement for the DasBlog admin interface.
PR Summary
This PR introduces reusable confirmation modals and alert components, improves comment management, and enhances feedback for admin actions. It also adds session-based state persistence for UI elements.
_SuccessAlertPartial.cshtml,_ErrorAlertPartial.cshtml, and_ConfirmationModalPartial.cshtmlfor consistent alerts and confirmation dialogs.AdminController.csand related controllers to useTempDatafor success/error messages and implements anAddAdminCommentaction.ManageComments.cshtml,Settings.cshtml,EditPost.cshtml,CreatePost.cshtml, andViewEditAuthor.cshtmlto use modals and new alert partials.dasblog-ui.jsfor shared UI utilities and updatessite.jsfor modal-based comment management.