Skip to content

Latest commit

 

History

History
96 lines (59 loc) · 3.68 KB

README_spec.md

File metadata and controls

96 lines (59 loc) · 3.68 KB

Peachtree Bank: Make a Transaction

Purpose

The purpose of this test is to showcase your frontend development skills and your knowledge of modern frontend frameworks and best practices. Please read the full requirements before starting your assignment. We ask you to focus on implementing user stories completely and keep the implementation simple.

Brief description

For this assignment you will need to create a single page application in Angular according to the provided designs and requirements.

The high level requirement is to transfer money from an account and showing past transactions in a historical list.

Requirements

  1. To assist you with the following requirements, we provide a UI components library. You will need to use this library where specified in the user stories.
  2. Do not make any changes to the UI components library.
  3. Read all user stories carefully and implement them as per the acceptance criteria.

Good luck!

User story #1

As a product owner, I should see a consistent layout where I can view the header with my bank's logo and the footer.

Acceptance criteria:

  1. Final layout should match with the designs provided
  2. Header and footer should be visible with the Peachtree Bank logo
  3. Use UI components (logo and footer)

User story #2

As a user, I should be able to transfer money from my account using a Transfer Money Form.

Acceptance criteria:

  1. Final layout should match with the designs provided

  2. "From account" field should be prefilled with my account details and disabled.

  3. There should not be any validations on "To account" input field except it is a mandatory field.

  4. Following field validations should exist on "Amount" input field

    a. It is a mandatory field

    b. Negative numbers are not allowed

    c. Decimals are permitted

    b. It should not allow amount below the total balance of -€500

  5. Submitting form should open a modal to review transfer(check User Story #3).

  6. Use UI Component (submit button)

User story #3

As a user, I should be able to review my transfer before submitting it.

Acceptance criteria:

  1. Final layout should match with the designs provided
  2. Modal should close when a user submits the transfer or cancels it.
  3. Submitting transfer should successfully make a transfer and update the transactions list
  4. Input fields should be reset to their original state after successfully submitting the transfer.
  5. Cancelling a transfer should not reset the transfer form.

User story #4

As a user, I should be able to view a list of historical transactions in an ordered list.

Acceptance criteria:

  1. Final layout should match with the designs provided
  2. You should fetch the initial list of transactions from this location
  3. Use the attached mock JSON data as an alternative if the above location is unavailable
  4. Transactions list should be sorted by date in descending order
  5. Use UI Component (transaction-item)

User story #5

As a user, I should be able to filter my transactions based on merchant name.

Acceptance criteria:

  1. Final layout should match with the designs provided
  2. Filtering should be done only by merchant name
  3. Creating a new transfer should not alter the state of filter i.e if I make a transfer, it should automatically reflect in the filtered list(if applicable)
  4. Use UI Component (filter)

Tech Spike

As a developer, I want to have unit tests & linting in place.

Acceptance criteria:

  1. Use Angular's OOTB lint configuration
  2. Should add unit tests for custom logic(components, services or pipes) added
  3. Make sure all tests are running successfully