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

Review: v1.9.3 to master #729

Merged
merged 37 commits into from
Feb 7, 2020
Merged

Review: v1.9.3 to master #729

merged 37 commits into from
Feb 7, 2020

Conversation

Jack-Works
Copy link
Member

@Jack-Works Jack-Works commented Feb 3, 2020

Big Changes

Notes

Discussions

  1. We can recognize text in the link now, but it increase the code complicity. Switch to a markdown library might be better ( @neruthes )
  2. Why shouldDisplayWelcome deprecated? ( @SunriseFox )

Todos

  • src/components/InjectedComponents/PostDialog.tsx , hasRedPacket should become a MaterialUI theme. ( @SunriseFox ? )
  • Maybe rename src/components/InjectedComponents/StructuredMessage/StructuredPluginWrapper.tsx
  • Add red packet related UI to storybook ( @SunriseFox ? )
  • Split useSettingsUI out to a separate file
  • Check the enum support for useSettingsUI
  • Change the design of MessageCenter in holoflows-kit (@Jack-Works )

Future todos:

@Jack-Works Jack-Works force-pushed the feature/review-1-10-x branch from 6217cd5 to ccd4d1d Compare February 3, 2020 10:26
@guanbinrui
Copy link
Member

How to resolve this todo https://github.com/DimensionDev/Maskbook/blob/v1.10.0/src/database/Persona/helpers.ts#L155 in createPersonaByMnemonic? ( @SunriseFox , @guanbinrui )

Use message center?

@guanbinrui guanbinrui force-pushed the feature/review-1-10-x branch from 9fefe3a to c2d8612 Compare February 4, 2020 02:43
@SunriseFox
Copy link
Contributor

shouldDisplayWelcome: as our setup procedure changes, a user will always gain access permission first and then starts immersive setup (dashboard->provider instead of provider->dashboard, no longer need to input username from provider and open dashboard).

We need a new design about what to prompt if a user deletes their persona / disconnects all their profiles. @neruthes

- Only Myself
- Share to Everyone
- close #642
@guanbinrui guanbinrui force-pushed the feature/review-1-10-x branch from d34967a to eaff769 Compare February 5, 2020 07:51
@guanbinrui guanbinrui force-pushed the feature/review-1-10-x branch from eaff769 to d19514c Compare February 5, 2020 08:01
const ref = getActivatedUI().typedMessageMetadata
const next = new Map(ref.value.entries())
next.delete('com.maskbook.red_packet:1')
ref.value = next
if (props.onShareToEveryoneChanged) {
await sleep(300)
props.onShareToEveryoneChanged(false)
Copy link
Member Author

Choose a reason for hiding this comment

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

why add a delay here?

Copy link
Member

@guanbinrui guanbinrui Feb 5, 2020

Choose a reason for hiding this comment

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

For resetting state of Share to Everyone chip to unselect. In addition, ref.value = next is async so wait a while to ensure really reseted.

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe add a comment here

@Jack-Works
Copy link
Member Author

shouldDisplayWelcome: as our setup procedure changes, a user will always gain access permission first and then starts immersive setup (dashboard->provider instead of provider->dashboard, no longer need to input username from provider and open dashboard).

We need a new design about what to prompt if a user deletes their persona / disconnects all their profiles. @neruthes

Should we remove all codes that related to shouldDisplayWelcome

@neruthes
Copy link
Contributor

neruthes commented Feb 6, 2020

@Jack-Works: We can recognize text in the link now, but it increase the code complicity. Switch to a markdown library might be better

What text in what link? Could you offer additional context?


@Jack-Works: Remove the spring festival special leading text (81b5c8a#diff-e07e5a7386945a884d7b9bbc226204a6R339 ) ( but when? @neruthes )

Let us consult @Tedko for an answer.

Also, I would like to learn your ideas about DimensionDev/Maskbook-Talks#22.


@SunriseFox: We need a new design about what to prompt if a user deletes their persona / disconnects all their profiles.

The behavior has been defined in #407.

Upon loading Dashboard: If there is no Persona currently, Dashboard will be in pre-initialization state; otherwise, Dashboard will be in post-initialization state. This selection is made every time when Dashboard is loaded.

Nothings explicitly happens when the the user deletes all Personas. Next time the user loads Dashboard, the Dashboard will be displayed as Pre-Init state.


@SunriseFox
Copy link
Contributor

@SunriseFox: We need a new design about what to prompt if a user deletes their persona / disconnects all their profiles.

The behavior has been defined in #407.

Upon loading Dashboard: If there is no Persona currently, Dashboard will be in pre-initialization state; otherwise, Dashboard will be in post-initialization state. This selection is made every time when Dashboard is loaded.

Nothings explicitly happens when the the user deletes all Personas. Next time the user loads Dashboard, the Dashboard will be displayed as Pre-Init state.

No. I am talking about what if

  1. we have permissions to manipulate facebook / twitter page
  2. the user has no persona and never opens dashboard

@Tedko
Copy link
Member

Tedko commented Feb 6, 2020

@Jack-Works: Remove the spring festival special leading text (81b5c8a#diff-e07e5a7386945a884d7b9bbc226204a6R339 ) ( but when? @neruthes )

Let us consult @Tedko for an answer.

Also, I would like to learn your ideas about DimensionDev/Maskbook-Talks#22.

We can revise these text from 'Happy New Year etc' to 'Best Wish' etc, and remove hashtags . I guess we can do an update about leading text around 元宵节 -- ping me again when you are ready to publish a new version

@neruthes
Copy link
Contributor

neruthes commented Feb 6, 2020

@SunriseFox: We need a new design about what to prompt if a user deletes their persona / disconnects all their profiles.

The behavior has been defined in #407.
Upon loading Dashboard: If there is no Persona currently, Dashboard will be in pre-initialization state; otherwise, Dashboard will be in post-initialization state. This selection is made every time when Dashboard is loaded.
Nothings explicitly happens when the the user deletes all Personas. Next time the user loads Dashboard, the Dashboard will be displayed as Pre-Init state.

No. I am talking about what if

  1. we have permissions to manipulate facebook / twitter page
  2. the user has no persona and never opens dashboard

Suggestion for initialization can be implemented in a way similar to #409, to be visible when the user visits a timeline page of a supported social network. I will note this for future reference.

guanbinrui
guanbinrui previously approved these changes Feb 6, 2020
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.

5 participants