Giter Club home page Giter Club logo

neos-ui's People

Contributors

ahaeslich avatar bwaidelich avatar crydotsnake avatar danielkestler avatar daniellienert avatar dependabot[bot] avatar dfeyer avatar dimaip avatar dlubitz avatar gerhard-boden avatar grebaldi avatar greenkeeperio-bot avatar hlubek avatar inkdpixels avatar jamesalias avatar johachi avatar johannessteu avatar jonnitto avatar kdambekalns avatar kitsunet avatar markusguenther avatar mgoldbeck avatar mhsdesign avatar mstruebing avatar pkallert avatar sbruggmann avatar sebobo avatar skurfuerst avatar torsten85 avatar weblate avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neos-ui's Issues

Memorize the prop functions which get passed down into child-components

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.

Decouple the development of the UI package from the Neos backend services

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? :)

Don't `dispatch` directly from components

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

Finalize the Auto-Publishing mode

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.

Allow pasting copied element as a reference

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:

  1. Copy any content element as usual
    2.1 You can paste this element as usual to create copy
    2.2 You can paste this element as a reference - create reference to copied element

This would require probably some extra button in content element controls - next to "paste" controls or by extending it.

Atachements:

Jira Image

Jira-URL: https://jira.neos.io/browse/NEOS-1487

Integrate static typechecking via babel / flow

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

Create git-hooks for a better development expirience

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)

Editor: side-by-side view

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

Create the Neos JS Content-API / Separation of Core UI from API logic

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

Meh

Add functionality for the UserDropDown items

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 Flowrequires.

BUG: Language selector gets stucks after re-login

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

Enhance the UX for the Tabs

This might be of help, when used in the guest frame:

window.onbeforeunload = (e) => {
    console.log(document.activeElement.href);
};

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.