The current implementation of buttons for modifying Twitter/X links has some issues and opportunities for improvement. This issue outlines three tasks to address these problems and improve user experience.
Tasks
1. Restrict Buttons to Twitter/X Links Only
Problem: Buttons appear under non-Twitter/X links (e.g., TikTok links), causing functionality to break if clicked.
[ ] Solution: Update the button logic to appear only under Twitter/X links based on the modification logic from the fixupx GitHub repository.
2. Ensure Buttons are Always Visible and Dynamic
Current Behavior:
Pressing the button to remove the description modifies the link (adds d. before the domain) and hides the button.
Expected Behavior:
[ ] The button should remain visible after any action.
[ ] Button functionality:
[ ] On the first press: Remove the description (add d. before the domain).
[ ] On the second press: Restore the description (remove d.).
[ ] Dynamically update button text to reflect the current action (e.g., “Add Description” or “Remove Description”).
3. Enhance Translation Button
Current Behavior:
The "Translate to Ukrainian" button modifies the link (adds /ua to the Twitter/X link) and then disappears.
Expected Behavior:
[ ] Replace the single translation button with a menu providing multiple translation options (e.g., /ua, /en, /nl).
[ ] Include a "Back" or "🔙" button to return to the main view.
[ ] Ensure the translation button remains visible and functional.
Notes
These tasks aim to improve the functionality and user experience of the buttons while ensuring compatibility with the existing link modification logic.
Overview
The current implementation of buttons for modifying Twitter/X links has some issues and opportunities for improvement. This issue outlines three tasks to address these problems and improve user experience.
Tasks
1. Restrict Buttons to Twitter/X Links Only
2. Ensure Buttons are Always Visible and Dynamic
d.
before the domain) and hides the button.d.
before the domain).d.
).3. Enhance Translation Button
/ua
to the Twitter/X link) and then disappears./ua
,/en
,/nl
).Notes