-
Notifications
You must be signed in to change notification settings - Fork 34
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
feat: add fullscreen option to visualization items [DHIS2-9879] #1358
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
3267d92
chore: refactor Visualization item to separate Item from Plugin
jenniferarnesen cf6dbb3
feat: fullscreen start
jenniferarnesen a23479b
feat: some cleanup
jenniferarnesen 4e08293
test: update snapshots
jenniferarnesen e6d5ea8
fix: use ref instead of css selectors
jenniferarnesen 282d153
fix: do things the react way
jenniferarnesen ed7540a
fix: add missing translations
jenniferarnesen 32f5b26
fix: cleanup
jenniferarnesen 43233cc
fix: clean up event listener
jenniferarnesen 93bdea7
fix: fullscreen icon - temporary for demo only
jenniferarnesen 8b0c1d6
test: add test for fullscreen button
jenniferarnesen 2734cef
fix: remove surrounding div
jenniferarnesen 5d3d6e3
fix: consolelog
jenniferarnesen ce13772
fix: remove unused file
jenniferarnesen 9ddad11
fix: update snapshot
jenniferarnesen 1c3ef15
fix: use class var to hold element selector
jenniferarnesen b9405ea
feat: exit fs icon
jenniferarnesen 238547e
fix: test
jenniferarnesen 13af174
Merge branch 'master' into feat/fullscreen-latest
jenniferarnesen e01b83f
fix: dom el doesnt match in print mode
jenniferarnesen 470e625
Merge branch 'master' into feat/fullscreen-latest
jenniferarnesen 3bb88c9
chore: tests to check for fullscreen option
jenniferarnesen 0abaefe
fix: safari fs
jenniferarnesen b482fbc
fix: add css from chrome to support safari
jenniferarnesen 575fe8a
chore: cleanup
jenniferarnesen 04469bf
fix: missed ?
jenniferarnesen b689cbd
Merge branch 'master' into feat/fullscreen-latest
jenniferarnesen ae0637e
Merge branch 'master' into feat/fullscreen-latest
jenniferarnesen 2384dbb
fix: use viewport height instead of % to improve ff fs rendering
jenniferarnesen b1b5a17
Merge branch 'master' into feat/fullscreen-latest
jenniferarnesen 7ccacbe
Merge branch 'master' into feat/fullscreen-latest
jenniferarnesen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
> 0.5% | ||
last 2 versions | ||
Firefox ESR | ||
not ie 11 | ||
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Feature: Item context menu fullscreen | ||
|
||
Background: | ||
Given I open the "Antenatal Care" dashboard | ||
And the "Antenatal Care" dashboard displays in view mode | ||
|
||
@nonmutating | ||
Scenario: Text item does not have a context menu | ||
Then the text item does not have a context menu | ||
|
||
@nonmutating | ||
Scenario: Chart item has a fullscreen option | ||
Then the chart item has a fullscreen option in the context menu | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Then } from 'cypress-cucumber-preprocessor/steps' | ||
import { | ||
getDashboardItem, | ||
itemMenuButton, | ||
clickMenuButton, | ||
} from '../../../selectors/dashboardItem' | ||
import { dashboards } from '../../../assets/backends' | ||
|
||
Then('the text item does not have a context menu', () => { | ||
getDashboardItem(dashboards['Antenatal Care'].items.text.itemUid) | ||
.find(itemMenuButton) | ||
.should('not.exist') | ||
}) | ||
|
||
Then('the chart item has a fullscreen option in the context menu', () => { | ||
clickMenuButton(dashboards['Antenatal Care'].items.chart.itemUid) | ||
cy.contains('View fullscreen').should('be.visible') | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm wondering if we should handle the error case with
onfullscreenerror