Skip to content

Conversation

@reinaldonetof
Copy link
Contributor

@reinaldonetof reinaldonetof commented Sep 17, 2021

Proposed changes

  • Change the first screen of the app
  • Minor changes on NewServerView and make it the first screen of the app
    -- This requires a few changes on the stack as well
  • Add "Create workspace" to ServerDropdown
  • Update E2E tests

Issue(s)

How to test or reproduce

  • Open the app without an account
  • Enter the workspace
  • Do the login flow
  • When logged in:
    • 1 -> If you logout, you should be redirected to the first page
    • 2 -> If Add a server, you must be redirected to the first page

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

try {
await Linking.openURL('https://cloud.rocket.chat/trial');
} catch {
logEvent(events.RL_CREATE_NEW_WORKSPACE_F);
Copy link
Member

Choose a reason for hiding this comment

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

If there's an issue happening, log the error of the issue.

Copy link
Member

Choose a reason for hiding this comment

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

Just remove it and keep log(e) only.
logEvent isn't important here, although you might seen it on some other catches (they are also wrong).
The only important tracking here is the error itself, so we can fix it later.

constructor(props) {
super(props);
if (!isTablet) {
Orientation.lockToPortrait();
Copy link
Member

Choose a reason for hiding this comment

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

We need to keep locking orientation

alignSelf: 'center',
marginTop: isTablet ? 0 : verticalScale(116),
marginBottom: verticalScale(50),
maxHeight: verticalScale(150),
Copy link
Member

Choose a reason for hiding this comment

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

If we stick to scaling, remember to do it on render instead.
There was an issue when the app was started on landscape and styles calculated on styles.js.

try {
await Linking.openURL('https://cloud.rocket.chat/trial');
} catch {
logEvent(events.RL_CREATE_NEW_WORKSPACE_F);
Copy link
Member

Choose a reason for hiding this comment

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

Just remove it and keep log(e) only.
logEvent isn't important here, although you might seen it on some other catches (they are also wrong).
The only important tracking here is the error itself, so we can fix it later.

@lgtm-com
Copy link

lgtm-com bot commented Sep 21, 2021

This pull request introduces 1 alert when merging 996b324 into 0871849 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 22, 2021

This pull request introduces 2 alerts when merging db30859 into 0871849 - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 22, 2021

This pull request introduces 2 alerts when merging 0e43cb0 into 0871849 - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Sep 22, 2021

This pull request introduces 2 alerts when merging 7dfa547 into a52199a - view on LGTM.com

new alerts:

  • 2 for Unused variable, import, function or class

@diegolmello
Copy link
Member

Made a small change on NewServerView
Screen Shot 2021-09-23 at 10 59 35

Screen Shot 2021-09-23 at 11 00 56

@diegolmello diegolmello changed the title [FIX] Onboarding view changes [IMPROVE] Onboarding changes Sep 23, 2021
Copy link
Member

@diegolmello diegolmello left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@diegolmello diegolmello merged commit d2544a7 into develop Sep 23, 2021
@diegolmello diegolmello deleted the new.create-workspace branch September 23, 2021 14:17
ivnxyz pushed a commit to NextiaDev/Rocket.Chat.ReactNative that referenced this pull request May 26, 2023
- Change the first screen of the app
- Minor changes on NewServerView and make it the first screen of the app
- Add "Create workspace" to ServerDropdown

Co-authored-by: Diego Mello <[email protected]>
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