dashboard icon indicating copy to clipboard operation
dashboard copied to clipboard

fix: workload charts are black for certain languages

Open HanNguyen-dev opened this issue 1 year ago • 6 comments

For certain languages such as KR and FR, the workload charts are black.

The current code is pulling out the translation for the different statuses by passing Running, Succeeded, etc; just that there are different texts (3) starting with Running, Succeeded, etc.

The code change passes in an empty string for placeholder to mimic how status label names were generated; thus the translated text will be a substring of the status label names.

https://github.com/kubernetes/dashboard/blob/5d6805dca8ab1b8ec93b335f78b8431959f7586b/modules/web/src/overview/helper.ts#L30-L34

closes https://github.com/kubernetes/dashboard/issues/8898 closes https://github.com/kubernetes/dashboard/issues/8753

HanNguyen-dev avatar May 21 '24 22:05 HanNguyen-dev

CLA Signed

The committers listed above are authorized under a signed CLA.

  • :white_check_mark: login: HanNguyen-dev / name: Han Nguyen (02dd071d616f1ced330a45784ab5a00d9902e893, fc0fa516a7d79a3ca6c42a744e727e5351f5ec57, 49342503f466ac1e253a203ff19af5db0bc3f950)

Welcome @HanNguyen-dev!

It looks like this is your first PR to kubernetes/dashboard 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/dashboard has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. :smiley:

k8s-ci-robot avatar May 21 '24 22:05 k8s-ci-robot

Nice fix @HanNguyen-dev, thanks. LFT it being merged !

Amphaal avatar Jun 17 '24 11:06 Amphaal

I agree , it is a nice fix. It will Help to fix the issue in all languages at once. /lgtm

gdelvallez1 avatar Oct 06 '24 07:10 gdelvallez1

@gdelvallez1: changing LGTM is restricted to collaborators

In response to this:

I agree , it is a nice fix. It will Help to fix the issue in all languages at once. /lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Oct 06 '24 07:10 k8s-ci-robot

Nice fix, @HanNguyen-dev ! Do you know why it is not going through? Does it maybe need the review from @maciaszczykm or @shu-mutou ?

vittoriocanilli avatar Dec 17 '24 14:12 vittoriocanilli

Hi @vittoriocanilli, I forgot that this PR is still here. I am not familiar with PR process to be honest, but I'll go through their documentation to see what is missing.

I'll pull the latest from master as well, and add some steps to reproduce this bug locally.

HanNguyen-dev avatar Dec 19 '24 23:12 HanNguyen-dev

/assign @maciaszczykm /assign @shu-mutou

Can you review this PR? Thanks

HanNguyen-dev avatar Dec 20 '24 03:12 HanNguyen-dev

/lgtm

floreks avatar Jan 17 '25 07:01 floreks

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: floreks, gdelvallez1, HanNguyen-dev

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jan 17 '25 07:01 k8s-ci-robot

Thanks @floreks.

I was suppose to close this PR a few weeks ago since there were some auto-generated translation files that I wasn't sure to include in this PR or not.

But thank you.

HanNguyen-dev avatar Jan 17 '25 13:01 HanNguyen-dev