Skip to content

refactor(ui): replace obsolete TextCopy with CodeSnippet in TwoFactorTOTP #39956

@thekishandev

Description

@thekishandev

Current Behavior

The TwoFactorTOTP view component currently relies on the deprecated <TextCopy> component to display the TOTP backup secret string.
This happens to be the absolute final usage of the TextCopy component in the .tsx codebase.

Expected Behavior

The obsolete <TextCopy> component should be replaced with the globally standardized @rocket.chat/fuselage <CodeSnippet> component.
Because this is the final consumer, the TextCopy component itself should be fully unlinked and completely deleted from apps/meteor/client/components/TextCopy to permanently clean up the obsolete architecture and trim the bundle.

Tasks

  • Replace <TextCopy> with <CodeSnippet> in apps/meteor/client/views/account/security/TwoFactorTOTP.tsx
  • Delete legacy TextCopy component directory entirely from the client codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: featurePull requests that introduces new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions