Skip to content

Geostory scheleton#4014

Merged
offtherailz merged 8 commits intogeosolutions-it:C039_geostoryfrom
offtherailz:geostory
Jul 26, 2019
Merged

Geostory scheleton#4014
offtherailz merged 8 commits intogeosolutions-it:C039_geostoryfrom
offtherailz:geostory

Conversation

@offtherailz
Copy link
Copy Markdown
Member

Description

Add GeoStory base structure:

  • a #/geostory entry page
  • base reducer, selectors and actionCreators files.
  • a GeoStory and GeoStoryEditor plugin
  • Base section and content structure

Please check if the PR fulfills these requirements

What kind of change does this PR introduce? (check one with "x", remove the others)

  • Bugfix
  • Feature

Does this PR introduce a breaking change? (check one with "x", remove the other)

  • No

@offtherailz offtherailz added this to the 2019.03.00 milestone Jul 26, 2019
@offtherailz offtherailz requested a review from allyoucanmap July 26, 2019 07:47
@offtherailz offtherailz changed the base branch from geostory to C039_geostory July 26, 2019 07:50
@offtherailz offtherailz reopened this Jul 26, 2019
@coveralls
Copy link
Copy Markdown

coveralls commented Jul 26, 2019

Coverage Status

Coverage increased (+0.07%) to 82.225% when pulling 2c2e174 on offtherailz:geostory into 94f36f6 on geosolutions-it:C039_geostory.

Copy link
Copy Markdown
Contributor

@allyoucanmap allyoucanmap left a comment

Choose a reason for hiding this comment

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

In general about classes I would use this approach:
ms-geostory-component--part

* "mode": "edit", // 'edit' or 'view',
* "currentStory": {
* // sessions
* "sessions": [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

typo sections

style={{
padding: '8px 16px',
borderBottom: '1px solid #ddd'
}}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would prefer to move inline style to the less file in particular in the case they use colors.
We could use a className like 'ms-geostoty-builder--header' or similar.

const res = 1080 / 1920;
const height = width * res;
return (
<div style={{ position: 'relative', width, height }}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could use a className like 'ms-geostoty-sections--preview' or similar.

description: `type: ${type}`,

body: contents
? <div style={{ position: 'relative' }}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this position relative was needed for ContainerDimansion, it had strange behaviours, I don't know it it really needed now.

* @SectionsPreview
* @param {object[]} [sections=[]] Array of sections to display
*/
export default ({ sections = [] }) => (<SideGrid
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

SideGrid needs some style adjustment at application level, in particular for margin and issue inherit from .row and .col styles from bootstrap


const Text = (props) => {
return (
<div className="geostory-content-text" style={{margin: 20}} onClick={() => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could use a className like 'ms-geostory-content--text' or similar and remove margin 20 from here

}) => (<BorderLayout className="ms-cascade-story">
<ContainerDimensions sections={sections}>
{({ width, height }) =>
<div style={{ position: 'absolute', width: '100%', height: '100%', overflowY: 'auto'}}>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could use a className like 'ms-geostory-cascade-story--container' or similar

export default ({
mode = Modes.VIEW,
sections = []
}) => (<BorderLayout className="ms-cascade-story">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We could use a className like 'ms-geostory-cascade-story' or similar

* Paragraph Section Type.
* Paragraph is a page block that expands for all it's height
*/
export default ({ contents, type, mode }) => (<div className={`section-${type}-contents`}>{contents.map((props) => (<Content mode={mode} {...props}/>))}</div>);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ms-geostory-section-- ?

className={`ms-${this.props.storyType}-section${this.props.type ? ` ms-${this.props.type}` : ''}`}
style={{
position: 'relative',
transform: 'translate3d(0px, 0px, 0px)'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can remove this style and maybe use a generel class for all Section

@offtherailz offtherailz merged commit d9dd38b into geosolutions-it:C039_geostory Jul 26, 2019
offtherailz pushed a commit that referenced this pull request Sep 6, 2019
* Geostory scheleton (#4014)

* Geostory sections (#4029)

Add base structure for geostory scroll handlers and background setup (base support for immersive or cover backgrounds) .

* Geostory base text editing and content wrapper (#4033)

* Fix #9 Contents - Image (#4038)

* Geostory scroll immersive (#4044)

* Fix #69 Builder - Section Editor - Section selector - Title (#4063)

* Geostory add Section (#4078)

* Fix random failure of getFeatureInfoOnFeatureInfoClick WMS test (#4091) (#4099)

* Fix issue 78 Load story configuration (C039_geostory) (#4096)

* Fix issue 78 Load story configuration

* removed unneeded action in epic stream
* removed unneeded comment
* skip failing test

* Fix issue 62 Media Editor - Image  (C039_geostory) (#4101)

* First version of media editor (missing tests)
* Adding tests and documentation
* adding modify logic for media image with tests
* mediaEditor closed by default
* update node version to 8.6.0 in .travis.yml
* skip failing test for the moment

* Geostory - Normal editor - Title  (C039_geostory) (#4102)

* Fix issue 75,71 added content toolbar everywhere and media editor and media section (C039_geostory) (#4107)

* Fix Background content toolbar (C039_geostory)

* it contains also tests

* added editing for media and correct update of resource id

* also restructured the sample story for new layout of paragraph
* adding media toolbar on every Image

* missed one test in prevois commit

* Adding Media Section for GeoStory

* issue 71

* add some styles for immersive layout

* Removed section typemedia

* Fixed missing parts of SectionTemplate removals

* Fixed styles and minor changes

* fix add button position in geostory column content

* Fix media section toolbar as paragraph

* removed .only in tests

* Add column and immersive tests

* revert error commit

* revert error commit

* Fixed immersive tests

* Fixed column test

* Add remove button for images and immersive background

* Fixed remove buttons

* improve style of cascade layout

* Fixed array remove

* * removed path geostory
* image placeholder

* fix tests

* Add default resources for newgeostory

fix edit for empty background

* fix scrollbar in media editor

* Add remove to text. Add recursive conainer removal

* add tests for column and actions and content toolbars

* resotred tests.webpack.js changes committed in error

* removed temp comment

* update toolbar position and patterns

* fix failing epic test

* fix edit media for media inside immersive columns

* Add auto scroll for new content

* fix lint error
@offtherailz offtherailz deleted the geostory branch February 18, 2020 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants