Skip to content

Replace react-identicons library during Tailwind UI migration #2320

@coderabbitai

Description

@coderabbitai

Summary

The react-identicons library is currently used in the web workspace to render identicon avatars. It does not ship its own TypeScript type definitions, which required adding a manual declaration shim (web/src/types/react-identicons.d.ts) to prevent noImplicitAny errors introduced by the stricter TypeScript configuration.

Why Replace It

  • The library has no TypeScript support, necessitating a shim that should be temporary.
  • The shim was added as part of feat: pre-commit type checking and lint - web #2279 (feat: pre-commit type checking and lint - web) solely to unblock stricter TS checks — it is not a long-term solution.
  • Maintaining a shim adds ongoing maintenance overhead and obscures type-safety guarantees.

When to Replace It

This library should be replaced during (or alongside) the upcoming migration of the web workspace UI to Tailwind CSS. At that point, the component(s) consuming react-identicons should be refactored to use a well-typed alternative (or a custom implementation), and the shim at web/src/types/react-identicons.d.ts should be removed.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions