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(eventing): Emit new creator_status_change event #588

Merged
merged 1 commit into from
Sep 14, 2020

Conversation

mxiao6
Copy link
Contributor

@mxiao6 mxiao6 commented Sep 11, 2020

@mxiao6 mxiao6 requested a review from a team as a code owner September 11, 2020 23:46
src/store/eventing/status.ts Outdated Show resolved Hide resolved
src/store/eventing/status.ts Show resolved Hide resolved
Comment on lines +10 to +25
{
common: {
mode: 'region',
},
creator: {
status: 'init',
},
} as AppState,
{
common: {
mode: 'region',
},
creator: {
status: 'started',
},
} as AppState,
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need to firm up our design for how annotations sdk mode will work with the discoverability feature. Will annotations sdk mode be region by default? Or will we enable region creation when annotations sdk mode is none?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ideally, I think the Annotations SDK mode should be "none" by default and that the mode should determine which creation flow is active, where "none" would continue to mean none. The Preview SDK can then set the mode it desires once the annotator has been initialized.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this makes sense, we've tried to abstract away the funky preview sdk button states from annotations sdk. So from the discoverability perspective, we'll need to initialize Annotations sdk with mode=region and update the FSM to set the annotations sdk mode to region each time we toggle off the explicit annotation mode.

@ChenCodes this means the logic to turn off pointer-events in the text layer when in explicit region mode will need to live in preview sdk now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants