website icon indicating copy to clipboard operation
website copied to clipboard

🐛 Bug: Two JavaScript labels for filter on Tools page

Open Vishv04 opened this issue 9 months ago • 15 comments

Describe the bug

On the tools page, on the left side, there is a dropdown for 'Language.' In that dropdown, there are two labels pointing to the same thing: 'JavaScript' and 'Javascript.' The only difference is the capitalization of 's' and 'S.

Steps To Reproduce

  1. Go to tools page(https://json-schema.org/tools).
  2. Click on 'Language' dropdown.
  3. Scroll down to the names starting from letter 'J'.
  4. There you can see 'Javascript' and 'Javascript'.

Expected Behavior

There should be only one label 'JavaScript'.

Screenshots

Image

Device Information [optional]

- OS: Ubantu 24.04
- Browser: Firefox
- version: 135.0.1 (64-bit)

Are you working on this issue?

Yes

Do you think this work might require an [Architectural Decision Record (ADR)]? (significant or noteworthy)

Yes

Vishv04 avatar Mar 02 '25 13:03 Vishv04

@benjagm @DhairyaMajmudar, can you please assign this issue to me, so I can make a PR?.

Vishv04 avatar Mar 02 '25 13:03 Vishv04

Furthermore, I see another similar issue with 'macOS' and 'MacOS'.

here is the screenshot: Image

Vishv04 avatar Mar 02 '25 13:03 Vishv04

This issue occurs with TypeScript as well.

Image

idanidan29 avatar Mar 02 '25 17:03 idanidan29

To Fix this we need:

  • Correct the data in https://github.com/json-schema-org/website/blob/main/data/tooling-data.yaml and leave just valid values as per the schema.
  • Make sure that this github action forces the case sensitive matching when evaluating the json instance against the schema. I am not sure how those occurrences ended up merged. It would be great to find what was the PR merging this and why the github action didn't avoid it.

benjagm avatar Mar 02 '25 18:03 benjagm

okay @benjagm, I will make these changes and make a PR soon. Can you please assign this to me?

Vishv04 avatar Mar 04 '25 08:03 Vishv04

go ahead @Vishv0407

benjagm avatar Mar 04 '25 09:03 benjagm

Hello @benjagm,

Could you please confirm if I have the correct understanding of the process for adding a tool to the Tools page?

  1. Go to the Tools page.
  2. Click on "Adding your tool".
  3. This opens a new issue using a predefined template, where I need to provide all the necessary details. Once the issue is created, what happens next?

From what I observe, the assignee of the issue manually adds the provided details to the tooling-data.yaml file.

Am I correct in understanding this process?

Thanks!

Vishv04 avatar Mar 04 '25 15:03 Vishv04

Issue will be resolved in PR: https://github.com/json-schema-org/website/pull/1513/

DhairyaMajmudar avatar Mar 13 '25 12:03 DhairyaMajmudar

However their's still left the part suggested in https://github.com/json-schema-org/website/issues/1443#issuecomment-2692838326

  • Make sure that this github action forces the case sensitive matching when evaluating the json instance against the schema. I am not sure how those occurrences ended up merged. It would be great to find what was the PR merging this and why the github action didn't avoid it.

@Vishv0407 pls. have a look into that point.

DhairyaMajmudar avatar Mar 13 '25 12:03 DhairyaMajmudar

@DhairyaMajmudar I have proposed my solution idea in #1512(PR). Please review that PR and provide your feedback.

Just to clarify #1513 is only for changing words in tooling-data.yaml which solves this issue #1443.

Vishv04 avatar Mar 13 '25 12:03 Vishv04

Your PR #1513 consists of the same changes that were done in PR #1512, that's why it's no meaning reviewing it again

FYI: https://github.com/json-schema-org/website/pull/1513/files

DhairyaMajmudar avatar Mar 13 '25 12:03 DhairyaMajmudar

@DhairyaMajmudar my apologies for confusion. I have added a comment in #1513 for a solution and not changed files as per that, I will wait for your confirmation to add that code in the GitHub workflow.

Vishv04 avatar Mar 13 '25 12:03 Vishv04

No worries @Vishv0407 , it seems like by mistake you committed the code changes to the same PR, it's fine as the PR size is small but take in the future while working with large PR sizes.

What can you do now?

The PR #1513 just requires a minor code change, rest its all done. As I mentioned here there's still left some work to be done for this issue #1443, for that you can open a separate PR.

DhairyaMajmudar avatar Mar 13 '25 12:03 DhairyaMajmudar

@DhairyaMajmudar I have updated the PR #1512 and created a new separate PR #1516 which solving below mentioned point.

  • Make sure that this github action forces the case sensitive matching when evaluating the json instance against the schema. I am not sure how those occurrences ended up merged. It would be great to find what was the PR merging this and why the github action didn't avoid it.

Vishv04 avatar Mar 14 '25 11:03 Vishv04

Hello! :wave:

This issue has been automatically marked as stale due to inactivity :sleeping:

It will be closed in 180 days if no further activity occurs. To keep it active, please add a comment with more details.

There can be many reasons why a specific issue has no activity. The most probable cause is a lack of time, not a lack of interest.

Let us figure out together how to push this issue forward. Connect with us through our slack channel : https://json-schema.org/slack

Thank you for your patience :heart:

github-actions[bot] avatar Sep 21 '25 02:09 github-actions[bot]

@benjagm @DhairyaMajmudar If the case-sensitive CI part is still outstanding, could you assign #1443 to me? I’ll finish the GitHub-action check so duplicates like “JavaScript / Javascript” can’t slip in again.

singhaditya73 avatar Dec 12 '25 19:12 singhaditya73