Skip to content

Link from mission control back to the main rails application #155

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

Open
volodymyr-mykhailyk opened this issue Aug 28, 2024 · 7 comments · May be fixed by #257
Open

Link from mission control back to the main rails application #155

volodymyr-mykhailyk opened this issue Aug 28, 2024 · 7 comments · May be fixed by #257

Comments

@volodymyr-mykhailyk
Copy link

Currently, when opening mission control - there is no easy way to return to your app.

While it is possible to override one of the templates and implement this in your app:

Create File app/views/layouts/mission_control/jobs/_application_selection.html.erb

<nav class="navbar" role="navigation" aria-label="main navigation">
  <div class="navbar-menu is-active mb-4">
    <div class="navbar-start">
      <!-- This is main application link-->
      <h4 class="title is-4">
        <%= link_to 'My Cool App', '/' %>
      </h4>
    </div>

    <div class="navbar-end">
      <%= render "layouts/mission_control/jobs/application_selection/servers", application: @application %>
      <%= render "layouts/mission_control/jobs/application_selection/applications" if selectable_applications.any? %>
    </div>
  </div>
</nav>

Would it be better to support it as part of a configuration? I am happy to submit a pull request if you think it is a needed functionality.

@virolea
Copy link

virolea commented Oct 24, 2024

I came here to suggest it as well, that'd be swell.

I could see this using main_app.root_path as a default and allowing a configuration override.

@rosa
Copy link
Member

rosa commented Nov 8, 2024

Sorry for the delay!

I am happy to submit a pull request if you think it is a needed functionality.

Yes, I think it'd be useful! Maybe not even allowing a configuration override by default, just using main_app.root_path to start with would be enough.

@jrodden1
Copy link

@volodymyr-mykhailyk Were you able to make up a PR for this as I noticed the same issue and would be thrilled to have that link. 🤔 😊

@volodymyr-mykhailyk
Copy link
Author

@volodymyr-mykhailyk Were you able to make up a PR for this as I noticed the same issue and would be thrilled to have that link. 🤔 😊

Sorry, hasn't made anything as ended up switching to another gem

@virolea
Copy link

virolea commented May 5, 2025

@volodymyr-mykhailyk would you mind if I take it from here?

@volodymyr-mykhailyk
Copy link
Author

@volodymyr-mykhailyk would you mind if I take it from here?

Sure

@virolea virolea linked a pull request May 7, 2025 that will close this issue
@virolea
Copy link

virolea commented May 14, 2025

Here's the PR #257

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 a pull request may close this issue.

4 participants