Skip to content

Better surface which ports are currently active #248

@jankeromnes

Description

@jankeromnes

When you start a web server on a given port, you'll see a notification appear that either offers to Expose the port, or to open it in a Preview pane or Browser tab.

However, sometimes the notification gets dismissed too early (for example, if you reload the page, or sometimes when another port is also opened around the same time). And if you "lose" such a notification, it's not obvious how to find your running apps again.

Here are a few ideas (most of them are from @paulmelnikow -- many thanks!):

  • We could re-surface the open port notifications when the window is reopened (except when the Preview is already open)
  • Also, we probably shouldn't dismiss a port notification just because another port was opened (I think that's a bug)
  • We could show which ports are active somewhere in the menus, providing another way to open previews (EDIT: it's in the bottom status bar, although not very obvious)
  • We could implement a --all option for gp url (see [cli] Implement a gp command to get preview URLs #246 (comment))

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions