Page MenuHomePhabricator

Create simple campaign stats route and template
Closed, ResolvedPublic

Description

Note: This is just a first implementation, so will just be a duplicate of the stats we currently show on the campaign page. We can improve if time permits, or leave this as a hackathon task.
We can increase the number of rows displayed to top 20 on the new page to differentiate it immediately from the campaign page. The new page will be in addition to the summaries we already display, so don't remove any stats currently on the campaign page.

New stats page

Create route for stats page and new template based on existing stats we display on the campaign/<id> route

  1. Create new route: campaigns/<id>/stats, passing the same stats data to the template as we do on the campaign/<id> route
  1. Create new template: campaign_stats.html with HTML copied directly from stats section in campaign.html
  1. Add single "download all contribution data" button to new stats page

Campaign page changes

  1. Remove both download buttons (download is now on the stats page)
  1. Add new "More stats" button in same location as old download buttons (links to the stats route)

Event Timeline

NavinoEvans renamed this task from Create new campaign stats page to Create new campaign stats basic route and template.Jul 8 2019, 10:13 PM
NavinoEvans renamed this task from Create new campaign stats basic route and template to Create simple campaign stats route and template.Jul 8 2019, 10:16 PM
NavinoEvans triaged this task as High priority.
NavinoEvans removed a subscriber: Liuxinyu970226.

Change 521905 had a related patch set uploaded (by Eugene233; owner: Eugene233):
[labs/tools/Isa@master] Create simple campaign stats route and template

https://gerrit.wikimedia.org/r/521905

Change 521905 merged by jenkins-bot:
[labs/tools/Isa@master] Create simple campaign stats route and template

https://gerrit.wikimedia.org/r/521905

Eugene233 claimed this task.