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

Use a user-friendly name for the shared services to show it in the tray menu #5686

Closed
Tracked by #5683
adrianbenavides opened this issue Aug 21, 2023 · 1 comment
Closed
Tracked by #5683

Comments

@adrianbenavides
Copy link
Member

adrianbenavides commented Aug 21, 2023

Current

In the tray menu, we show the TCP Outlet's worker address and socket address for each shared service.

image

Desired

Replace the current {worker_address} to {socket_address} identifier, which is built here, to a more user-friendly one:

  • If the user has one space and one project: /{email}/{service_name}
  • If the user has one space and multiple projects: /{email}/{project_name}/{service_name}
  • If the user has multiple spaces and projects: /{email}/{space}/{project_name}/{service_name}

The email, spaces, and projects can be obtained from the AppState:

let user_info = app_state.model(|m| m.get_user_info()).await?;
let spaces = app_state.state().await.spaces.list()?;
let projects = app_state.state().await.projects.list()?;

We love helping new contributors!
If you have questions or need help as you work on your first Ockam contribution, please leave a comment on this discussion.
If you're looking for other issues to contribute to, checkout this discussion and labels - good first issue or help wanted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants