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

[#25,#5, #27] Header / Nav / Banner / Utility Menu #124

Merged
merged 38 commits into from
Sep 3, 2024
Merged

Conversation

stonefilipczak
Copy link
Contributor

@stonefilipczak stonefilipczak commented Aug 19, 2024

PR for header / nav / banner / utility menu
GH issues #25,#5, #27

Logged in:

Screen Shot 2024-08-22 at 12 59 01 PM Screen Shot 2024-08-22 at 12 59 16 PM Screen Shot 2024-08-22 at 12 59 28 PM

Logged out:

Screen Shot 2024-08-22 at 12 57 39 PM Screen Shot 2024-08-22 at 12 57 58 PM Screen Shot 2024-08-22 at 12 58 10 PM

@stonefilipczak stonefilipczak changed the title [#25,#5] Header / Nav / Banner [#25,#5, #27] Header / Nav / Banner / Utility Menu Aug 19, 2024
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

We added placeholder links to the footer, not all of these pages exist yet, but some do in the production system

app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

overall looking pretty good, suggested a few improvements

app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_header.html.erb Outdated Show resolved Hide resolved
app/views/layouts/_utility_menu.erb Outdated Show resolved Hide resolved
app/views/layouts/_utility_menu.erb Outdated Show resolved Hide resolved
app/views/layouts/_utility_menu.erb Outdated Show resolved Hide resolved
app/views/layouts/_utility_menu.erb Outdated Show resolved Hide resolved
app/views/layouts/_utility_menu.erb Outdated Show resolved Hide resolved
spec/support/shared_examples/header.rb Show resolved Hide resolved
Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

😭 oh no, I never submitted these comment on the PR last night! no wonder you were confused about the changes. 😖 sorry again!

spec/support/shared_examples/utility_menu.rb Outdated Show resolved Hide resolved
app/assets/uswds/_uswds-theme.scss Show resolved Hide resolved
# frozen_string_literal: true

module NavigationHelper
def utility_menu_link(image_path, href, alt, button_label)
Copy link
Contributor

Choose a reason for hiding this comment

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

I added some more responsive styles (1bcf5d9) to this helper function and removed the extra partial template. IMO it's okay to embed smaller html tags directly in the helper.

@@ -0,0 +1,22 @@
<!-- Utility Menu -->
Copy link
Contributor

Choose a reason for hiding this comment

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

I was able to refactor this so it didn't need separate sections for mobile and desktop, using the 'mobile-first' philosophy and altering the sizes for desktop:. You can see what I changed here - (1bcf5d9).

Copy link
Contributor

Choose a reason for hiding this comment

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

these partials aren't needed anymore

Copy link
Contributor

@stepchud stepchud left a comment

Choose a reason for hiding this comment

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

a few more specs to add

spec/requests/dashboard_request_spec.rb Outdated Show resolved Hide resolved
@r-bartlett-gsa r-bartlett-gsa added this to the Sprint 09/10/24 milestone Aug 29, 2024
Comment on lines +99 to +100
<em class="usa-logo__text"
><a href="/" title="challenge.gov">
Copy link
Contributor

Choose a reason for hiding this comment

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

is the broken tag newline intentional? I see it in a few places and it looks odd to me

Suggested change
<em class="usa-logo__text"
><a href="/" title="challenge.gov">
<em class="usa-logo__text">
<a href="/" title="challenge.gov">

@stepchud stepchud merged commit 39dee1e into dev Sep 3, 2024
11 checks passed
@stepchud stepchud deleted the 25_eval_header branch September 3, 2024 15:36
cpreisinger added a commit that referenced this pull request Sep 4, 2024
…d-rails-phoenix-session

* 'dev' of github.com:GSA/Challenge_platform: (21 commits)
  [#25,#5, #27] Header / Nav / Banner / Utility Menu (#124)
  Adjust puma config
  Manifest and config tweak
  Config tweaks
  adjust asset precompile
  Configure default proxy if env set
  Adjust ports
  Memory tweaks
  env tweaks
  Memory tweak
  More memory
  Adjust sidecar boot
  Move proxy into its own manifest
  Add local proxy sidecar
  34 Use skip before action instead of except for timeout
  34 Readability fix for check_session_expiration
  34 Fix for timeout not redirecting properly
  34 Remove session timeout from .envrc
  34 Change session timeout env var to a constant
  34 Fix failing session timeout test
  ...
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