Page MenuHomePhabricator

Rebrand the "main" Codex docs as "beta"
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
CCiufo-WMF
Jun 20 2023, 6:55 PM
Referenced Files
F37473149: Captura de pantalla 2023-08-14 a las 11.49.37.png
Aug 14 2023, 9:51 AM
F37391203: Captura de pantalla 2023-08-10 a las 15.53.55.png
Aug 10 2023, 1:54 PM
F37391179: Captura de pantalla 2023-08-10 a las 15.51.36.png
Aug 10 2023, 1:52 PM
F37345550: image.png
Aug 8 2023, 11:19 PM
F37337888: image.png
Aug 8 2023, 5:53 PM
F37337867: image.png
Aug 8 2023, 5:53 PM
F37335506: Captura de pantalla 2023-08-08 a las 16.36.34.png
Aug 8 2023, 2:38 PM
F37333586: Screenshot 2023-08-08 at 9.02.04 AM.png
Aug 8 2023, 1:05 PM

Description

Background

The current doc site has a "main" branch where the latest but yet-to-be-released version of Codex is. This includes things like WIP components. To differentiate between the "latest" and "main" version of the docs, we'd like to label the "main" version as "beta". This will make it clearer that some changes and additions are experimental, where as the "latest" docs are what should be used as a reference for what's in production.

Proposal

op.2.png (1×1 px, 374 KB)
Use a warning yellow tag next to the logo and a warning message explaining that this is the beta version of the Codex site.

New warning message proposal: "You're viewing the docs for the beta version of Codex, which may contain features that have not been released yet. Codex users should visit the official docs."

Acceptance criteria (or done)

  • Add tag next to the Codex logo on the "main" branch to indicate that this is the beta version
  • Update the warning message say: "You're viewing the docs for the beta version of Codex, which may contain features that have not been released yet. Codex users should visit the official docs."

Event Timeline

CCiufo-WMF set the point value for this task to 2.
CCiufo-WMF moved this task from Needs Refinement to Up Next on the Design-System-Team board.
CCiufo-WMF triaged this task as Medium priority.Jun 26 2023, 2:30 PM

Change 946620 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Brand the main site as "beta"

https://gerrit.wikimedia.org/r/946620

AnneT changed the task status from Open to In Progress.Aug 7 2023, 8:28 PM
AnneT claimed this task.

Change 946620 merged by jenkins-bot:

[design/codex@main] docs: Brand the main site as "beta"

https://gerrit.wikimedia.org/r/946620

@AnneT adding some corrections related with the design sign-off:

  1. "Beta" tag next to the logo should use the same background-color-warning-subtle as in the warning message.
    Captura de pantalla 2023-08-08 a las 10.17.49.png (568×2 px, 140 KB)
  1. Apart from the tag color, its text is slightly misaligned with the Codex logo.
    Captura de pantalla 2023-08-08 a las 10.25.49.png (492×1 px, 107 KB)
  1. One of the proposals was to rename the url from doc.wikimedia.org/codex/main/ to doc.wikimedia.org/codex/beta/. Is this going to be done?
    Captura de pantalla 2023-08-08 a las 10.20.14.png (742×1 px, 251 KB)

Change 946944 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Change background color of beta tag

https://gerrit.wikimedia.org/r/946944

Thanks @bmartinezcalvo!

  1. I've pushed a new patch to change the background color of the tag
  2. I think the text has to be slightly misaligned in order for the border of the tag to be aligned with the icon and logo, and the tag text to be centered within the tag border

Screenshot 2023-08-08 at 9.02.04 AM.png (418×2 px, 96 KB)

Since the text of the beta tag is smaller than that of the logo, if I lower if to be more in line with the logo text, the entire tag will move down and appear out of alignment with the icon. What do you think is the best path forward here?

  1. We decided at the June 22 task refinement meeting not to do the URL change at this time, since it will take a lot more time than just making these design changes

Thanks @bmartinezcalvo!

  1. I've pushed a new patch to change the background color of the tag

@AnneT great, thank you!

  1. I think the text has to be slightly misaligned in order for the border of the tag to be aligned with the icon and logo, and the tag text to be centered within the tag border

Screenshot 2023-08-08 at 9.02.04 AM.png (418×2 px, 96 KB)

Since the text of the beta tag is smaller than that of the logo, if I lower if to be more in line with the logo text, the entire tag will move down and appear out of alignment with the icon. What do you think is the best path forward here?

@AnneT I designed the Beta tag to be a bit bigger than the logo (32px height). These are the specs:

Captura de pantalla 2023-08-08 a las 16.36.34.png (918×1 px, 103 KB)

  1. We decided at the June 22 task refinement meeting not to do the URL change at this time, since it will take a lot more time than just making these design changes

Ok, removing it from the acceptance criteria then. Thank you!

Change 946944 merged by jenkins-bot:

[design/codex@main] docs: Change background color of beta tag

https://gerrit.wikimedia.org/r/946944

@bmartinezcalvo ahh, thanks for the design spec details here! I can make the beta tag 32px tall and increase the left and right padding from 8px to 12px. This is what it looks like on a page that has a sidebar menu:

image.png (424×548 px, 33 KB)

As you can see, the increased width of the tag makes it bump up against the scrollbar in the sidebar. Increasing the width of the sidebar is possible, but will be tricky because of the way VitePress has set it up, so I think it will increase the estimate of this task.

One potential solution would be to reduce the width of the beta tag a bit by making the left and right padding 8px instead of 12, which gets you this:

image.png (406×558 px, 33 KB)

What do you think looks best?

On point 2.
I think it would be best to have the baseline of Codex and Beta version equal. Right now it's different by several pixels:

image.png (102×456 px, 13 KB)

As you can see, the increased width of the tag makes it bump up against the scrollbar in the sidebar. Increasing the width of the sidebar is possible, but will be tricky because of the way VitePress has set it up, so I think it will increase the estimate of this task.

One potential solution would be to reduce the width of the beta tag a bit by making the left and right padding 8px instead of 12, which gets you this:

image.png (406×558 px, 33 KB)

What do you think looks best?

@AnneT 8px works well, let's go with it. Thank you!

One last thing I commented with Volker in a chat with him, could we make this tag visually lighter by using the Regular text instead Bold to match with the message and menu items text? Apart from this, the rest looks great.

Captura de pantalla 2023-08-10 a las 15.53.55.png (816×2 px, 790 KB)

Throwing in one last idea: do we really need to say "Beta version" in the tag? Why not just "Beta"? Saves space and we don't need to worry about the padding as much.

👍 (and add “version” as visually hidden span for assistive technology users)

Throwing in one last idea: do we really need to say "Beta version" in the tag? Why not just "Beta"? Saves space and we don't need to worry about the padding as much.

If you all think that just "Beta" will be enough for users to understand that this is a different version from the latest one, I'm ok with this change.

Change 947893 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[design/codex@main] docs: Increase the height of the beta tag

https://gerrit.wikimedia.org/r/947893

Thanks all - I have done the following in the latest patch:

  • Increased the height of the beta tag to 32px
  • Increased the horizontal padding to 12px.
  • Set the font weight to regular
  • Made "version" visually hidden for screen readers only

Demo will be up soon; see the patch number above!

Change 947893 merged by jenkins-bot:

[design/codex@main] docs: Improve beta tag design

https://gerrit.wikimedia.org/r/947893

Latest patch looks great to me.

Thanks all - I have done the following in the latest patch:

  • Increased the height of the beta tag to 32px
  • Increased the horizontal padding to 12px.
  • Set the font weight to regular
  • Made "version" visually hidden for screen readers only

Demo will be up soon; see the patch number above!

@AnneT I've checked the latest patch and it looks great. The Beta text is Semibold instead of Regular, but anyway it looks good so it's not a problem for me since it's similar to the menu items on the right.

Captura de pantalla 2023-08-14 a las 11.49.37.png (402×1 px, 66 KB)

Change 949555 had a related patch set uploaded (by Anne Tomasevich; author: Anne Tomasevich):

[mediawiki/core@master] Update Codex from v0.16.1 to v0.17.0

https://gerrit.wikimedia.org/r/949555

Test wiki created on Patch demo by ATomasevich (WMF) using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/6188b4e5fe/w

Change 949555 merged by jenkins-bot:

[mediawiki/core@master] Update Codex from v0.16.1 to v0.17.0

https://gerrit.wikimedia.org/r/949555

Test wiki on Patch demo by ATomasevich (WMF) using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/6188b4e5fe/w/