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)
Thu, Nov 14, 4:29 AM
Unknown Object (File)
Thu, Nov 14, 4:29 AM
Unknown Object (File)
Thu, Nov 14, 4:29 AM
Unknown Object (File)
Sat, Nov 2, 3:51 PM
Unknown Object (File)
Sat, Oct 26, 8:18 PM
Unknown Object (File)
Sat, Oct 26, 8:18 PM
Unknown Object (File)
Tue, Oct 22, 11:25 AM
Unknown Object (File)
Tue, Oct 22, 11:25 AM

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