Skip to content

feat: Project Invite Flow (Screens Only) and Practice Mode#695

Open
ErikSin wants to merge 17 commits intomasterfrom
ProjectJoin
Open

feat: Project Invite Flow (Screens Only) and Practice Mode#695
ErikSin wants to merge 17 commits intomasterfrom
ProjectJoin

Conversation

@ErikSin
Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread messages/renderer/en.json
},
"renderer.components.Settings.ProjectConfig.joinProject": {
"description": "Button to join a new project",
"message": "Join A Project"
Copy link
Copy Markdown
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?

Comment thread src/main/windows.js
font-size: 0.8rem;
color: ${buildConfig.variant === 'icca' ? '#eeeeee' : '#aaaaaa'};
`
// {buildConfig.variant === 'icca' ? '#eeeeee' : '#aaaaaa'};
Copy link
Copy Markdown
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?

Comment thread src/renderer/components/Home.js Outdated
Comment thread src/renderer/components/Home.js Outdated
Comment on lines +241 to +243
const resetInvite = useCallback(() => {
setInvite(null)
}, [setInvite])
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Comment thread src/renderer/components/Settings/index.js Outdated
Comment thread src/renderer/components/Settings/index.js Outdated
Comment thread src/renderer/components/dialogs/ProjectInvite.js
Comment thread src/renderer/components/Home.js
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.

2 participants