Repository navigation
UX improvements for admin and theme editing - #814
Merged
Merged
Conversation
- Renamed "Admin Site" to "Site Settings" in nav and menus for clarity - Reordered and renamed Settings.cshtml accordion sections and partials - Clarified home page summary mode property in SiteViewModel - Enhanced theme editor: core files sorted first, added file descriptions with popover tooltips
Added SummaryModeEnabled to ThemeEditViewModel and set it in ThemesController. Updated Edit.cshtml to show "Active" or "Inactive" badges for summary-mode files based on the current site configuration. This provides a visual cue for the status of summary files in the theme editor.
Changed "[Admin]" nav item to "[Site Settings]" for authorized users. Also updated the "Tags" menu label to "Category" in one layout variant.
Refreshed theme options in site.config and ThemeManager.cs, removing "fulcrum" and "journal", and adding "darkly", "flamingo", and "kindofblue". Changed the default theme to "darkly".
Refactored _BlogItemSummary.cshtml for improved layout, semantic HTML, and responsive design. Replaced PNG default images with new SVG placeholders and removed obsolete PNG files. Added new SVGs for default blog images.
- Add version query to default SVG image URLs for cache busting - Change SVG fill colors for updated default image appearance - Add and style hero section for "median" blog layout - Improve summary card and hero section styles in custom.css - Set data-bs-theme="light" in layout for Bootstrap theming - Refactor and enhance hero/card CSS for "flm" and "kob" layouts
DasBlogLocationExpander now retrieves the theme dynamically from SiteConfig via dependency injection, removing the need for a constructor parameter. The view location expander uses context.Values to store and access the theme. Updated AddDasBlogWebServices to instantiate DasBlogLocationExpander without arguments.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR focuses on improving the admin/theme editing UX and refreshing theme summary-mode presentation by clarifying navigation labels, reorganizing settings sections, enhancing the theme editor file list, and updating theme summary layouts (including new default SVG placeholders).
Changes:
- Renames admin navigation labels to “Site Settings” for consistency across admin UI and themes.
- Improves the theme editor by sorting key files first, adding popover descriptions, and showing summary-mode active/inactive badges.
- Updates multiple themes’ summary-mode presentation and default images, plus removes the deprecated “fulcrum” theme from the built-in theme list and updates config comments accordingly.
Reviewed changes
Copilot reviewed 22 out of 31 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| source/DasBlog.Web/wwwroot/images/default/median.svg | Adds a simple SVG placeholder used by the Median theme’s summary cards. |
| source/DasBlog.Web/wwwroot/images/default/kindofblue.svg | Adds a simple SVG placeholder used by the KindOfBlue theme’s summary cards. |
| source/DasBlog.Web/wwwroot/images/default/flamingo.svg | Adds a simple SVG placeholder used by the Flamingo theme’s summary cards. |
| source/DasBlog.Web/wwwroot/images/default/dasblog.svg | Adds an SVG placeholder intended for the DasBlog theme’s summary card image. |
| source/DasBlog.Web/wwwroot/images/default/darkly.svg | Adds a simple SVG placeholder used by the Darkly theme’s summary cards. |
| source/DasBlog.Web/Views/Themes/Edit.cshtml | Enhances theme file listing (sorting, descriptions via popovers, summary-mode status badges). |
| source/DasBlog.Web/Views/Shared/_AdminNavBar.cshtml | Renames “Admin Site” link to “Site Settings”. |
| source/DasBlog.Web/Views/Admin/Settings.cshtml | Reorders/renames accordion sections for settings organization. |
| source/DasBlog.Web/Themes/median/_Layout.cshtml | Updates admin link label and sets a default Bootstrap theme attribute on <html>. |
| source/DasBlog.Web/Themes/median/_BlogPageSummary.cshtml | Adds a hero block for the summary-mode home page. |
| source/DasBlog.Web/Themes/median/_BlogItemSummary.cshtml | Refactors summary item layout and adds a default image via SVG placeholder. |
| source/DasBlog.Web/Themes/kindofblue/custom.css | Updates hero and card styling; adds post card image styling. |
| source/DasBlog.Web/Themes/kindofblue/_Layout.cshtml | Updates admin link label and sets a default Bootstrap theme attribute on <html>. |
| source/DasBlog.Web/Themes/kindofblue/_BlogItemSummary.cshtml | Adds post image to summary cards with SVG placeholder fallback. |
| source/DasBlog.Web/Themes/flamingo/custom.css | Updates hero styling and summary item row styling. |
| source/DasBlog.Web/Themes/flamingo/_Layout.cshtml | Updates admin link label and sets a default Bootstrap theme attribute on <html>. |
| source/DasBlog.Web/Themes/flamingo/_BlogItemSummary.cshtml | Refactors summary item layout and adds image + excerpt/read-more. |
| source/DasBlog.Web/Themes/dasblog/_Layout.cshtml | Renames admin dropdown entry to “Site Settings”. |
| source/DasBlog.Web/Themes/dasblog/_BlogItemSummary.cshtml | Switches default image to SVG placeholder and improves image cropping via object-fit. |
| source/DasBlog.Web/Themes/darkly/_Layout.cshtml | Updates admin link label and sets a default Bootstrap theme attribute on <html>. |
| source/DasBlog.Web/Themes/darkly/_BlogItemSummary.cshtml | Switches default image to SVG placeholder and improves image cropping via object-fit. |
| source/DasBlog.Web/Services/ThemeManager.cs | Removes “fulcrum” from the built-in theme list. |
| source/DasBlog.Web/Models/AdminViewModels/ThemeAdminViewModels.cs | Adds SummaryModeEnabled to the theme edit view model for UI indication. |
| source/DasBlog.Web/Models/AdminViewModels/SiteViewModel.cs | Renames/clarifies display metadata for the home page summary mode setting. |
| source/DasBlog.Web/Controllers/ThemesController.cs | Populates SummaryModeEnabled in the theme editor view model. |
| source/DasBlog.Web/Config/site.config | Updates the comment describing available built-in themes. |
| source/DasBlog.Tests/UnitTests/Config/site.config | Updates the comment describing available built-in themes for test config. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+389
to
+396
| .kob-hero { | ||
| padding: 3rem 0 2rem; | ||
| border-bottom: 1px solid var(--kob-border); | ||
| background: linear-gradient(180deg, var(--kob-bg-card) 0%, var(--kob-bg) 100%); | ||
| border-radius: 12px; | ||
| padding: 3rem 2rem 2rem; | ||
| margin-bottom: 2rem; | ||
| } |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Changed .kob-hero CSS class padding from 3rem 0 2rem to 3rem 2rem 2rem in custom.css, adding horizontal padding to enhance layout and spacing.
…ng/dasblog-core into cleanup-ux-theme-edits
This was referenced May 5, 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
Design and UI/UX improvement for admin navigation, theme editing, and settings clarity.
PR Summary
This pull request updates admin navigation labels, reorganizes settings sections, and enhances the theme editor UI for better clarity and usability.