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

refactor: Pay the debt of some TODO comments #30338

Merged
merged 18 commits into from
Jan 23, 2024
Merged

Conversation

tassoevan
Copy link
Contributor

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2023

⚠️ No Changeset found

Latest commit: e0b77d5

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 Sep 8, 2023

Codecov Report

Attention: 15 lines in your changes are missing coverage. Please review.

Comparison is base (6587e0d) 49.57% compared to head (e0b77d5) 49.58%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #30338      +/-   ##
===========================================
+ Coverage    49.57%   49.58%   +0.01%     
===========================================
  Files         3317     3321       +4     
  Lines        81492    81528      +36     
  Branches     16735    16745      +10     
===========================================
+ Hits         40399    40428      +29     
+ Misses       36397    36392       -5     
- Partials      4696     4708      +12     
Flag Coverage Δ
e2e 53.21% <71.69%> (-0.02%) ⬇️
e2e-api 40.70% <ø> (+0.02%) ⬆️
unit 76.50% <ø> (ø)

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

@tassoevan tassoevan force-pushed the refactor/client-todos branch from c09a0b5 to 0b1f659 Compare September 9, 2023 05:52
@tassoevan tassoevan force-pushed the refactor/client-todos branch from 0b1f659 to e7046cc Compare September 11, 2023 14:20
@tassoevan tassoevan marked this pull request as ready for review September 12, 2023 03:19
@tassoevan tassoevan requested review from a team as code owners September 12, 2023 03:19
@@ -41,7 +38,7 @@ const TextCopy = ({ text, wrapper = defaultWrapperRenderer, ...props }: TextCopy
{...props}
>
<Scrollable vertical>{wrapper(text)}</Scrollable>
<Button icon='copy' secondary square small flexShrink={0} onClick={onClick} title={t('Copy')} />
<Button icon='copy' secondary square small flexShrink={0} onClick={handleClick} title={t('Copy')} />
Copy link
Member

Choose a reason for hiding this comment

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

why not:

Suggested change
<Button icon='copy' secondary square small flexShrink={0} onClick={handleClick} title={t('Copy')} />
<Button icon='copy' secondary square small flexShrink={0} onClick={() => copy()} title={t('Copy')} />

const { connected, retryTime, status, reconnect } = useConnectionStatus();
const reconnectCountdown = useReconnectCountdown(retryTime, status);
const t = useTranslation();
const { t } = useTranslation();
Copy link
Member

Choose a reason for hiding this comment

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

I think its not going to work here, in this file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Why not?

Copy link
Member

Choose a reason for hiding this comment

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

I think there's a verification on the provider and just translations with the proper pattern works with react-i18next

@tassoevan tassoevan added this to the 6.6 milestone Jan 22, 2024
Copy link
Member

@dougfabris dougfabris left a comment

Choose a reason for hiding this comment

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

LGTM!

@ggazzo ggazzo merged commit 0312a6c into develop Jan 23, 2024
43 checks passed
@ggazzo ggazzo deleted the refactor/client-todos branch January 23, 2024 00:05
gabriellsh added a commit that referenced this pull request Jan 23, 2024
* 'develop' of github.com:RocketChat/Rocket.Chat: (143 commits)
  fix: Marketplace apps installed as private showing as installed (#31514)
  test: fix messaging flaky test (#31512)
  fix: change the push sound sent when the push is from video conference (#30910)
  fix: ensure sessionId on Sessions documents (#31487)
  chore: handle rocket.cat creation and deletion (#31170)
  chore(agenda): Changes in Agenda API (#31427)
  refactor: Pay the debt of some TODO comments (#30338)
  feat: Room header keyboard navigability (#31516)
  fix: Cron job for clearing OEmbed cache isn't working (#31336)
  refactor(client): Handling of custom statuses (#31500)
  fix: Prevent `Fallback forward departments` feature to go on loop when configured as circular chain (#31328)
  feat: Add `push.test` endpoint (#31289)
  chore: split UserProvider into two: User and Authentication (#31513)
  fix: Can't remove channel's password to join (#31507)
  chore: convert CAS integration code to typescript (#31492)
  feat: Composer keyboard navigability (#31510)
  fix: Render warning in Logs - (MessageType.render is deprecated. Use MessageType.message instead) (#31426)
  feat: Convert emoji shortname to unicode on notification emails. (#31225)
  chore: Normalize `ButtonGroup` (#31499)
  chore: improve type definitions for login service configurations (#31491)
  ...
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.

3 participants