Skip to content
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

Improvements of dashboard extension #8

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

rostyslavmatviiv
Copy link

No description provided.

The system section is meant for administration
of the TYPO3 system, while a dashboard is a typical
user module as every dashboard is bound to individual users.
The abstract widget only contains a helper method
to convert a flexform string to an array, which
really should be done in the widget settings model already.

Deprecate the abstract and add a method to the model
to return the array directly.

This is breaking for widgets, that did not use the
"settings" namespace in their flexforms
Since the namespace change removed every single bit
of class compatibility anyway, we can safely remove
the deprecated class.
While storing some settings as well, this class represents
a concrete widget being used on a dashboard.

Clarify this by renaming the class and variables
Since it is in the domain of the dashboard to know,
which the next available vertical position is available,
we put this logic into the dashboard model and
on the go fix a bug here.
Widgets are only valid when attached to a dashboard
and are not aggregate root objects.

Thus the repository is removed and widgets are now
only fetched from the current dashboard
Let widgets define a AMD module that will be initialized
with each widget that is rendered.

The AMD module can be registered when registering the widget
with the "jsModule" property.

The module must implement bootstrapWidget, which will be
called with the widget DOM element and the dashboard app
on initial rendering of the widget.

We also introduce events when the widget content will
be and has been updated.
@manuelselbach manuelselbach mentioned this pull request Jul 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants