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: Project Invite Flow (Screens Only) and Practice Mode #695

Open
wants to merge 17 commits into
base: master
Choose a base branch
from

Conversation

ErikSin
Copy link
Contributor

@ErikSin ErikSin commented Aug 2, 2022

Description

2 new (but related) features:

  • Practice Mode
  • Invite to new Project flow (screens only)

Practice Mode

When user is using the default config, they will be in practice mode. Practice Mode is indicated by an orange strip across the bottoms of the screen.

Invite to a new Project

With the upcoming refactor of Mapeo core users will have the have a more streamlined approach to join a project.
Users will be able to request to join a project. In Mapeo Desktop, user will be able to join a project through a url or QR code (scanned by the project admin through Mapeo mobile).

Screen Shots

Settings Menu
image

Practice Mode
image

Join Project Flow
image

image

image

Linked Sprint Item

Closes #694 #650 #652

To Do

  • Put Behind Feature Flag
  • Approve Copy Deck
  • Import Config button functionality

@ErikSin ErikSin requested a review from achou11 August 2, 2022 06:08
@ErikSin ErikSin changed the title feat: Project Invite Flow (Screen Only) and Practice Mode feat: Project Invite Flow (Screens Only) and Practice Mode Aug 2, 2022
Copy link
Member

@achou11 achou11 left a comment

Choose a reason for hiding this comment

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

Overall looks solid so far! left some relatively minor comments but can re-review when remaining items are addressed

},
"renderer.components.Settings.ProjectConfig.joinProject": {
"description": "Button to join a new project",
"message": "Join A Project"
Copy link
Member

Choose a reason for hiding this comment

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

confirm that A is capitalized in the copy deck?

src/main/windows.js Show resolved Hide resolved
font-size: 0.8rem;
color: ${buildConfig.variant === 'icca' ? '#eeeeee' : '#aaaaaa'};
`
// {buildConfig.variant === 'icca' ? '#eeeeee' : '#aaaaaa'};
Copy link
Member

Choose a reason for hiding this comment

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

assuming used for debugging?

src/renderer/components/Home.js Outdated Show resolved Hide resolved
Comment on lines 241 to 243
const resetInvite = useCallback(() => {
setInvite(null)
}, [setInvite])
Copy link
Member

Choose a reason for hiding this comment

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

probably somewhat premature to useCallback here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I suppose it is premature, but we should eventually use usecallback here when we deal with the invite. I don't think adding it now adds to much overhead, and I think it will be a good reminder for the future.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually im going to name this handleInvite...to be a little more explicit

src/renderer/components/Settings/index.js Outdated Show resolved Hide resolved
src/renderer/components/Settings/index.js Outdated Show resolved Hide resolved
src/renderer/components/Home.js Outdated Show resolved Hide resolved
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

2 participants