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

Rework listing of discovered ports #614

Merged
merged 12 commits into from
Nov 24, 2021
Merged

Conversation

silvanocerza
Copy link
Contributor

@silvanocerza silvanocerza commented Nov 17, 2021

This PR does several things:

  • Minimal refactoring and removal of old code
  • Change ports ordering in Tools > Ports menu
  • Change ordering of board and port combination in Board Selector dropdown list
  • Change ordering of ports in Select Board dialog
  • Change style of Board Selector dropdown list

Ports in Tools > Ports menu are now sorted like this:

  1. Serial with recognized boards
  2. Serial with unrecognized boards
  3. Network with recognized boards
  4. Network with unrecognized boards
  5. Other protocols with recognized boards
  6. Other protocols with unrecognized boards

All recognized boards name are shown in parentheses after the port name.
In the screenshot below you see two boards for each port because I have development cores in my Sketchbook folder so two boards with different FQBN but identical name are found.

image


Board and ports combination in Board Selector dropdown are now sorted like this:

  1. Serial with recognized boards
  2. Serial with guessed boards
  3. Serial with incomplete boards
  4. Network with recognized boards
  5. Other protocols with recognized boards

Previously selecting an item would change the ordering by putting it on top, now it doesn't anymore.
Network ports were never shown previously, only serial ports where.

image image


Ports in Select Board dialog are now sorted like this:

  1. Serial with recognized boards
  2. Serial with unrecognized boards
  3. Network with recognized boards
  4. Other protocols with recognized boards

If the Show all ports box is checked they're sorted like this:

  1. Serial with recognized boards
  2. Serial with unrecognized boards
  3. Network with recognized boards
  4. Network with unrecognized boards
  5. Other protocols with recognized boards
  6. Other protocols with unrecognized boards

image
image


Note: For testing I've used the refactored version of the mdns-discovery that is still not released. So you'll have a different experience than me with network ports, you'll see fewer, they'll never disappear after being discovered and similar issues.

@per1234 per1234 added the topic: code Related to content of the project itself label Nov 19, 2021
@silvanocerza silvanocerza added the type: enhancement Proposed improvement label Nov 22, 2021
@silvanocerza silvanocerza force-pushed the scerza/board-discovery-refactor branch 2 times, most recently from c0bf995 to e2bbcb1 Compare November 22, 2021 11:01
@silvanocerza silvanocerza marked this pull request as ready for review November 22, 2021 11:26
Copy link
Contributor

@fstasi fstasi left a comment

Choose a reason for hiding this comment

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

Code is good (nice job!) but I need the updated index to properly test

@fstasi fstasi force-pushed the scerza/board-discovery-refactor branch from fad5e5e to a846184 Compare November 23, 2021 16:36
Now ports are shown in this order:
1. Serial with recognized boards
2. Serial with unrecognized boards
3. Network with recognized boards
4. Network with unrecognized boards
5. Other protocols with recognized boards
6. Other protocols with unrecognized boards
Ordering is now:
1. Serial with recognized boards
2. Serial with guessed boards
3. Serial with incomplete boards
4. Network with recognized boards
5. Other protocols with recognized boards
@AlbyIanna AlbyIanna force-pushed the scerza/board-discovery-refactor branch from 5ff1e33 to 4042f7d Compare November 24, 2021 11:35
@fstasi fstasi merged commit 74bfdc4 into main Nov 24, 2021
@fstasi fstasi deleted the scerza/board-discovery-refactor branch November 24, 2021 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants