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

feat: Add Create Project flow #846

Merged
merged 6 commits into from
Oct 21, 2021
Merged

feat: Add Create Project flow #846

merged 6 commits into from
Oct 21, 2021

Conversation

achou11
Copy link
Member

@achou11 achou11 commented Oct 18, 2021

Closes #841

Notes:

  • Only includes project and device name fields
  • Had to fix the practice mode UI logic because it would cause a whole screen re-render when changing to routes that don't display it (i.e. Create Project screen)
  • None of the backend supports this right now

Preview:

Kapture 2021-10-18 at 13 30 49

Comment on lines +34 to +52
return (
<View
style={[
styles.flexContainer,
showPracticeModeUi && styles.practiceModeContainer,
]}
>
<View style={styles.flexContainer}>{children}</View>

//If practice mode is NOT enabled, the user is just returned the children
return <React.Fragment>{children}</React.Fragment>;
{showPracticeModeUi && !hideBar && (
<View style={styles.bottomBar}>
<MaterialCommunityIcons name="lightbulb-on" color={WHITE} size={28} />
<Text style={styles.text}>
<FormattedMessage {...m.title} />
</Text>
</View>
)}
</View>
);
Copy link
Member Author

@achou11 achou11 Oct 18, 2021

Choose a reason for hiding this comment

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

Instead of relying on conditional returns to hide practice mode UI, we conditionally style a wrapping container. This prevents massive re-renders with the relatively minor trade-off of keeping some practice mode nodes present

Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

@achou11 achou11 force-pushed the ac/841/create-project-flow branch 3 times, most recently from 67dc7d4 to de7e86e Compare October 18, 2021 18:26
@achou11 achou11 force-pushed the ac/841/create-project-flow branch from de7e86e to 1eab98f Compare October 19, 2021 17:56
Copy link
Contributor

@ErikSin ErikSin left a comment

Choose a reason for hiding this comment

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

Nice job

@achou11 achou11 merged commit 978bb61 into develop Oct 21, 2021
@achou11 achou11 deleted the ac/841/create-project-flow branch October 21, 2021 15:20
@achou11 achou11 mentioned this pull request Oct 25, 2021
gmaclennan added a commit that referenced this pull request Nov 23, 2021
…ject-invite-server

* commit '1aa1749aaf6e5a439234e9fedf7ff28d05cd0edb':
  chore: Add Husky to project (#755)
  chore: Fix small typo in translation description (#868)
  feat: Show alert after successfully importing config (#864)
  chore(release): Prepare release 5.3.2
  fix: Add missing Portuguese and Spanish translations
  chore(release): Prepare release 5.3.1
  fix: Do not surface Practice Mode in config details in settings (#852)
  fix: Enable navigation to Experiments screen (#853)
  fix: Do not surface Practice Mode in config details in settings (#852)
  fix: Enable navigation to Experiments screen (#853)
  feat: Add Create Project flow (#846)
  chore(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /src/backend (#753)
  feature: Add new translation strings (en) (#754)
  chore: Patch nodejs-mobile to specify NDK version (#757)
  Update contributing docs for NDK fix
  chore(release): Prepare release 5.3.0
@achou11 achou11 mentioned this pull request Jan 24, 2022
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.

(Front) Create a project
2 participants