Skip to content

Make the text for the Microsoft Store disclaimer yellow. #1682

Closed

Description

Description of the new feature / enhancement

There's been a little confusion (microsoft/winget-pkgs#34313, but I've seen it other places too) about the difference between the msstore source and the winget source from a user perspective.

I think part of this is because the msstore source spews 30 lines to stdout which nobody slows down to read. However, the second line, This package is provided through Microsoft Store. winget may need to acquire the package from Microsoft Store on behalf of the current user. is really important for users when they want to know where to ask questions.

I think this text should be made yellow so that it pops out to the user. (If we have agreement about this, I can make the PR. Literally a one line, five second change.)

Proposed technical implementation details

Change context.Reporter.Info() to context.Reporter.Warn() here.

Activity

  1. added
    Issue-Feature
    on Nov 7, 2021
  2. ghost added
    Needs-Triage
    on Nov 7, 2021
  3. denelon commented on Nov 8, 2021

    @denelon
    Collaborator

    I've been looking at accessibility. I'm not sure if we're using colors as well as we could. Does bold standout well enough? I think contrasts well enough with black or blue backgrounds, but other terminal background color schemes might not work so well. I also think we need to change the string from "winget..." to "The Windows Package Manager..."

  4. removed
    Needs-Triage
    on Nov 8, 2021
  5. jedieaston commented on Nov 8, 2021

    @jedieaston
    ContributorAuthor

    Bold would also work. The thing about colors is that you can override them (or disable them) in most terminals, for example in Windows Terminal my yellow is changed to red (as an example):
    image

    I don't know if there's any good documentation about a11y in command line apps, as the assumption is "it's just text", and the colors are not essential to functionality.

  6. denelon commented on Nov 8, 2021

    @denelon
    Collaborator

    Yes, we're working though several a11y issues. There are also differences between the Windows Terminal palette and the PowerShell palette. We have some internal guidance with respect to contrast. Rather than selecting colors, the guidance seems to be heading towards either using text formatting, or a combination of text and color (I'm not a fan of this one as we would need some kind of library to make sure sufficient contrast exists between colors). Something like a "WARNING" or "ERROR" prefix in front of the text. If you don't mind, let's give bold a try and see if that helps. Otherwise we might need to try something else if we get any other feedback.

  7. ghost added
    In-PR
    on Nov 8, 2021
  8. denelon commented on Nov 8, 2021

    @denelon
    Collaborator

    I've also seen some examples where all warnings are prepended with "WARNING:" and all errors are prepended with "ERROR:". I'm looping back to see if that is a best practice or not. As we move to more behavior around the complexities with upgrading or importing packages (especially when dependencies are involved), I believe this will become more important to get right.

  9. ghost removed
    In-PR
    on Nov 9, 2021
  10. ghost added
    In-PR
    on Nov 12, 2021
  11. ghost removed
    In-PR
    on Nov 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions