-
Notifications
You must be signed in to change notification settings - Fork 88
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
KRouterLink to Studio: Replace <router-link> in Studio with <KRouterLink> #219
Comments
I would love to work on this issue. |
Hi @ShivangRawat30, great, thank you. I'm assigning you. Note that even though this issue is open in this repository, you will actually work in Studio https://github.com/learningequality/studio. I'd recommend opening more pull requests with reasonable amount of changes in each, especially the first one, so we can easily test and do review before you use the same approach for the rest of Studio. |
@ShivangRawat30 Please work from |
There's no activity for a long time so I will unassign you for now, @ShivangRawat30. Let us know if you are still interested and we can assign you again. Thank you for all your work! |
I apologize for my absence, I was occupied with my exam |
@ShivangRawat30 No need to apologize! I only need to clean up assignments that may be obsolete once upon a time, otherwise we would accumulate issues that are assigned but not being worked on which happens quite often. No pressure at all. You're always welcome to return to it when the right comes for you :) |
Hey @MisRob ! Can I work on this issue? |
Hi @BabyElias, yes, you can. Thank you. I'd recommend opening more pull requests with a reasonable amount of changes in each, so that we can easily test and do review. |
Yup, sure ! |
Hi @BabyElias. I'm sorry to hear that. Our team doesn't use Windows for development, but I will ask my colleagues to see if they have some tips. It seems it may have something to do with the missing C compiler. Can you have a look at https://stackoverflow.com/questions/72543735/facing-issue-while-installing-ruamel-yaml and see if some of the advices help? |
@BabyElias I also wanted to mention I won't be able to follow-up here this year as this is my last day before few weeks of time off. Also, the whole team's availability will too soon be limited until the second week of January. So just in case the above doesn't help and we don't figure out any other recommendations, please remind yourself after January 5 in Studio GitHub Discussion Q&A and we'll try to help with your setup. |
Sure ! |
Thank you and Happy Holidays to you too |
Hey! |
Hi @BabyElias, I'm glad you were able to resolve the development environment issue. I'm sorry for delayed response, I just returned from a long vacation, and the whole team had holidays too. Thank you for the pull request! We will review. |
Looking at the search results and I don't see any no |
Product
Studio
Expected behavior
Studio should use KComponents where available to ensure compliance with our team's design principles.
Actual behavior
Studio currently uses
<router-link>
but we provide a KRouterLink (source) component which abides our design system's conventions.Additional information
The search results linked here show the few places where
<router-link>
is used.The API for
<KRouterLink>
should map basically 1-to-1 and handle all slots seamlessly.KRouterLink & Icons
Note that the
<KRouterLink>
also has theicon
andiconAfter
slots and props (only use one) which accept a token from the Icons listed in our Design System.So - for example - when you work on the item in
@/frontend/channelList/views/Channel/ChannelItem.vue
- you'll notice that there is a slot accepting anIconButton
.You may find it easier to apply the
infoPrimary
icon (which will be available in the 0.2.x branch if #217 is merged) roughly as<KRouterLink icon="infoPrimary" ... />
.Alternatively, you can put a
<KIcon icon="info" color="$themeTokens.primary" slot="icon" />
between<KRouterLink> ... </KRouterLink>
as a slot.You're a button KRouterLink!
<KRouterLink>
may also be styled as any of our Button styles (related: KRouterLink props & slots) - so if you see that the thing using the<router-link>
in Studio looks like a proper button - or an IconButton - then you can insert a KDS flavored button with the props provided by that mixin.I don't suspect that this will affect any tests as long as you apply any
data-test
attributes that are affixed to therouter-link
to the replacementKRouterLink
(there is at least one in the.../treeView/index.vue
component.The text was updated successfully, but these errors were encountered: