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

Suggestion for improving JS/API sidebars — add labels to indicate page types. #6968

Closed
1 of 3 tasks
chrisdavidmills opened this issue Sep 28, 2020 · 3 comments
Closed
1 of 3 tasks
Labels
enhancement Improves an existing feature. p4 Not urgent, only if time allows sidebar/toc Sidebar and table of contents ux make the user experience awesome

Comments

@chrisdavidmills
Copy link
Contributor

@valango commented on Fri Sep 25 2020

Request type

  • Please close this issue, I accidentally submitted it without adding any details
  • New documentation
  • Correction or update

Details

The left-side navigation column at (https://wiki.developer.mozilla.org/en-US/docs/Web/JavaScript)
is somewhat confusing for people not experienced in Javascript - labels for constuctors, interfaces and global object instances/namespaces all look the same.

Perhaps it would be helpful to have a "type tag" next to object name, like below (do not mind the bullets in the left):

Almost everything is an object in Javascript, so the current presentation is correct, of course.
Adding some specifics would just make it a little more helpful for newbies.

Sorry, I am newbie myself to the Wiki editor, so could not find the right place to make those changes. ;)


@chrisdavidmills commented on Mon Sep 28 2020

I like this idea, but we don't have the capacity to look into it now. I'm going to transfer this to the Kuma (MDN platform) repo, and we can hopefully put it the backlog to consider as we redesign sidebars in the next iteration of MDN.

@chrisdavidmills chrisdavidmills changed the title https://wiki.developer.mozilla.org/en-US/docs/MDN/Community Suggestion for improving JS/API sidebars Sep 28, 2020
@chrisdavidmills chrisdavidmills changed the title Suggestion for improving JS/API sidebars Suggestion for improving JS/API sidebars — add labels to indicate page types. Sep 28, 2020
@caugner caugner transferred this issue from mdn/kuma Aug 26, 2022
@github-actions github-actions bot added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Aug 26, 2022
@caugner caugner added ux make the user experience awesome sidebar/toc Sidebar and table of contents and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Sep 7, 2022
@github-actions github-actions bot added the 🐌 idle Issues and PRs without recent activity. Flagged for maintainer follow-up. label Oct 14, 2022
@caugner caugner added enhancement Improves an existing feature. p4 Not urgent, only if time allows accepting UX Design Before we implement this, we invite you to suggest a UX Design that resolves this issue. labels Nov 30, 2022
@caugner
Copy link
Contributor

caugner commented Nov 30, 2022

@wbamberg What are your opinions on this?

@caugner caugner removed the accepting UX Design Before we implement this, we invite you to suggest a UX Design that resolves this issue. label Nov 30, 2022
@github-actions github-actions bot removed the 🐌 idle Issues and PRs without recent activity. Flagged for maintainer follow-up. label Nov 30, 2022
@wbamberg
Copy link
Collaborator

wbamberg commented Dec 1, 2022

AFAICT this is talking about the "Global Objects" section of the sidebar, which does include things that don't look like objects, such as NaN and parseInt() (and of course namespaces have come up in #3826).

But I don't think the solution would be to label every entry. That would make the sidebar very noisy. It would be better to reorganize the sidebar so that section does only contain objects, and if necessary have other sections for things like global functions and maybe namespaces, and label each section properly. This is also tied to mdn/content#16156 .

So maybe we should close this one and track that work in #3826?

@caugner
Copy link
Contributor

caugner commented Dec 1, 2022

So maybe we should close this one and track that work in #3826?

Sounds good to me! Closing in favor of #3826.

I guess the problem also is that NaN is a child of Global_Objects, so the hierarchy itself is misleading and the JS sidebar is merely building on top of that.

@caugner caugner closed this as not planned Won't fix, can't repro, duplicate, stale Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improves an existing feature. p4 Not urgent, only if time allows sidebar/toc Sidebar and table of contents ux make the user experience awesome
Projects
None yet
Development

No branches or pull requests

3 participants