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

fix: Register Username form showing before homepage #29356

Merged
merged 7 commits into from
May 31, 2023

Conversation

hugocostadev
Copy link
Contributor

@hugocostadev hugocostadev commented May 24, 2023

Proposed changes (including videos or screenshots)

Meteor Minimongo Collection was causing delays in populating user data in the front end, causing layout updates with different rules (the username was not being sent to UI the first time sending the user to the username registration form).

To avoid the incomplete stream from Meteor, I used the REST endpoint with the existing hook to get user info to get the full user data and check whether it has a username or not.

Issue(s)

Steps to test or reproduce

  1. Go to localhost:3000
  2. Open the Network tab and select the Throttling option to a slower network
  3. Try to log in as a normal user
  4. You should see the Username registration for a moment, if not, try again until happens

Further comments

WM-46

@hugocostadev hugocostadev requested a review from a team as a code owner May 24, 2023 19:02
@changeset-bot
Copy link

changeset-bot bot commented May 24, 2023

⚠️ No Changeset found

Latest commit: c3b351d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #29356 (c3b351d) into develop (9433e7c) will increase coverage by 6.72%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #29356      +/-   ##
===========================================
+ Coverage    38.93%   45.66%   +6.72%     
===========================================
  Files          646      693      +47     
  Lines        12413    12941     +528     
  Branches      2160     2221      +61     
===========================================
+ Hits          4833     5909    +1076     
+ Misses        7297     6728     -569     
- Partials       283      304      +21     
Flag Coverage Δ
e2e 45.63% <100.00%> (+6.71%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@hugocostadev hugocostadev added this to the 6.3.0 milestone May 30, 2023
Copy link
Contributor

@rique223 rique223 left a comment

Choose a reason for hiding this comment

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

LGTM!

@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label May 31, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels May 31, 2023
@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: ready to merge PR tested and approved waiting for merge labels May 31, 2023
@kodiakhq kodiakhq bot merged commit 8689b02 into develop May 31, 2023
@kodiakhq kodiakhq bot deleted the fix/login_reg_username_flicker branch May 31, 2023 14:50
gabriellsh added a commit that referenced this pull request Jun 1, 2023
…e/system-messages-update

* 'develop' of github.com:RocketChat/Rocket.Chat: (26 commits)
  fix: Importer crashes when sending the "active status" e-mail notification to users (#29401)
  docs: new README file (#27955)
  refactor: replace with new `Select` (#29368)
  fix: Sidebar's sort by name not being checked properly (#29415)
  fix: Login Terms custom content (#28999)
  fix: Broken link fixed inside webhook menu (#29048)
  fix: Apps settings i18n translation (#29394)
  fix: OTR session closing after 10 seconds without warning (#29245)
  fix: Register Username form showing before homepage (#29356)
  regression(ui-client): Toolbox action button badge in the wrong position (#29412)
  fix: marketplace filters are changing size (#28738)
  chore: Update highlighted word color (#29407)
  i18n: Language update from LingoHub 🤖 on 2023-05-22Z (#29317)
  chore(ddp-sdk): ts-jest -> swc/jest (#29380)
  chore: `ToolboxAction` pressed state (#29397)
  chore: add logs to recurring omnichannel cron jobs (#29392)
  regression: `t` using always sprintf (#29396)
  fix: fix wrong %s translations (#29395)
  regression(push): fix error when selecting what to import (#29289)
  chore: Change ddpsdk.stream to return subscription (#29375)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants