Page MenuHomePhabricator

[web] Clean up `NotificationsModal` SVG assets and remove `SWMansionIcon` dependency
ClosedPublic

Authored by atul on May 15 2022, 7:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 2:45 AM
Unknown Object (File)
Tue, Oct 22, 8:38 PM
Unknown Object (File)
Tue, Oct 22, 11:25 AM
Unknown Object (File)
Tue, Oct 22, 11:25 AM
Unknown Object (File)
Tue, Oct 22, 11:25 AM
Unknown Object (File)
Tue, Oct 22, 11:25 AM
Unknown Object (File)
Tue, Oct 22, 2:08 AM
Unknown Object (File)
Mon, Oct 21, 11:11 PM

Details

Summary

Linear issue: https://linear.app/comm/issue/ENG-1141/use-svg-instead-of-swmansionicon-in-notificationsmodal

We were previously including the SVG illustrations in NotificationsModal via SWMansionIcon which requires going through the whole "IcoMoon" process. As noted in the Linear issue, the illustrations didn't look great (especially on Safari).

Exported the icons from Figma as SVG, cleaned up the vectors in Sketch, re-exported the cleaned-up illustrations as SVG, uploaded to S3, and replaced SWMansionIcon with <img> in NotificationsModal.

Before:

Screen Shot 2022-05-15 at 10.09.18 AM.png (1×844 px, 101 KB)

After:

Screen Shot 2022-05-15 at 10.09.04 AM.png (1×844 px, 100 KB)

Test Plan

Ensured that the illustrations looked as expected on Safari, Chrome, and Firefox.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.May 15 2022, 7:17 AM
atul edited the summary of this revision. (Show Details)
atul edited the summary of this revision. (Show Details)

rebase and remove the services CI testing diff from stack

tomek added inline comments.
web/assets.js
10–13 ↗(On Diff #12682)

Maybe we should create a single object with these properties

This revision is now accepted and ready to land.May 17 2022, 5:56 AM
web/assets.js
10–13 ↗(On Diff #12682)

Yeah that would make way more sense. It would let us avoid exporting/importing three separate variables with crazy long names and also clean up the components where they're consumed.

I can probably just update this diff in place?

I can probably just update this diff in place?

Will land as-is and refactor these and backgroundIllustration[blah] as well in separate diff