Skip to content

Conversation

mk-fan
Copy link
Contributor

@mk-fan mk-fan commented Feb 21, 2024

Problem

  • Need a way to change the currently selected tab via an API

Solution

  • Add changeSelectedTab

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mk-fan mk-fan requested a review from dogusata February 21, 2024 19:28
@mk-fan mk-fan self-assigned this Feb 21, 2024
Copy link
Contributor

@dogusata dogusata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change should not be implemented right away. This was a UX decision we did to avoid multiple platform use multiple tabs and tries to get focus several times can cause misbehaving. You should not change tabs on behalf of user.
As VSCode and also IntelliJ blocks target focusing to extensions and mynah-ui can be used from multiple data providers at the same time it is unsafe to give the ability to change the tab.

Please describe the reason why it is necessary, UX flow decisions and the use case please.

Expected steps are:

  • Create a feature request, describe the reason
  • Wait till the final decision happen on the discussion
  • Depending on the decision, you can contribute or wait for the implementation.

@dogusata
Copy link
Contributor

And please do not forget adding a detailed description to the PR which tells:

  • UX requirement(s)
  • Functional requirement(s)
  • Use case

@mk-fan
Copy link
Contributor Author

mk-fan commented Feb 27, 2024

After discussing it, the feature was included in 0844cc1.

@mk-fan mk-fan closed this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants