-
Notifications
You must be signed in to change notification settings - Fork 409
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
#8086 Layout changes and other improvements #8085
Merged
tdipisa
merged 52 commits into
geosolutions-it:master
from
alexander-fedorenko:150-layout-change
May 5, 2022
Merged
Changes from all commits
Commits
Show all changes
52 commits
Select commit
Hold shift + click to select a range
65b6886
# 150 Layout changes of the UI
alexander-fedorenko 523ba55
Updated test to be align with the changed position of annotations panel
alexander-fedorenko 8e808b2
Changes for print plugin required to support printing of additional l…
alexander-fedorenko ba43a08
Minor customizations for "Home" and "Login" plugins to make them prop…
alexander-fedorenko cb1c15a
Update of the rest plugins that were presented in BurgerMenu to appea…
alexander-fedorenko 392d3e9
rollback, was causing problems when some glyphicons were not rendered
alexander-fedorenko f813ba9
Corrections of style for legacy burger menu
alexander-fedorenko a793f0e
- Hide burger menu when SidebarMenu is active, keep OmniBar visible a…
alexander-fedorenko 83fb2ad
Skip attempt to sum-up dockSize as percentage amount.
alexander-fedorenko 209e818
Moved layout-based style from omnibar to search plugin to prevent inf…
alexander-fedorenko b70a82c
Added toggle support for part of the tools;
alexander-fedorenko a928e43
Selector & reducer update
alexander-fedorenko d781ccf
Sidebar menu with tracking of the window height and hiding elements i…
alexander-fedorenko c027eab
- Sidebar - keep last active item tracked.
alexander-fedorenko 29cc37c
Prevent reset of last active item from additional list when user togg…
alexander-fedorenko 66ee8ff
Support of having plugins list that define dock panel that needs to b…
alexander-fedorenko f8bfb8e
- Updated annotations panels order (since it's moved from right to left)
alexander-fedorenko a311afb
- Fixes for searchbar when omnibar contains elements;
alexander-fedorenko 144c5b9
Locale strings for sidebar menu
alexander-fedorenko b3ac0ca
Fixes search to be styled consistently with or without sidebar menu.
alexander-fedorenko 7e496a7
Fixes search to be styled consistently with or without sidebar menu.
alexander-fedorenko 9ed51b1
Amending existing tests to make them work after layout changes;
alexander-fedorenko 16ae536
Basic test coverage for implemented functionality
alexander-fedorenko 395d799
Reverting flex styles for omnibar. Using simpler approach for proper …
alexander-fedorenko 119ef93
Fix of the bug that prevents prioritized container to be properly sel…
alexander-fedorenko f182cec
- Changes in plugin priorities to make them appear in BurgerMenu by d…
alexander-fedorenko 62f02aa
Reducing button sizes;
alexander-fedorenko 9901e16
Making option to print additional layers optional and disabled by def…
alexander-fedorenko ea18646
Removed monitored state.
alexander-fedorenko 341017f
Removed BurgerMenu from desktop plugins.
alexander-fedorenko 5b69fba
Share plugin tests fix.
alexander-fedorenko 568accc
Order matters
alexander-fedorenko fb68718
15/30px size for medium-size buttons
alexander-fedorenko b66e26d
- Separate panel component with support of tracking of container width
alexander-fedorenko 936e91c
Fix for annotations plugin tests
alexander-fedorenko 6092a52
Revert of hardcoded toolbar buttons in TOC for annotations. Defining …
alexander-fedorenko d524a0b
Correction to make cards size approximately same as it was before but…
alexander-fedorenko 45c8eef
Using common button size in less stylesheet of SidebarMenu;
alexander-fedorenko 3f0fe68
Merge branch 'master' into 150-layout-change
alexander-fedorenko 895e89d
- Tracking of the case when left/right panels are open via state.
alexander-fedorenko e2bcc35
Updated migration documentation with changes to the pluginsConfig.json
alexander-fedorenko a950395
- Map export, Save, SaveAs plugins - making them work again by adding…
alexander-fedorenko cd0ca65
DockContainer and ResponsivePanel documentation
alexander-fedorenko 2106ae1
Added card-height variable.
alexander-fedorenko 0f51fae
Missed lines
alexander-fedorenko 7a1256a
Missed lines /2
alexander-fedorenko 4d8dcef
Use card-height in TOC styles
alexander-fedorenko 1874d95
Suggested change to the documentation with minor fix
alexander-fedorenko 4547d60
Update web/client/configs/pluginsConfig.json
alexander-fedorenko 1b78995
Properly hide overlay layers printing options by default (it is enabl…
alexander-fedorenko adf9fab
Properly hide overlay layers printing options by default (it is enabl…
alexander-fedorenko 1448191
Missing doNotHide for DeleteMap plugin
alexander-fedorenko 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
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,19 @@ | ||
/** | ||
* Copyright 2022, GeoSolutions Sas. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
import expect from 'expect'; | ||
import {SET_LAST_ACTIVE_ITEM, setLastActiveItem} from "../sidebarmenu"; | ||
|
||
describe('Test correctness of the sidebar actions', () => { | ||
|
||
it('test setLastActiveItem', () => { | ||
const action = setLastActiveItem("annotations"); | ||
expect(action.type).toBe(SET_LAST_ACTIVE_ITEM); | ||
expect(action.value).toBe("annotations"); | ||
}); | ||
}); |
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,16 @@ | ||
/* | ||
* Copyright 2022, GeoSolutions Sas. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
export const SET_LAST_ACTIVE_ITEM = 'SIDEBARMENU:SET_LAST_ACTIVE_ITEM'; | ||
|
||
export function setLastActiveItem(value) { | ||
return { | ||
type: SET_LAST_ACTIVE_ITEM, | ||
value | ||
}; | ||
} |
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 think we are currently using two library for the resizing
react-container-dimensions
andreact-resize-detector
. If I remember correctlyreact-resize-detector
was introduced to solve the issue of thereact-container-dimensions
. If this PR is changing all the current instances ofreact-container-dimensions
I would try to use thereact-resize-detector
instead and going to remove this one instead to update it. This is only a suggestion, I'm not sure if the react-container-dimensions is still use somewhere elseThere 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.
Please check my comment below #8085 (comment)