Page MenuHomePhabricator

[web] Combine constants in `web/assets.js` into objects
ClosedPublic

Authored by atul on May 23 2022, 1:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 21, 8:45 PM
Unknown Object (File)
Thu, Sep 19, 7:08 PM
Unknown Object (File)
Thu, Sep 19, 7:08 PM
Unknown Object (File)
Thu, Sep 19, 7:07 PM
Unknown Object (File)
Thu, Sep 19, 7:07 PM
Unknown Object (File)
Tue, Sep 17, 6:28 PM
Unknown Object (File)
Mon, Sep 2, 3:02 PM
Unknown Object (File)
Fri, Aug 30, 9:29 PM

Details

Summary
Test Plan
  1. Loaded the web app
  2. Navigated to background tab and ensured that illustration looked as expected
  3. Navigated to NotificationsModal and ensured that illustrations look as expected

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.May 23 2022, 1:35 PM

Nice! We can also consider creating a component that takes an image asset and renders img with the asset. It might make sense because in every place we use the asset, we render an img and have to type asset name thrice.

This revision is now accepted and ready to land.May 24 2022, 1:02 AM

We can also consider creating a component that takes an image asset and renders img with the asset. It might make sense because in every place we use the asset, we render an img and have to type asset name thrice.

Yeah that makes sense, will take a look at that when working on the icon/graphics stuff later this week. I think there might be better ways for us to include SVG assets than host them "remotely" (on S3) and pass URI to <img> tag

will take a look at that when working on the icon/graphics stuff later this week

You should always link a Linear task when deferring work like this

will take a look at that when working on the icon/graphics stuff later this week

You should always link a Linear task when deferring work like this

https://linear.app/comm/issue/ENG-1192/figure-out-how-to-display-non-icon-graphicsillustrations-on-webnative