Skip to content
This repository has been archived by the owner on Nov 5, 2023. It is now read-only.

Rough onboarding flow part 1 #93

Merged
merged 39 commits into from
Jan 27, 2022
Merged

Rough onboarding flow part 1 #93

merged 39 commits into from
Jan 27, 2022

Conversation

voltrevo
Copy link
Collaborator

@voltrevo voltrevo commented Jan 12, 2022

What is this PR doing?

Adds a rough version of the onboarding ui with very little styling:

Screen Shot 2022-01-12 at 5 22 03 pm
Screen Shot 2022-01-12 at 5 22 09 pm
Screen Shot 2022-01-12 at 5 22 13 pm
Screen Shot 2022-01-12 at 5 22 16 pm

How can these changes be manually tested?

Click the Get Started → button on the popup to view the screens above (click the numbers).

Does this PR resolve or contribute to any issues?

Contributes to #90.

Checklist

  • I have manually tested these changes
  • Post a link to the PR in the group chat

Guidelines

  • If your PR is not ready, mark it as a draft
  • The resolve conversation button is for reviewers, not authors
    • (But add a 'done' comment or similar)

@github-actions github-actions bot added the extension Browser extension related label Jan 12, 2022
@voltrevo voltrevo changed the title Rough setup flow Rough onboarding flow Jan 12, 2022
@voltrevo voltrevo changed the title Rough onboarding flow Rough onboarding flow part 1 Jan 13, 2022
@voltrevo voltrevo mentioned this pull request Jan 13, 2022
2 tasks
Copy link
Contributor

@kautukkundan kautukkundan left a comment

Choose a reason for hiding this comment

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

Looks Good overall 👍🏼

extension/source/QuillPage/components/WorkflowNumbers.tsx Outdated Show resolved Hide resolved
Comment on lines 56 to 69
<div className="show-box">
<div style={{ display: 'inline-block' }}>
<Button
onPress={() => setExpanded(true)}
highlight={false}
icon={{
src: browser.runtime.getURL('assets/eye.svg'),
px: 19,
}}
>
Show secret phrase
</Button>
</div>
</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<div className="show-box">
<div style={{ display: 'inline-block' }}>
<Button
onPress={() => setExpanded(true)}
highlight={false}
icon={{
src: browser.runtime.getURL('assets/eye.svg'),
px: 19,
}}
>
Show secret phrase
</Button>
</div>
</div>
<QuickRow>
<div style={{ display: 'inline-block' }}>
<Button
onPress={() => setExpanded(!expanded)}
highlight={false}
icon={{
src: browser.runtime.getURL('assets/eye.svg'),
px: 19,
}}
>
{expanded ? "Hide secret phrase" : "Show secret phrase"}
</Button>
</div>
{expanded && <Button
onPress={() => {}}
highlight={true}
icon={{
src: browser.runtime.getURL('assets/arrow-small.svg'),
px: 19,
}}
>
Review secret phrase
</Button>}
</QuickRow>

Can use a single button for showing/hiding the box. Might need to change the CSS as well.
display:none in CSS still renders an invisible component

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

display:none in CSS still renders an invisible component

I don't think that's true.

Does this change your view? Either way I feel these are premature optimizations and it's probably better to move forward than iron them out.

Copy link
Contributor

@kautukkundan kautukkundan Jan 14, 2022

Choose a reason for hiding this comment

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

Does this change your view?

No, Not really. Also the discussion is from 2012.
The element must atleast be present in the DOM for CSS to be applied on it. If there is no element then there cant be any style.

Screenshot 2022-01-14 at 5 29 19 PM

Screenshot 2022-01-14 at 5 30 29 PM

Either way I feel these are premature optimizations

Yeah I do agree. However what i feel that once the code base grows big, these things will be hard to find. Better to take action on smaller things than leave them for later.

eg - this was a big enough change which could be delayed for later.

Copy link
Collaborator Author

@voltrevo voltrevo Jan 24, 2022

Choose a reason for hiding this comment

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

Ah I see you were using the word 'render' differently 👍.

I'm not convinced it matters but I also don't mind either way. Fixed.

extension/source/QuillPage/components/WorkflowNumbers.tsx Outdated Show resolved Hide resolved
@voltrevo voltrevo marked this pull request as draft January 24, 2022 02:23
@voltrevo voltrevo marked this pull request as ready for review January 24, 2022 03:17
Copy link
Collaborator Author

@voltrevo voltrevo left a comment

Choose a reason for hiding this comment

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

.

(I thought I had pending comments and was trying to troubleshoot it. Not sure what happened and now I can't delete this 🤷‍♂️.)

icon={<ArrowRight className="icon-md" />}
>
Review secret phrase
</Button>
Copy link
Contributor

Choose a reason for hiding this comment

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

Hey this block is unnecessarily too long
This suggestion handles the same thing in much less lines of code, happy to discuss.
#93 (comment)

Copy link
Contributor

@kautukkundan kautukkundan Jan 24, 2022

Choose a reason for hiding this comment

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

the hyperlink doesn't seem to work. Here's the code snippet -
(button need fixing though)

    <QuickRow>
        <div style={{ display: 'inline-block' }}>
          <Button
            onPress={() => setExpanded(!expanded)}
            highlight={false}
            icon={{
              src: browser.runtime.getURL('assets/eye.svg'),
              px: 19,
            }}
          >
            {expanded ? "Hide secret phrase" : "Show secret phrase"}
          </Button>
        </div>
        {expanded && <Button
            onPress={() => {}}
            highlight={true}
            icon={{
              src: browser.runtime.getURL('assets/arrow-small.svg'),
              px: 19,
            }}
          >
            Review secret phrase
          </Button>}
     </QuickRow>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure what you mean by the hyperlink? If you mean the Review secret phrase button, that's added in the next PR.

Copy link
Collaborator Author

@voltrevo voltrevo Jan 24, 2022

Choose a reason for hiding this comment

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

Hey this block is unnecessarily too long

I've implemented this because I don't mind the combined button approach but I don't think there was anything wrong there. Less code doesn't mean better code. Reviews on the other hand benefit greatly if they can be made shorter.

@voltrevo voltrevo merged commit b40948b into main Jan 27, 2022
@voltrevo voltrevo deleted the bw-90-rough-setup-flow branch January 27, 2022 05:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
extension Browser extension related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants