feat(hub): wire group contact details on hub + shared footer - #120
Merged
Conversation
The hub used the generic phone/email/address fields, which were empty — so the contact page and footer rendered no contact info at all. Populate the group contact across the same shape the verticals use. - Add a generic `postal_address` field to SiteSettings (the verticals already had per-vertical postal/physical pairs; the hub had only one combined `address`). Widen `phone` to 60 chars to hold two numbers. - Data migration 0013 seeds the singleton with the shared group block — phone "+255 785 778 833 / +255 764 764 011", address "Msakuzi - Mbezi - Ubungo - Dar es Salaam", postal "P.O. Box 7276, Dar es Salaam" — and the group email "info@bejundas.co.tz". - Hub contact page renders Office + Postal Address + Phone (text, no tel:) + WhatsApp (+255 764 764 011) + Email, matching the vertical contact pages. - Shared core footer info block updated to the same shape — phone shown as text (the dual-number value can't be a valid tel: href), plus a WhatsApp line. The footer applies site-wide; verticals see the group contact in the footer while their own contact pages still show their vertical-specific email. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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.
What
Wires the group's contact details on the hub contact page and the shared footer, mirroring how the verticals present theirs.
How
postal_addressfield toSiteSettings(the verticals already had per-vertical postal/physical pairs; the hub only had a single combinedaddress). Widenedphonefrom 30 → 60 chars to hold the dual number, matching the per-vertical phone widening.0013populates the singleton with the values above.tel:links anywhere with the dual number — same decision as the vertical contact PR.Stacked
Stacked on top of #118 (
fix/hub-footer-and-brand-caps); the PR diff includes those footer hunks until #118 merges first. Merge #118 → develop, then this PR's diff will be just the contact wiring.Checks
ruffclean ·black --checkclean ·manage.py checkclean · 591 tests pass (new footer + contact-page test classes inapps/hub/tests/test_views.py)🤖 Generated with Claude Code