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

Create and Set Up Add level dialog for Activities Editor GUI #36732

Merged
merged 7 commits into from Sep 16, 2020

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented Sep 12, 2020

This splits out some of the work that was in #36627. You can watch the gif below to see what happens when you click add level. The dialog that shows when you click add level is all the components in this PR.

activitiesEditor

Links

Testing story

Added simple unit tests for each component.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@dmcavoy dmcavoy changed the base branch from staging to create-activity-editor September 14, 2020 19:07
Copy link
Member

@davidsbailey davidsbailey left a comment

Choose a reason for hiding this comment

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

Nice work, Dani! Thank you for separating this out.


//TODO: Set up creating a new level. Make sure dropdown has all level types

export default class AddLevelFilters extends Component {
Copy link
Member

Choose a reason for hiding this comment

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

please fix class name

Choose a reason for hiding this comment

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

Huh, how does the code even work as-is? Is it because of export default?

Copy link
Member

Choose a reason for hiding this comment

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

exactly. importing the default implicitly sets the name of the import.

Comment on lines +99 to +100
{this.state.methodOfAddingLevel === 'Create New Level' && (
<CreateNewLevelInputs />
Copy link
Member

Choose a reason for hiding this comment

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

can you please include a screenshot of what this looks like?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Screen Shot 2020-08-28 at 2 39 40 PM


//TODO: Set up creating a new level. Make sure dropdown has all level types

export default class AddLevelFilters extends Component {

Choose a reason for hiding this comment

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

Huh, how does the code even work as-is? Is it because of export default?

@dmcavoy dmcavoy changed the base branch from create-activity-editor to staging September 16, 2020 01:17
@dmcavoy dmcavoy merged commit fa4f986 into staging Sep 16, 2020
@dmcavoy dmcavoy deleted the add-level-dialog branch September 16, 2020 17:04
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.

None yet

3 participants