-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fix to issue #4606 : Links leading outside Studio need to have a pop out icon #4622
Fix to issue #4606 : Links leading outside Studio need to have a pop out icon #4622
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry @shivam-daksh but we don't want to replace KExternalLink
by ActionLink
as ActionLink
is supposed to be gradually replaced by Kolibri Design System components. That won't be done in scope of #4606, however we don't want move in the opposite direction.
I left a pretty detailed instructions in the "Guidance" section of #4606 that will help you to resolve it while keeping KExternalLink
. Please try to follow it or ask questions here if there's anything that's not clear and I will make sure to clear any doubts.
@shivam-daksh In addition to the guidance in the issue, also see https://design-system.learningequality.org/kexternallink/. Apologies, I realize it'd be better to link it sooner. |
Hi @MisRob, as you said, I've changed the |
Thanks @shivam-daksh! The latest changes are aligned with the guidance and look well overall to me. I currently have a queue of several larger PRs so I will loop in my colleagues for more detailed review and manual confirmation. @ozer550 and @AllanOXDi would you please give it a look and test when you have a moment? Here's the issue #4606. Thank you. |
Hi @shivam-daksh Thanks for woking on this . links leading outside Studio now have a pop out icon. I am leaving a few clean up comments |
contentcuration/contentcuration/frontend/settings/pages/UsingStudio/index.vue
Show resolved
Hide resolved
href="https://github.com/learningequality/studio/issues" | ||
:text="$tr('issuesPageLink')" | ||
target="_blank" | ||
openInNewTab="true" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for letting me know. I've changed it to simplified.
</style> | ||
.kexternal-redirect{ | ||
margin-left: -8px; | ||
display: inline !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The !important
property might not be necessary if there are no conflicting styles. It's generally best to avoid !important unless absolutely necessary. In fact, if you use the !important property , it will override all previous styling rules for that specific property on that element :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And display
property was indeed unnecessary, so I've removed it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @shivam-daksh, thanks for your hard work on this. The work looks good! Let's just make sure that the linting checks are passing, and then we can merge the changes. You can run yarn run lint-frontend:format
Hey @AllanOXDi, I'm getting this error after running
|
@shivam-daksh We figured out that what you're seeing may be just confusing output of the command. Running |
Hi @MisRob, Initially, my working tree was clean. But when I run that command a single change occured in a file that I commited. My working tree was clean and I ran the command
|
@shivam-daksh Thanks for following up. So the first step now - can you push the commited file just to see if that resolves the check on this PR? |
@shivam-daksh Oh you already did, sorry I missed that! Re-running the checks now. |
@shivam-daksh Linting passes now ;) So all good in the scope of this PR. Thanks for reporting the outputs, we took a note of it. Also thanks @AllanOXDi and @Pursottam6003, I think it's in good shape now thanks to your feedback. I skimmed briefly through the latest changes too and as soon as all checks pass, seems ready for merge to me. |
Congrats to your first contribution @shivam-daksh and thanks for following-up! |
Well done 🎉 @shivam-daksh |
Thank you, @MisRob, for your guidance throughout this process! |
Summary
Description of the change(s) you made
This merge request addresses the issue where external links in Studio did not have a visual indicator to distinguish them from internal links. The affected links also did not open in a new tab by default. To resolve this, the KExternalLink component has been replaced with the ActionLink component, and a CSS class inline-icon has been added to provide the necessary visual indication.
Manual verification steps performed
KExternalLink
withActionLink
to ensure consistent behavior and appearance across the application.inline-icon
CSS class to the ActionLink component to display a pop-out icon for adjusting the position.Screenshots (if applicable)
Screen.Recording.2024-08-02.at.3.10.34.PM.mov
Affected Areas
ActionLink
component with theinline-icon
class.ActionLink
component replacing KExternalLink component and adding theinline-icon
class rep.Reviewer guidance
How can a reviewer test these changes?
Contributor's Checklist
PR process:
CHANGELOG
label been added to this PR. Note: items with this label will be added to the CHANGELOG at a later timedocs
label has been added if this introduces a change that needs to be updated in the user docs?requirements.txt
files also included in this PRStudio-specifc:
notranslate
class been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. icons, user-generated text)pages
,components
, andlayouts
directories as described in the docsTesting:
Reviewer's Checklist
This section is for reviewers to fill out.
yarn
andpip
)