Difference between revisions of "JMO"
(→Technical implementation) (Tag: Visual edit) |
(→Technologies to use: (might change)) (Tag: Visual edit) |
||
Line 64: | Line 64: | ||
* Twitter SDK (javascript) | * Twitter SDK (javascript) | ||
* Facebook SDK (javascript) | * Facebook SDK (javascript) | ||
+ | * DHIS2 API | ||
==== Embedding images and send attachments to message ==== | ==== Embedding images and send attachments to message ==== |
Revision as of 13:03, 25 October 2016
Contents
- 1 List of group members
- 2 Summary of requirements
- 3 Time schedule
- 4 How you are dividing tasks within the group
- 5 Screenshots and screen flows
- 6 Documented learning during project
- 7 Suggested improvements to APIs etc
- 8 Link to repository
- 9 Download link to sample web app
List of group members
Ophélie André <ophelia@ifi.uio.no>
Marius Munthe-Kaas <mariusmu@ifi.uio.no>
Julien Vedrenne <julienve@ifi.uio.no>
Summary of requirements
Introduction
This page describes our project which take part of the course INF 5750 open source development at the university of Oslo.
JOM is a team of 3 master students from UiO, composed by :
- Marius Munthe-Kaas
- Julien Vedrenne (exchange student from France)
- Ophélie André (exchange student from France)
We were asked to choose a subject from 7 differents and implement it on the DHIS2 platform.
We chose the task : Messaging and integration with Facebook/Twitter
With the following requirements :
“Sharing favorites on Facebook / Twitter, and using fb / twitter api to post DHIS 2 Charts. Add support for sharing favorites of pivot tables, charts and maps to Facebook.
Also Support for 1) adding attachments and 2) embedding images in DHIS2 messages and . Useful for example to attach screenshots when supporting users. This should use the new Web API for file uploads and storage.”
Goal
General
Issue
Sharing favorites (charts/maps/pivot tables) on Twitter and Facebook
Current State
Currently DHIS2 does not have functionality to allow users to share graphics. such as charts, pivot tables and maps.Goal
Create a “easy to use” web interface that allows the user to share their favorite widgets to their friends on social media. Thus he could share his work with other people (outside world) and increase the visibility of DHIS2
Proposed solution
What we would like to implement:
Description : We would like to allow the user to share data from the DHIS2 app on social medias. He could thus share his work with other people (no accociated with DHIS2) and increase the visibility of DHIS2. We would like to encourage the user to share graphs / pivot table / maps on famous social media : Facebook and Twitter.
The following screenshot are schemes of what our solution might look like.
[insert what it would look like + user story]
If a user find it useful to share a graphic / pivot table / map, he can click on the desired share button (Twitter or Facebook)
Implementation (technical point of view)
- Add a share button to each widget present on the dashboard
- Create an image of the widget, with appropriate dimensions (requirements of Facebook and Twitter API)
- Connect the DHIS2 user to the prefered social media account
- Use Facebook/Twitter API to publish this image ( with optional description/hashtags ) on the user’s own social page
Technologies to use: (might change)
- React/Redux (ES2015)
- Twitter SDK (javascript)
- Facebook SDK (javascript)
- DHIS2 API
Embedding images and send attachments to message
Current state
Currently, We can just send text message to each other inside a textarea.
Proposed solution
Adding the opportunity for a user to send filer inside a message. Furthemore, share image on the message section and embedding this image directly to the chat.
User perspective
The user have to click on a button to attach file to a message.
After that it picks his file (local file on computer).
Click on the reply button to send the file.
The other user receives the message with a download link. If the recieved file is an image, a preview will be displayed within the chat service.
Technical implementation
Sender (Write message): Add a button which allows the user to select an attached file or image. In case of an image, create a thumbnail, and attach this to the message. In both cases allow the user to supply a description of the file. The upload should happen in the background (prior to the post action)
Receiver (Read message): If the file is an image, preload the thumbnail, and link it to the full resolution image. Otherwise just print a link to the file within a box that includes the description.
Time schedule
How you are dividing tasks within the group
Screenshots and screen flows
Documented learning during project
Suggested improvements to APIs etc
Link to repository
https://github.com/mariusmu/dhis2-share-app
The respository will be active from September 27th