Skip to content

feat(hub): wire group contact details on hub + shared footer - #120

Merged
MussaJabir merged 1 commit into
developfrom
fix/hub-contact-details
May 28, 2026
Merged

feat(hub): wire group contact details on hub + shared footer#120
MussaJabir merged 1 commit into
developfrom
fix/hub-contact-details

Conversation

@MussaJabir

Copy link
Copy Markdown
Owner

What

Wires the group's contact details on the hub contact page and the shared footer, mirroring how the verticals present theirs.

Value
Office (physical) Msakuzi - Mbezi - Ubungo - Dar es Salaam
Postal P.O. Box 7276, Dar es Salaam
Phone +255 785 778 833 / +255 764 764 011
WhatsApp +255 764 764 011
Email info@bejundas.co.tz (the one that differs from verticals)

How

  • Schema: added a generic postal_address field to SiteSettings (the verticals already had per-vertical postal/physical pairs; the hub only had a single combined address). Widened phone from 30 → 60 chars to hold the dual number, matching the per-vertical phone widening.
  • Seed: data migration 0013 populates the singleton with the values above.
  • Hub contact page: renders Office + Postal + Phone (text) + WhatsApp + Email — same shape as the vertical contact pages.
  • Shared footer: info block rewritten — Address, Postal, Phone (text), WhatsApp, Email. Note this footer is shared site-wide, so the group contact also shows in the footer of every vertical page (while each vertical's own contact page still uses its vertical-specific email). That mirrors the parent-group → vertical structure cleanly.
  • No 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

  • ruff clean · black --check clean · manage.py check clean · 591 tests pass (new footer + contact-page test classes in apps/hub/tests/test_views.py)

🤖 Generated with Claude Code

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>
@MussaJabir
MussaJabir merged commit c9be764 into develop May 28, 2026
1 check passed
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