Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hub microsite builder [MAP-194] [CC-102] #59

Closed
wants to merge 14 commits into from
Closed

Conversation

janbaykara
Copy link
Member

@janbaykara janbaykara commented May 27, 2024

This PR adds features that can be used to build hub-style microsites on top of Mapped, so that coalitional campaign data and content can be brought together to coordinate activists.

Description

  • Adds Wagtail to Mapped
  • Adds a per-organisation frontend editor for pages of the hub
  • Adds a staff-only administration area for hub configuration — ahead of org self-service

Motivation and Context

The Hub & Spoke model of organising commonly points to "digital hub"-style infrastructure. Coalitions have multiple event sources, local group databases, actions, asks, and member lists.

Coalescing this on a map is one part of the problem that Mapped solves for organisers internally; sharing this back out to the public is the next step along the road.

But publicly shared data visualisations are most powerful when they can be adapted to their audience, and when data is married to guidance and framing content. Hubs aren't just for directories of data; they're also for narrative, news, guides and resources.

One option is to make Mapped reports embeddable via iframe or script tag. This is on the roadmap.

However the broader concept of a digital hub does well when it can deeply integrate data and other content. Hence this PR.

How Can It Be Tested?

  1. Go to Django cms route: http://127.0.0.1/cms and login using your superuser account

On sidebar, Pages -> click "Pages", and create a new page (HubHomepage) and select your org as the owner

Create a Site with hostname united.theclimatecoalition.org and define the hubhomepage as the root page

Go to the react app and click "Hub" in the top to enter the editor; make some changes

Click "Preview in new tab" to review

How Will This Be Deployed?

As above, in prod.

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I've checked the spec (e.g. Figma file) and documented any divergences.
  • My code follows the code style of this project.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I've updated the documentation accordingly.
  • Replace unused checkboxes with bullet points.

Copy link

linear bot commented May 27, 2024

MAP-194 CMS for hub

@@ -0,0 +1,4 @@
.Hero {

Choose a reason for hiding this comment

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

does this clash with Hero/styles.module.css below?

Copy link
Member Author

Choose a reason for hiding this comment

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

CSS modules not being used. We can delete them.

@janbaykara janbaykara marked this pull request as ready for review May 29, 2024 11:20
…ique

fix: fix dataloader for area_data as gss is no longer unique
@joaquimds joaquimds mentioned this pull request May 30, 2024
@joaquimds joaquimds closed this May 30, 2024
@janbaykara janbaykara changed the title Hub microsite builder [MAP-194] Hub microsite builder [MAP-194] [CC-102 Jun 3, 2024
Copy link

linear bot commented Jun 3, 2024

@janbaykara janbaykara changed the title Hub microsite builder [MAP-194] [CC-102 Hub microsite builder [MAP-194] [CC-102] Jun 3, 2024
@ev-sc ev-sc deleted the feature/hub branch December 1, 2024 12:26
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