Skip to content

Fix sidebar showing blank when church name not configured#8100

Merged
DawoudIO merged 2 commits intomasterfrom
fix/sidebar-church-name-fallback
Feb 28, 2026
Merged

Fix sidebar showing blank when church name not configured#8100
DawoudIO merged 2 commits intomasterfrom
fix/sidebar-church-name-fallback

Conversation

@DawoudIO
Copy link
Contributor

Summary

Adds a fallback display value to the sidebar brand-text span so that fresh or demo installations show "ChurchCRM" instead of a blank space next to the logo when sChurchName has not yet been configured in System Settings.

Changes

  • src/Include/Header.php: use ?: gettext('ChurchCRM') fallback on the brand-text span

Why

On a fresh install, SystemConfig::getValue('sChurchName') returns an empty string, leaving the sidebar logo area with no visible name. This is confusing UX — showing "ChurchCRM" as a default makes the sidebar immediately legible until the admin sets their church name.

Files Changed

  • src/Include/Header.php — 1 line changed

Testing

  • Fresh install (no church name configured): sidebar shows "ChurchCRM"
  • Configured install: sidebar shows the configured church name (no change)

🤖 Generated with Claude Code

Add 'ChurchCRM' fallback to brand-text span so fresh/demo installs
show a meaningful name in the sidebar instead of an empty space.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings February 28, 2026 02:48
@DawoudIO DawoudIO requested a review from a team as a code owner February 28, 2026 02:48
@DawoudIO DawoudIO requested review from DAcodedBEAT, MrClever, bigtigerku, grayeul and respencer and removed request for a team February 28, 2026 02:48
Copy link
Contributor

Copilot AI left a comment

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 addresses a fresh-install UX issue where the sidebar brand text can appear blank when sChurchName is not configured, by adding a default fallback label.

Changes:

  • Add a fallback to display ChurchCRM in the sidebar brand text when ChurchMetaData::getChurchName() is empty.

@DawoudIO DawoudIO merged commit c415e06 into master Feb 28, 2026
1 check passed
@DawoudIO DawoudIO deleted the fix/sidebar-church-name-fallback branch February 28, 2026 02:51
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