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

Feature #12713: New transversal basket and Newsletter improvements #1204

Merged
merged 15 commits into from Mar 1, 2022

Conversation

mmoqui and others added 14 commits March 1, 2022 09:35
Add a basket to contain resources selected by a user. These resources
can be a contribution or an organizational resource. The far goal of the
basket is to replace the current clipboard used in copy/cut and paste
operations. For instance, it is dedicated to contain the publications a
user has selected to use for filling a given newsletter template.
Add a REST-based web service to get, post and to pop items from the
selection basket. Improve some business code and the integration tests
on web resources accessible by a REST-based Web API. For example, a
method is added in RESTWebServiceTest to perform a user authentication
against Silverpeas in order to open an explicit session that can be used
in the integration test. For business code, the improve is about to use
contributions in a more generic way for the selection basket without
having to know their concrete type and to resolve some sonar feedbacks
about code quality.
Merge ApplicationService and ContributionManager to avoid redondant
code and features and to facilitate the code by providing a single way
to get a contribution from a component instance (an application
instance). ContributionManager is now removed.
Add first version of the selection basket business code in JS to wrap
the requests to the Web API
Adding the representation of a Drag&Drop Web Editor content.

Making the WBE Host Manger API able to get the right client according the edited file.
Upgrading the WBE API in order to get several WBE clients enabled.

Adding the WBE Client Manager able to handle the Drag & Drop Web Editor into context of WBE API.

Adding to the WBE API the possibility to set a specific configuration when initializing an edition.

Adding the Web Controller in charge of managing the editor.

Adding Grapes Libraries.

Adding sharedSpace CKEditor plugin.

Adding new signature to Contribution which permits to retrieve as a centralized way its path.

Adding new VueJS components:
- silverpeas-fade-transition-group which permits to perform fade operation on list of HTML element
- Silverpeas Image Selector which centralizes the way to get image from Silverpeas's platform
- Silverpeas Basket Selection which permits to handled selected items into a basket
- Silverpeas Publication Basket Selector which permits to use element from basket selection

Using the image tool services first into image preview API before using old way to get width and height of an image.
It is now possible to push incomplete resource data into the selection
basket through its Web RESTful API. The data are automatically reloaded
each time the content of the basket is returned by the web resource
representing the selection basket. Only the unique identifier and the
type of the resource is required.

Because the draftOutDate is always set at null and because the automatic
drafting out process (batch process) isn't more used (anyway it cannot
work because the draftOutDate is always null) since 2011, the process
and the draftOutDate attribute and its handling in the code are all
removed of the code.
Using constant in basket service about BasketElement signature implementation.
LocalizedContributionWrapper implements now WithThumbnail and
WithPermanentLink interfaces.

If there is no resource matching the identifier of the item in the
selection basket, then a Not Found error (404) is sent back.
The calendar events can be put now in the selection basket. The personal
user calendar doesn't support this feature.

Improve codes according to SonarCube issues.

Refine the text for putting contributions into the selection basket.
Fixing some Javascript regressions on IE around for ... of ... directive.
Fixing also a little letter introduced into the call of a method.
UI:
- The user is redirected to the contribution of a basket item if he clicks on it.
- Improving silverpeas-embed-player plugin by adding the possibility to listen to message events.

WEB:
- Implementing into FileServer LinkUrlDataSourceScanner and ImageUrlAccordingToHtmlSizeDirective.SrcTranslator interfaces. The first permits to take in charge thumbnails URL into mail processing. The second permits to take in charge the image resizing for WYSIWYG contents about thumbnails.
- Adding to HttpRequest getParameterSimpleMap signature which permits to retrieve as a common way a Map<String, String> instead of a Map<String, String[]>.
- Handling the user session id into RESTAdapter API.
- Moving JavasScript resources providing common services from vuejs to common javascript root folder.

BACKEND:
- Adding to User API getCurrentUser signature which provides the user of the session if any or the system user otherwise.
- Making a drag and drop web editor store deletable.
- Moving DragAndDropEditorContent to core-api project in order to centralize the use of a drag and drop editor content.
- Adding a signature to ContributionContentRenderer in order to take into account the view rendering into an external context of the Silverpeas's one.
Now, when the item in the basket is a calendar event, the period of time
in which the event is spanning is provided in JSON through the web
REST API
Adjustments around Silverpeas's component selction into the editor.

Adding new grapes component to handle specifically the 'CalendarOccurenceEvent' entities.

Adjustments around Silverpeas's component selection into the editor.

Fixing a unit test which has not been adjusted after the little refactoring around WYSIWYG URL source scanners.

Fixing a plugin inclusion missing into built-in look.

Adding the possibility to select as fast as possible elements for basket selection container (centralizing the code to put elements into basket selection by implementing BasketManager).

Improving the mail sending in order to allow using the @media into style HTML TAGs.

Adding the possibility to specify a minimal width for image resizing when sending an email.

Moving the MailSending creation at a centralized place in order to use it from several functionalities instead only from infoletter.

Adding to WysiwygManager the possibility to manage the copy of documents between two resources while updating also the content.

Adding new WYSIWYG directive in order to add Silverpeas's server URL to URL starting with the application context.
Updating GrapesJS from 0.17.29 to 0.18.3.
Copy link
Member Author

@SilverYoCha SilverYoCha left a comment

Choose a reason for hiding this comment

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

OK

@SilverYoCha SilverYoCha merged commit ec203ff into Silverpeas:master Mar 1, 2022
@SilverYoCha SilverYoCha deleted the feature-12713 branch March 8, 2022 14:58
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.

None yet

2 participants