0x213F / jukebox-radio-django

Part Jukebox. Part Radio.
Other
1 stars 0 forks source link

Add "underline" for text comment modification #74

Closed 0x213F closed 3 years ago

0x213F commented 3 years ago

Summary

The feed allows for a user to create text comments. If the user selects the text inside of a text comment, they made create a text comment modification. A text comment modification, as of right now, allows a user to modify a sub-string of the main comment text by adding one of the following styles:

This ticket adds the backend functionality which adds a new type:

Implementation

Here is a non-exhaustive (might be exhaustive, I'm not certain though) of things that need to be done:

Rendering

Before:

Screen Shot 2021-05-05 at 10 56 45 AM

After (should say "underline" instead of "link"):

Screen Shot 2021-05-05 at 10 57 44 AM

Bonus

While you are here, are there any other text comment modifications that you want to add? I kinda wanted to add upside down, what do you think? 🙃

0x213F commented 3 years ago

So I thought about this and realized it is not trivial to add "link."

1: On the backend, it will require enforcing non-overlapping intervals for 2 links. For example, if text from 0 - 10 goes to LINK A, then text from 4 - 14 cannot link to LINK B. 2: The front-end will require another dialog that allows the user to attach a link.

So, instead I changed the ticket to "underline," with the option to consider "upside down" and any other styles that you may see fit.

0x213F commented 3 years ago

@fpjhannan if I recall correctly, you completed this ticket but I committed and authored the code. I still owe you proper attribution. If you have any desired immediate course of action, let me know what you have in mind. Otherwise I keep putting this on the back-burner (I will come back to it eventually!)

In the meantime, I am going to close this ticket since it is complete.