Skip to content

UX improvements for admin and theme editing - #814

Merged
poppastring merged 10 commits into
mainfrom
cleanup-ux-theme-edits
May 5, 2026
Merged

poppastring merged 10 commits into
mainfrom
cleanup-ux-theme-edits

Conversation

@poppastring

Copy link
Copy Markdown
Owner

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.

  • _Layout.cshtml, _AdminNavBar.cshtml: Renamed "[Admin Site]" to "[Site Settings]" for consistent navigation labeling.
  • Settings.cshtml: Reordered and renamed accordion sections for improved settings organization.
  • SiteViewModel.cs: Renamed and clarified the summary mode property for home page display.
  • ThemeEditViewModel.cs, ThemesController.cs: Added and populated a SummaryModeEnabled property for theme editing.
  • Edit.cshtml: Improved theme file listing with sorting, popover descriptions, and summary mode status badges.

- 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.

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 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;
}

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

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.
@poppastring
poppastring merged commit 69ae287 into main May 5, 2026
3 checks passed
@poppastring
poppastring deleted the cleanup-ux-theme-edits branch May 5, 2026 23:16
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