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, Sep 17, 6:53 PM
Unknown Object (File)
Tue, Sep 17, 6:53 PM
Unknown Object (File)
Sep 2 2024, 2:59 PM
Unknown Object (File)
Aug 19 2024, 11:18 PM
Unknown Object (File)
Aug 13 2024, 5:11 PM
Unknown Object (File)
Aug 13 2024, 11:43 AM
Unknown Object (File)
Aug 13 2024, 11:43 AM
Unknown Object (File)
Aug 13 2024, 11:43 AM

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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

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