Coder Social home page Coder Social logo

Comments (2)

shana avatar shana commented on May 27, 2024

Nice catch! Just fyi, the commit area is a part of Team Explorer and not handled by us. The only part in these screenshots that is ours is the Publish to GitHub area. But it's still important to look at the overall behavior of Team Explorer, since our bits live in it.

Now in the case of the commit area clearing the fields when you hit refresh, it depends on whether the refresh button is intended to bring out new information that VS isn't aware of (say, a new file that's been added to the repository outside of VS), or whether the refresh button is intended to reset the state. In the first case, I wouldn't want it clearing the fields, because it's just refreshing the screen with new information that the user can't fill in (so not touching the user input fields makes sense). In the second case, if it's job is resetting the screen, then yes, makes sense to clear the fields. I can see a good reasoning for both, and I'm inclined to think that the refresh button is intended to update the information on screen without touching user input fields.

In the case of the Publish to GitHub form, the question is then: do we treat the refresh button as a reset button, or not? Also keeping in mind that the other user input fields on that page are not controlled by us (the Publish to Remote Repository and other Publish sections that might live there) and we can't make them follow our behavior.

I'm inclined to never touch user input fields unless it's very clear what a button does. If we reset the description field when the user clicks refresh, is that something that the user is expecting?

from visualstudio.

shana avatar shana commented on May 27, 2024

I'm going with treating the button as a refresh button, not a reset button, so we won't clear the fields.

from visualstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.