Page MenuHomePhabricator

[lib/native/web] make user profile accessible from a user entity in a robotext
ClosedPublic

Authored by ginsu on Oct 6 2023, 4:21 AM.
Tags
None
Referenced Files
F2137642: D9389.diff
Fri, Jun 28, 6:36 PM
Unknown Object (File)
Sat, Jun 22, 3:16 PM
Unknown Object (File)
Fri, Jun 21, 9:28 PM
Unknown Object (File)
Thu, Jun 20, 9:19 AM
Unknown Object (File)
Thu, Jun 20, 5:24 AM
Unknown Object (File)
Wed, Jun 19, 8:18 PM
Unknown Object (File)
Wed, Jun 12, 6:08 AM
Unknown Object (File)
Sun, Jun 9, 11:42 AM
Subscribers

Details

Summary

This diff introduces a UserEntity component to be used by the InnerRobotextMesssage. UserEntity will be a touchable that wil navigate to the user profile when onPress is triggered

Depends on D9388

Test Plan

Please see the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: atul, inka.
ginsu added inline comments.
web/chat/robotext-message.react.js
141–149 ↗(On Diff #31736)

Since entityTextToReact lives in lib I created this dummy UserEntity component for web that will be used temporarily to appease flow

ginsu requested review of this revision.Oct 6 2023, 4:38 AM
atul added inline comments.
web/chat/robotext-message.react.js
141–149 ↗(On Diff #31736)

Can you include a comment explaining that and linking to this comment in this diff

This revision is now accepted and ready to land.Oct 9 2023, 12:51 PM
lib/utils/entity-text.js
368 ↗(On Diff #31908)

usernameText isn't read-only here

native/chat/inner-robotext-message.react.js
123–124 ↗(On Diff #31908)

Shouldn't these be read-only?

web/chat/robotext-message.react.js
142–143 ↗(On Diff #31908)

Shouldn't these be read-only?

lib/utils/entity-text.js
368 ↗(On Diff #31908)

shoot my bad, D9499