neos / neos-ui Goto Github PK
View Code? Open in Web Editor NEWNeos CMS UI written in ReactJS with Immutable data structures.
License: GNU General Public License v3.0
Neos CMS UI written in ReactJS with Immutable data structures.
License: GNU General Public License v3.0
Currently we often got a pattern like this:
<Button onClick={() => this.props.onClick()} />
which is insufficient since it breaks the component life-cycle, especially shouldComponentUpdate()
. Instead we should memorize the passed functions to prevent unnecessary re-render calls and function creations.
Jira issue originally created by user @aertmann:
How to reproduce:
Uncaught TypeError: Cannot read property 'element' of undefined (create.js:577)
Jira-URL: https://jira.neos.io/browse/NEOS-583
We should strive into a development workflow where we just run a simple Node.js based server for development purposes.
The benefits for this will not only be an server we could actually use in our testing stack, but it would also increase the standalone nature of the UI package, basically we are 100% independent while developing.
The server itself should at least provide the basic endpoints for saving/fetch data, as well as the initial rendering of the app. I don't want to replicate the whole service, but we definitely need a dummy server for testing the UI anyway, so why not also use the server as a development tool too? :)
If we use react-redux
, it's considered a best practice to not to couple React components with Redux state logic like dispatch, React component should not be aware of the existence of Redux at all.
connect
method from react-redux package receives second argument that maps array of callbacks to Redux action creators. So the component just exposes some callback and react-redux does the rest.
See https://github.com/rackt/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options
We could do this as soon as possible, but I would feel far more comfortable if we actually prioritize #18 ahead so we are 100% sure that the greenkeeper PR`s are tested and everything still works like a charm.
e.g. ui.tabs
and user.settings
Currently, only the UI get's updated (checkbox is checked, duh!), but the functionality of Neos itself isn't replicated, this still needs to be done.
Jira issue originally created by user soee:
Neos offers option to reuse the same element across website by using Reference NodeType. At the moment to use it we have to insert Reference element and search for target content. This works pretty good when target element has some property like 'title' that can be used to search for it. But if target content has no such property it simply can't be found by Reference object.
To make it a lot easier it would be good to have option to paste element as a reference. This could work like this:
This would require probably some extra button in content element controls - next to "paste" controls or by extending it.
Atachements:
Jira-URL: https://jira.neos.io/browse/NEOS-1487
Currently the Tree Component only passes the correct arguments for the Enter
and ArrowRight
keys when pressing a key while the component is focused.
On the following lines we need to pass the new focused node data(prev/next of the current active node) to the handler.
https://github.com/PackageFactory/PackageFactory.Guevara/blob/develop/Resources/Private/JavaScript/Host/Components/Tree/index.js#L88-L93
As suggested by @dimaip and me. We both think this makes sense. Maybe we can integrate this on the same step as moving all the redux stuff into one folder named redux
?
https://github.com/acdlite/redux-actions
What do you think @grebaldi
The stack will contain at least mocha, chai and sinon, either cheerio or JSDom and maybe even the React testing utilities.
Jira issue originally created by user @Sebobo:
This could maybe be resolved by stacking more icons or changing the text
color like the "hidden" property does.
Jira-URL: https://jira.neos.io/browse/NEOS-1680
Currently only files which are imported through the .spec.js
files are included in the coverage metrics, thus, the data is not correct.
Jira issue originally created by user @aertmann:
When an editor changes to using auto-publishing the state should be remembered across sessions for that user.
Jira-URL: https://jira.neos.io/browse/NEOS-350
Some builds are currently failing because of composer/composer#1314. This should be fixed ASAP.
I've just discovered this plugin: https://github.com/codemix/babel-plugin-typecheck
It kind of enables static typechecking for functions, in ES7 there may be Trademarks and Guards, which kind of strive into the same direction.
The question is, do we want to integrate such a plugin, even though its syntax may heavily change in the upcoming months?
I think static typechecking in functions would enhance the code quality greatly, though I am aware that this may be a to unstable feature of the next ES version.
What do you think @dimaip @skurfuerst @grebaldi
Jira issue originally created by user kapale:
The preview of the image in the inspector should show the filename of the image to make it easier to identify which image was chosen.
Jira-URL: https://jira.neos.io/browse/NEOS-1370
The plan is, to create the following hooks:
prepare-commit-msg
-> Validates the commit message against the Neos commit guidelines
post-merge
-> updates npm dependencies after a rebase, merge, checkout and pull
pre-commit
-> lints all source files, currently I am not sure if we should also run karma as well (Boot time of karma is pretty long tbh)
Jira issue originally created by user daniel:
In order to translate content elements of a document, the editor wants to see a side-by-side view (split screen) of the original content and translated content. The editor may choose to defer from a 1-1 translation and remove specific elements in the second language version or add content elements which don't exist in the original language. The side-by-side view will show which content elements correlate with others in the respective language.
Jira-URL: https://jira.neos.io/browse/NEOS-631
Since #44, the no-use-before-define
ESLint rule was removed, this is due to an incorrect parser behavior of babel-eslint which is already reported.
We also postponed the update of ESLint to version 2.3.0
since of babel/babel-eslint#267.
Hey guys!
So today I had a phonecall with @skurfuerst and we both agreed that we need to move fast from the current separation into folder to a standardized API which will in future be shipped with the Neos core package.
For example, currently the service layer and all of the logic for communicating with the Neos Backend endpoints is placed directly in the Host/
folder. @grebaldi already stated in several places that he wants to refactor most of this (f.e. the ChangeManager service).
I think we should take this opportunity seriously and go straight into the process of moving most of the logic into a separate API bundle which will always be loaded in the <head>
before every other tag. Afterwards we might want to create an abstraction layer for the current UI, which binds the Neos Content API to the redux-actions.
Note that the API itself should not use redux, so we have a clear separation of UI logic/actions and the API itself. A stream based API for the NodeService
, which is accessing the unified node model(which also needs to be created ASAP), and a PublishingService
which uses Promises/Generators(?) may be an appropriate solution, but this is only a rough idea in the back of my head.
Anyway, looking forward to thoughts of all of 'ya
CC: @grebaldi @dimaip @skurfuerst
Jira issue originally created by user rasmusskjoldan:
Jira-URL: https://jira.neos.io/browse/NEOS-334
Thus, builds aren't breaking correctly as seen with https://travis-ci.org/PackageFactory/PackageFactory.Guevara/jobs/112261030
This will be solved by adding set -e
at the top of each shell script.
E.g. this is not correct BEM notation: treeWrapper__tree__children
.
See: bem-site/bem-method#110
Also we should agree on BEM style: bloclName__elementName--modifier
vs block-name__element-name--modifier
(original notation) vs BlockName-elementName--modifier
(Nicolas Galagher's notation, my favourite).
Thanks to @dimaip and @skurfuerst for the hint
We are better of to integrate ARIA-Attributes and voice labels as soon as possible so we all embrace accessibility while developing new features in the coming months.
Jira issue originally created by user @aertmann:
When a content element is selected it should be unselected when clicking the Escape key. However if it's the uppermost element (page) selected, nothing should happen.
Jira-URL: https://jira.neos.io/browse/NEOS-601
Icons such as resize-full
or ban-circle
have been renamed and need to be remapped to the new names.
Jira issue originally created by user @aertmann:
STUB: The Document tree should be collapsible in order to make more room for the Content tree in cases of pages with lots of content
Jira-URL: https://jira.neos.io/browse/NEOS-781
Jira issue originally created by user @liwo:
The inspector should show a warning if the window is closed if there's still unsaved data.
Jira-URL: https://jira.neos.io/browse/NEOS-534
The User Settings
item is a simple link, but the logout button is a form with values which Flow
requires to complete the logout handler.
ToDo: Implement the generated IDs/values which Flow
requires.
Jira issue originally created by user soee:
We can interact with backend interface after session expired, but before any action will be processed we need to authenticate first in login window.
The problem:
If our session expired and we click on the language selector and try to change to different language, target language gets selected and we will see login screen. After filling the form and getting authenticated again, our action (language change) is not processed further. - But the UI is stuck in the new state alreasy: The target language is set. (So we have to change currently selected item (target language) to different one to make the page reload and than switch to targen language.)
Would be good to have the language change action processed after relogin.
Jira-URL: https://jira.neos.io/browse/NEOS-924
I think most of React components here could be simplified to use the new stateless function component way. Wdyt?
Handle each error via window.onerror
in the guest frame.
This might be of help, when used in the guest frame:
window.onbeforeunload = (e) => {
console.log(document.activeElement.href);
};
Currently we only render fixtures, this needs to be changed.
Jira issue originally created by user @aertmann:
When multiple tabs on the same domain are open and one of them notices being logged out, all of the tabs should show the login dialog synchronously as well as hiding it synchronously.
Jira-URL: https://jira.neos.io/browse/NEOS-816
Jira issue originally created by user @aertmann:
STUB: The tree should remember which branches were opened/closed during the last time
This should be possible with dynatree's cookie functionality
Jira-URL: https://jira.neos.io/browse/NEOS-780
Since the newest babel version stalled the implementation of decorators, we currently use the older version "6.4.0". This issue is just a reminder to update babelify as soon as possible.
Related issue: http://phabricator.babeljs.io/T2645
In e2f14ab I've removed all selenium related user stories and the build setup, since it was unreliable. This issue is just a reminder to re-visit this whole topic again later on. Maybe a switch to nightwatch.js or nightmare.js could give us the expected stability?
Jira issue originally created by user @aertmann:
this mode could be active at a specific horizontal screen size only.
Jira-URL: https://jira.neos.io/browse/NEOS-614
Jira issue originally created by user @aertmann:
When opening the insert new panel from either the navigate component or inline handles, the panels options should be navigable with tab, arrow keys and hitting enter/space should select the focussed element.
Jira-URL: https://jira.neos.io/browse/NEOS-340
Currently we embedded a data-fixture for the DimensionSwitcher in the ContextBar
Container. Real data needs to be rendered and the functionality for the switch needs to be implemented.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.