Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[frogend] Emoji copy "Steal this look" #1222

Merged
merged 19 commits into from
Dec 11, 2022
Merged

[frogend] Emoji copy "Steal this look" #1222

merged 19 commits into from
Dec 11, 2022

Conversation

f0x52
Copy link
Contributor

@f0x52 f0x52 commented Dec 7, 2022

Allows pasting a remote toot url, which will then present the custom emoji in it for either copying or disabling on the local instance.
Shortcodes can be adapted, and will be validated against already existing local shortcodes.

Not actually tested yet, because the testrig can't fetch remote toots over federation, and already local emoji can't be copied
image

@f0x52 f0x52 added the frontend Frontend-related stuff label Dec 7, 2022
@f0x52 f0x52 requested a review from tsmethurst December 7, 2022 19:20
@f0x52 f0x52 changed the title [frogend] Emoji copy "Steal this toot" [frogend] Emoji copy "Steal this look" Dec 7, 2022
@f0x52
Copy link
Contributor Author

f0x52 commented Dec 7, 2022

tested and works on a 0.6.0 instance, I can fetch emoji from my mastodon instance :D
image

@f0x52 f0x52 marked this pull request as ready for review December 8, 2022 16:20
Copy link
Contributor

@tsmethurst tsmethurst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great :D Just a few comments about readability and that's it; feel free to merge once you've decided what to do with those!

web/source/css/base.css Show resolved Hide resolved
searchStatus(url);
}

return (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it worth refactoring this into smaller components to avoid all the nesting?

fine if you'd rather not, just checking

});
}

return (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment here re: nesting.. though i guess if we're not going reuse any of these subcomponents elsewhere maybe there's not much point

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked over at these again but don't think splitting it into separate components would improve readability too much, and we're not re-using them either

@tsmethurst tsmethurst added the ready Ready to merge when appropriate label Dec 11, 2022
@f0x52 f0x52 merged commit 4b8d7bd into main Dec 11, 2022
@f0x52 f0x52 deleted the frogend-emoji-copy branch December 11, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend Frontend-related stuff ready Ready to merge when appropriate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants