Sharing Posts and using News feed
Overview
Users can share posts in VREs, attach files to these posts, view, comment, like and unlike them by means of the Share-Update and News-Feed web applications. These applications mainly relies on the facilities offered by the Social-Networking library, see here for more details. Both applications are responsive, thanks to the Bootstrap framework, so that users can share post or view it by means of tablets or smartphones too.
The share updates application mainly allows users to share their updates within a VRE context. It shows the current user's avatar on the left, a textbox area to write, a select box to choose if other vre members should be notified about the post and, on the right side, the file upload () and share buttons. If the author wishes to notify other members for his post, he can do that by selecting the proper option within the selection box. The application allows also to attach a single file by means of an upload file or more than one file by means of drag and drop. If an url is paste into the textbox area, the application automatically tries to generate a link preview to be attached to the post. Further social networking tools such as hashtags for topics (using '#' notation), to cite other people or groups (using '@' notation) are supported.
Use Cases
In the following some use cases are reported.
This is the simplest case: just enter some information you wish to share, select the option to notify other VRE members if you need it and push the "Share" button.
If everything goes ok, it will be shown by the News-Feed application, see [... here]
As earlier stated, when a link is pasted into the app's textarea, it tries to create a meaningful link preview (with thumbnails, description and title). For example, by copying the url of this page you get something like:
If you remove the url within the text-area, the preview still remains. You can choose to remove the image and/or the description of the generated preview. To completely delete it, you have to push the delete button ("x") on the right side. At most one link preview can be inserted at time and you cannot attach files if a link preview is present and vice versa. Trying to insert another link, the app says:
On the other hand, trying to attach (using the upload button or the drag and drop utility) a file with a link preview present, the following alert message appears
If you choose to delete the preview and continue with the attach phase, the pasted is not removed.
To share a post and one or more files you can use the upload button. By pushing on the button a popup appears and let you select a file (one at time) from your pc. For example, a post with two attachments looks like
You can attach at most ten files, with a limit of 50MB each.