feat(link-transfer): add request ownership button to directory table #2179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Part of the link transfer feature (see Notion doc)
Solution
This PR adds a "Request ownership" button to the directory table. On mobile, the button will not be shown on the table but only appears in the bottom panel (after the user clicks on the table row).
Clicking on "Request ownership" will take the user to Go's Contact Us form. In the future, clicking it should instead create an actual link transfer request and send an email out to the link owner, but as a first step we've agreed with product-side to redirect them to the contact form first.
Notes:
Ideally, the "Request ownership" button should be an actual
Button
component instead of aLink
, but the CSS on the directory table is such a mess that it's a bit difficult to figure out a proper styling -- it should still be alright to have it as a link though, as that would be consistent with the other clickable links on the table too (e.g. contact email).On the mobile panel though, the "Request ownership" button is actually a
Button
.Improvements:
Before & After Screenshots
BEFORE:
AFTER:
Screen.Recording.2023-03-14.at.5.54.59.PM.mov