Page MenuHomePhabricator

[web] introduce add button component
ClosedPublic

Authored by ginsu on Dec 21 2023, 7:05 PM.
Tags
None
Referenced Files
F3325215: D10436.id35030.diff
Wed, Nov 20, 5:21 AM
F3323227: D10436.diff
Wed, Nov 20, 3:24 AM
Unknown Object (File)
Sat, Nov 16, 9:55 AM
Unknown Object (File)
Sat, Nov 16, 7:22 AM
Unknown Object (File)
Sat, Nov 16, 5:20 AM
Unknown Object (File)
Sat, Nov 16, 4:26 AM
Unknown Object (File)
Sat, Nov 16, 3:02 AM
Unknown Object (File)
Sat, Nov 16, 2:29 AM
Subscribers

Details

Summary

The new web app design uses this add button in several places. Rather than copy + paste this logic in all those places, I built this component that can be reused where we need this add button.

Test Plan

flow + confirmed that the prexisting add button in the keyserver selection list has no regressions

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/components/add-button.react.js
18

This change from 26 to 24 is intentional. In the designs this button is 24x24, must have made this mistake when working on the keyserver selection screens

Screenshot 2023-12-21 at 10.04.38 PM.png (426×1 px, 46 KB)

ginsu requested review of this revision.Dec 21 2023, 7:25 PM
This revision is now accepted and ready to land.Dec 26 2023, 5:21 PM

update + rebase before landing

This revision was landed with ongoing or failed builds.Dec 27 2023, 12:49 PM
This revision was automatically updated to reflect the committed changes.