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

fix: hide the global header in print mode [DHIS2-19241] #3245

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jenniferarnesen
Copy link
Collaborator

@jenniferarnesen jenniferarnesen commented Mar 19, 2025

Implements DHIS2-19241


Description

If the global shell header exists in the top document, then show/hide that header when in print mode. Otherwise, show/hide the current header.

Test instance for 42 with custom build deployed: https://dev.im.dhis2.org/jen-analytics-42-0


TODO

  • Tests added (Cypress and/or Jest)
  • Docs added N/A
  • i18n strings generated N/A
  • d2-ci dependency replaced N/A
  • tested in 40, 41 (no global shell)
  • tested in 42 both with and without global shell

Screenshots

Before:
image

After:

image

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Mar 19, 2025

🚀 Deployed on https://pr-3245.dashboard.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify March 19, 2025 15:46 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 21, 2025 11:04 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 21, 2025 11:17 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify March 21, 2025 11:37 Inactive
@jenniferarnesen jenniferarnesen requested review from BRaimbault and removed request for HendrikThePendric March 21, 2025 11:37
@jenniferarnesen jenniferarnesen added the e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud label Mar 24, 2025
Copy link

cypress bot commented Mar 24, 2025

dashboards-app    Run #5170

Run Properties:  status check passed Passed #5170  •  git commit 2eaebe5ddc ℹ️: Merge 2a61cb5bbc674bca01b4084ccd995edba9e2203f into c7d599a4ea3fdee65274263edc55...
Project dashboards-app
Branch Review fix/global-header-print-mode
Run status status check passed Passed #5170
Run duration 01m 48s
Commit git commit 2eaebe5ddc ℹ️: Merge 2a61cb5bbc674bca01b4084ccd995edba9e2203f into c7d599a4ea3fdee65274263edc55...
Committer Jen Jones Arnesen
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 7
View all changes introduced in this branch ↗︎

@dhis2-bot dhis2-bot temporarily deployed to netlify March 25, 2025 09:01 Inactive
Copy link

@BRaimbault BRaimbault Mar 25, 2025

Choose a reason for hiding this comment

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

Does not look like: "the print one-item-per-page displays for {string} dashboard" is used anywhere else, is it? You may consider removing it too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e record Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants