You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Web-Dev-For-Beginners/translations/en/7-bank-project/4-state-management/assignment.md

2.8 KiB

Implement "Add transaction" dialog

Instructions

Our banking app is still missing a key feature: the ability to add new transactions.
Using everything you've learned in the previous four lessons, implement an "Add transaction" dialog:

  • Add an "Add transaction" button to the dashboard page.
  • Either create a new page with an HTML template or use JavaScript to show/hide the dialog HTML without leaving the dashboard page (you can use the hidden attribute for this, or CSS classes).
  • Ensure you address keyboard and screen reader accessibility for the dialog.
  • Implement an HTML form to collect input data.
  • Convert the form data into JSON and send it to the API.
  • Update the dashboard page with the new data.

Refer to the server API specifications to identify the API you need to call and the expected JSON format.

Here's an example of the result after completing the task:

Screenshot showing an example "Add transaction" dialog

Rubric

Criteria Outstanding Satisfactory Needs Improvement
Adding a transaction is fully implemented, adhering to all best practices covered in the lessons. Adding a transaction is implemented but does not fully follow the best practices covered in the lessons or works only partially. Adding a transaction does not work at all.

Disclaimer:
This document has been translated using the AI translation service Co-op Translator. While we strive for accuracy, please note that automated translations may contain errors or inaccuracies. The original document in its native language should be regarded as the authoritative source. For critical information, professional human translation is recommended. We are not responsible for any misunderstandings or misinterpretations resulting from the use of this translation.