DemocracyLab / DemocracyLab/CivicTechExchange

MyActivityController

Open
#1,139 2 comments 0 reactions 0 assignees View on GitHub
Front End
Dominant language
JavaScript
Stars
105
Forks
71
PR merge metrics
No merged PRs in 30d

Description

- [ ] create common/components/controllers/MyActivityController.jsx
- [ ] follow the pattern of other controllers in this directory, like About ProjectController, for how to fetch the data from the server.
- [ ] create the onSubmit handler for the VAR From - see the pattern in CreateProjectController.jsx as an example
- [ ] render the #1136 and the children as described in that
- [ ] Create a story in common/components/controllers/stories to test this
- [ ] create a mock that simulates getting the data from the api with some mock data in it
- [ ] create a test for when there is no data
- [ ] create a test for when all the data has been filled in.
- [ ] create a mock function that emulates receiving the submitted data
- [ ] create a test for submitting data through the form

Contributor guide

Open the contributing guide

Research direction

Start by comparing common/components/controllers/MyActivityController.jsx with the other controllers in that directory, especially About ProjectController and CreateProjectController.jsx. Check issue #1136 for the expected rendering and children, then review the stories directory and existing tests. Done means the controller fetches and submits data, has the requested story, mocks, and tests for empty, complete, and submitted states.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.