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

Hera/add main layout #1318

Open
wants to merge 323 commits into
base: develop
Choose a base branch
from
Open

Hera/add main layout #1318

wants to merge 323 commits into from

Conversation

MattBudz
Copy link
Contributor

@MattBudz MattBudz commented Nov 21, 2024

Summary

Replacing the Tylium layout with the initial implementation of the Hera layout. This brings many new improvements such as the navigation and sidebar redesigns. The layout is structured in a more modern way under the hood, preventing us from having to use workarounds or patches for certain functionality/interactions as we had to with Tylium.

This will serve as the foundation for further layout improvements that will be implemented incrementally.

Check List

  • Added a CHANGELOG entry

@nicolachr nicolachr force-pushed the hera/add-main-layout branch from e0f4567 to ce25368 Compare November 25, 2024 09:56
@MattBudz MattBudz marked this pull request as ready for review December 11, 2024 16:43
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="configurationDropdown">
<li><%= link_to 'Configure Integrations', main_app.project_configurations_path(current_project), class: 'dropdown-item' %></li>
<li><%= link_to "Manage Tags", project_tags_path(current_project), class: 'dropdown-item' %></li>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<li><%= link_to "Manage Tags", project_tags_path(current_project), class: 'dropdown-item' %></li>
<li><%= link_to "Manage Tags", main_app.project_tags_path(current_project), class: 'dropdown-item' %></li>

Copy link
Contributor

Choose a reason for hiding this comment

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

We need this for when we access /validations or /export

CHANGELOG Outdated Show resolved Hide resolved
function submitSearch($form) {
if ($form.find('[data-behavior~=search-query]').val() !== '') {
$form.submit();
$form.find('[data-behavior~=search-query]').val('Searching...');
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is breaking the search functionality

});

$('[data-behavior~=search-query]').on('keypress', function (e) {
if (e.which === 13) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we make the magic number a variable like we did with mobileBreakpoint in sidebar.js

Comment on lines +6 to +8
<%= require_asset "#{plugin_path}/manifests/tylium" %>
<%= require_asset "#{plugin_path}/manifests/hera" %>
<%
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<%= require_asset "#{plugin_path}/manifests/tylium" %>
<%= require_asset "#{plugin_path}/manifests/hera" %>
<%
<%= require_asset "#{plugin_path}/manifests/tylium" %>
<%= require_asset "#{plugin_path}/manifests/hera" %>
<%

@@ -0,0 +1,7 @@
class StylesHeraController < AuthenticatedController
Copy link
Contributor

@caitmich caitmich Dec 11, 2024

Choose a reason for hiding this comment

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

Does this need to be called StylesHereController?
Can we rename it to HeraController instead and have hera/index? or styles/hera/index

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is carried over from StylesTyliumController. Happy to change this but it's out of scope here.

@@ -0,0 +1,71 @@
<nav class="navbar navbar-expand-lg project-nav">
<div class="container-fluid justify-content-end p-lg-0">
<div class="collapse navbar-collapse dual-nav" id="project_navbar" data-behavior="navbar-collapse">
Copy link
Contributor

Choose a reason for hiding this comment

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

Ditto with the id. it's in a different format than the one above, if we need them let's make the case consistent

<% end %>
</li>
<li class="nav-item dropdown ms-0">
<a href="javascript:void(0)" class="nav-link dropdown-toggle no-caret-xl" id="configurationDropdown" title="Configuration" role="button" data-bs-toggle="dropdown" aria-expanded="false">
Copy link
Contributor

Choose a reason for hiding this comment

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

id needed?

@@ -0,0 +1,19 @@
<li class="nav-item dropdown">
<a href="javascript:void(0)" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" id="toolsDropdown">
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
<a href="javascript:void(0)" class="nav-link dropdown-toggle" data-bs-toggle="dropdown" id="toolsDropdown">
<a href="javascript:void(0)" class="nav-link dropdown-toggle" data-bs-toggle="dropdown">

Copy link
Contributor

Choose a reason for hiding this comment

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

needed?

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.

3 participants