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

Localized strings can be too long for the Resource Download button #5557

Open
jonboiser opened this issue May 24, 2019 · 27 comments
Open

Localized strings can be too long for the Resource Download button #5557

jonboiser opened this issue May 24, 2019 · 27 comments
Assignees
Labels
design Scoped and ready for design work to begin help wanted Open source contributors welcome P3 - low Priority: Stretch goal TAG: design system Change to our style guide / design system TAG: user strings Application text that gets translated TAG: ux update Improved user-facing feature

Comments

@jonboiser
Copy link
Contributor

jonboiser commented May 24, 2019

Observed behavior

For example, in Yorùbá, the HTML5 version of the button message is too long and will push out the file size.

Screen Shot 2019-05-24 at 4 30 42 PM

Expected behavior

There is a way the entire message can be read from the button, even when the localized message is very long. We should use our text truncator on the title so the file size is always visible.

User-facing consequences

Errors and logs

Steps to reproduce

Context

Kolibri 0.12.4 at eeb2566

@jonboiser jonboiser added the TAG: ux update Improved user-facing feature label May 24, 2019
@jonboiser jonboiser added the TAG: user strings Application text that gets translated label Mar 30, 2021
@jtamiace jtamiace added design Scoped and ready for design work to begin TAG: design system Change to our style guide / design system labels Jul 6, 2021
@jtamiace jtamiace added the P3 - low Priority: Stretch goal label Jul 20, 2021
@marcellamaki marcellamaki added this to the upcoming major milestone Jul 12, 2022
@rtibbles
Copy link
Member

rtibbles commented Jan 3, 2024

It's possible that the text truncator css component could help with this.

@deveshidwivedi
Copy link

deveshidwivedi commented Feb 14, 2024

Hi, I'd like to work on this issue, can I get assigned?

@rtibbles
Copy link
Member

Yes - note that my comment about the text truncator is about using that on the title, so that the file size always gets displayed.

@MisRob
Copy link
Member

MisRob commented Mar 15, 2024

Hi @deveshidwivedi, is this issue work in progress or should we unassign?

@deveshidwivedi
Copy link

Hi @MisRob, I will not be unable to complete the task due to other commitments. Thank you for asking!

@MisRob
Copy link
Member

MisRob commented Mar 18, 2024

Thanks for the message @deveshidwivedi

@kafukoM
Copy link
Contributor

kafukoM commented Mar 18, 2024

@MisRob I would like to be assigned to work on this issue please

@marcellamaki
Copy link
Member

Hi @kafukoM - thanks for your interest. We will assign you. Please ask here on the issue if you have any questions.

@MisRob
Copy link
Member

MisRob commented May 11, 2024

Hi @kafukoM, are you working on this or would it better to unassign?

@kafukoM
Copy link
Contributor

kafukoM commented May 13, 2024

Hi @kafukoM, are you working on this or would it better to unassign?

It would be better to reassign. Apologies for the late communication

@akolson
Copy link
Member

akolson commented May 13, 2024

Un-assigning for now. Thanks @kafukoM!

@lokesh-sagi125
Copy link
Contributor

hi @MisRob @akolson i am not clear on what to change from the description , if you dont mind could you please explain me the changes needed to be made.

@bjester
Copy link
Member

bjester commented Oct 16, 2024

@lokesh-sagi125 The intended fix is to use the text truncator on the title, such that the file size, which is appended to the string shown in the dropdown, is always visible. Currently, it appears the text truncator is applied to the entire string, including the file size.

Are you interested in working on this?

@lokesh-sagi125
Copy link
Contributor

yes @bjester pls do assign me

@lokesh-sagi125
Copy link
Contributor

lokesh-sagi125 commented Oct 18, 2024

hey @bjester the reference added was a bunch of auto generated font files and i couldn't deduce where i could make the changes, could you give me a bit more context like which component is used or the css file that the changes are to be made to?

@AlexVelezLl
Copy link
Member

Hi @lokesh-sagi125! The changes needs to be done in this DownloadButton component. With the team we have decided that for this case its better to avoid the truncation of the text, and to avoid this truncation we will need to override the max-width set by this component UiMenu. And for this, we will need to update our KDropdownMenu component to accept a new prop maxWidth that will then be passed to the UiMenu component.

With this, in the DownloadButton component in Kolibri we should pass a none in the maxWidth prop of the KDropdownMenu to avoid the truncation.

Let us know if you have any question 👐.

@lokesh-sagi125
Copy link
Contributor

hey @AlexVelezLl @bjester when i tried running 'yarn run devserver-with-kds ' and got the follwing error msg, i tried debugging it by downloading the missing commands but ended up here, can you help me with this.Image

@AllanOXDi
Copy link
Member

AllanOXDi commented Oct 28, 2024

hey @lokesh-sagi125 I think you will need include the path to the local KDS directory on your PC.
Do yarn install and then yarn run devserver-with-kds <kds-path>

@AlexVelezLl
Copy link
Member

Hey @lokesh-sagi125, did you activate the virtual environment? Are you able to run just Kolibri, without kds with the yarn devserver command?

@lokesh-sagi125
Copy link
Contributor

hey @AlexVelezLl yes i did try running yarn devserver command but keep getting this mopdule not found error , i have been trying to solve this on my own by going through the dev documentation , can you help me with this?
Image

@bjester
Copy link
Member

bjester commented Nov 4, 2024

@lokesh-sagi125 Could you try running yarn run build-kolibri-tools?

@lokesh-sagi125
Copy link
Contributor

yes @bjester i ran the command yarn run build-kolibri-tools but am still getting the same error

@MisRob
Copy link
Member

MisRob commented Nov 5, 2024

Hi @lokesh-sagi125, in one of you screenshots, I see you used a relative path ./kolibri-design-system. Can you use absolute full path to your local KDS instead? Some contributors have problems with relative paths.

More here https://kolibri-dev.readthedocs.io/en/develop/howtos/development_with_kds.html

It is recommended to use an absolute KDS path as some developers observed problems when running the command with a relative path.

@MisRob
Copy link
Member

MisRob commented Nov 18, 2024

Noting that @lokesh-sagi125 will return to this after exams - let's keep the assignment as is.

@lokesh-sagi125
Copy link
Contributor

hey @MisRob, I just raised a PR for this issue in KDS. I have made the changes as directed by Alex, but I can't seem to find the download button component. Was it removed in a recent update?

@AlexVelezLl
Copy link
Member

Hi @lokesh-sagi125! You can find the download button in learn > HTML resource > info (the (i) icon on top-right) > download button.

@MisRob
Copy link
Member

MisRob commented Dec 17, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Scoped and ready for design work to begin help wanted Open source contributors welcome P3 - low Priority: Stretch goal TAG: design system Change to our style guide / design system TAG: user strings Application text that gets translated TAG: ux update Improved user-facing feature
Projects
None yet
Development

No branches or pull requests