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
Unknown Object (File)
Mon, Nov 4, 3:50 AM
Unknown Object (File)
Fri, Nov 1, 7:07 AM
Unknown Object (File)
Fri, Nov 1, 7:07 AM
Unknown Object (File)
Fri, Nov 1, 7:07 AM
Unknown Object (File)
Fri, Nov 1, 7:07 AM
Unknown Object (File)
Fri, Nov 1, 7:03 AM
Unknown Object (File)
Tue, Oct 22, 10:56 PM
Unknown Object (File)
Mon, Oct 21, 9:19 PM
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
Lint Not Applicable
Unit
Tests Not Applicable

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

usernameText isn't read-only here

native/chat/inner-robotext-message.react.js
123–124

Shouldn't these be read-only?

web/chat/robotext-message.react.js
142–143

Shouldn't these be read-only?

lib/utils/entity-text.js
368

shoot my bad, D9499