fnitu / edu-hospice

Application developed for SIIT Challenge Accepted – CODVIDHACK 2020
https://edu-hospice.herokuapp.com
2 stars 2 forks source link

Add dialog for resource creation #63

Closed fnitu closed 3 years ago

fnitu commented 3 years ago

Add dialog for resource creation according to the design: https://www.figma.com/file/71GwXVMHtoBkXwFwMSaSVj/Admin-Adaugare-curs?node-id=0%3A1

Also, please add a button with badge.

fnitu commented 3 years ago

The save action should be done on clicking "Add resource" button: /api/admin/courses/sections/contents/{contentId}/resources

It will be updated to also contain a index property.

The Save button from the dialog should be removed, the "Cancel" button should be replaced with "Close". The result of the operation should be the newly added id.

The newly added resource will be added to the bottom of the list (after a successful save operation) and automatically scrolled to.

Drag and drop will be added in another ticket to re-order the resources.

fnitu commented 3 years ago

For the presentation:

  1. Please update the dialog title: "Content: ". It should also have a subtitle "Resource management".
  2. Please do not send the index property to server, right now the index is server managed.
  3. Please integrate the endpoint for deleting a resource, once it's available.

Nice to have:

  1. URL field validation
  2. Clear input values after adding a new resource
  3. Show the resource URL as a subtitle below the resource name. Only this URL should be clickable,
fnitu commented 3 years ago

Please add ellipsis to long URLs and title attribute.

fnitu commented 3 years ago

Please integrate the DELETE operation (without confirmation) from: /api/admin/courses/sections/contents/resources/{resourceId}/delete

fnitu commented 3 years ago

Issue implemented.