Open d47853 opened 5 years ago
An MVP for the UI app should fulfil the following criteria:
Hi - I'll claim this one please.
I'll start on the "As a user, I can see a list of the graphs I can access" user story you've listed. So have a few questions before starting so I'll group them below as how the UI connects to the backend and how to present the data.
Endpoints
What will the request and response look like? I can add a RAML or some form of documentation for what they should look like when the UI calls the backend. Or some other solution to provide a contract for the UI to stick to and ensure it connects nicely with the backend.
getAll() API Responses - What will each response body look like for the following scenarios?:
Will Admin and Any Generic User share the same API getAll() graph response body? i.e. the graph objects returned in response body be the same objects
Presentation
Is the name of the UI App going to be Kai also? - Or Graph-as-a-Service, as named in the README.md?
For each graph, what data should be presented to the User? e.g. Name & Description, or other data
Would both Admin and Generic User view the graphs in the same way (i.e. share the same presentation logic) - or will data be hidden - or different object structure?
For API errors returned, I can put a simple notification that appears at the top of the page (this can be added as another Issue later for a more enhance complex presentation) - is it ok to do this for now?
CSS/styling - I've seen you've worked on another app called Gaffer alongside this one - I can copy the CSS and design similar styling as that app - let me know if this is ok too
Hi .. I am working on to setup React project for UI I found entry point will be graph.js in lambdas, so do I need to defined
module.exports = { entry: './path/.../graph.js' };
in webpack.config.js ?
Hi @jpelbertrios
Going forward, we're moving the project back to a Typescript layout (see #19). That file was just a placeholder for where we might put Lambda functions associated with the REST API so I don't think so.
Hopefully moving to a Typescript project will mean an easier integration between the UI and the Infrastructure as Code backend.
Add a dynamic SPA which will allow users to provision and manage their Graph instances. It should use some kind of UI framework to make it easier to deliver features in the future. This should probably be either React or Angular.