Skip to content

UI enhancements for admin interface#752

Merged
poppastring merged 7 commits into
mainfrom
improving-admin-save-confirmation
Jan 14, 2026
Merged

UI enhancements for admin interface#752
poppastring merged 7 commits into
mainfrom
improving-admin-save-confirmation

Conversation

@poppastring
Copy link
Copy Markdown
Owner

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.

  • Adds _SuccessAlertPartial.cshtml, _ErrorAlertPartial.cshtml, and _ConfirmationModalPartial.cshtml for consistent alerts and confirmation dialogs.
  • Updates AdminController.cs and related controllers to use TempData for success/error messages and implements an AddAdminComment action.
  • Refactors ManageComments.cshtml, Settings.cshtml, EditPost.cshtml, CreatePost.cshtml, and ViewEditAuthor.cshtml to use modals and new alert partials.
  • Introduces dasblog-ui.js for shared UI utilities and updates site.js for modal-based comment management.
  • Implements sessionStorage-based persistence for accordion state and comment action alerts.

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.
@poppastring poppastring merged commit 7e1f9c9 into main Jan 14, 2026
3 checks passed
@poppastring poppastring deleted the improving-admin-save-confirmation branch January 14, 2026 03:33
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.

1 participant