{"id":23894518,"url":"https://github.com/itsaladin/transaction-list","last_synced_at":"2025-02-23T06:25:54.043Z","repository":{"id":197860526,"uuid":"699522605","full_name":"itsaladin/transaction-list","owner":"itsaladin","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-02T20:03:26.000Z","size":616,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T14:59:27.558Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/itsaladin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-02T19:54:47.000Z","updated_at":"2023-10-02T19:55:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"45c8af2f-fafa-43bd-be81-b2692b17278a","html_url":"https://github.com/itsaladin/transaction-list","commit_stats":null,"previous_names":["itsaladin/transaction-list"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsaladin%2Ftransaction-list","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsaladin%2Ftransaction-list/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsaladin%2Ftransaction-list/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itsaladin%2Ftransaction-list/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itsaladin","download_url":"https://codeload.github.com/itsaladin/transaction-list/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240278598,"owners_count":19776097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-04T14:59:29.168Z","updated_at":"2025-02-23T06:25:54.021Z","avatar_url":"https://github.com/itsaladin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native: Transactions List\n\n## Environment \n\n- Default Port: 8000\n\n## Application:\n![](https://hrcdn.net/s3_pub/istreet-assets/qADXyZlRiPYYkqsQ62EKdQ/transactions-list.gif)\n\n## Functionality Requirements\nComplete the implementation of the app according to the following requirements:\n\n- The `Transactions` component takes an array of transactions as a prop. Each element of this array denotes a single transaction and is an object with the following shape:\n```json5\n{\n   \"id\": 42,\n   \"date\": \"30-01-2019\",\n   \"txnType\": \"credit\",\n   \"amount\": \"$2,084.06\",\n   \"location\": {\n     \"id\": 6,\n     \"address\": \"206, Portaline, Brooklyn Avenue\",\n     \"city\": \"Brownlee\",\n     \"zipCode\": 80358\n   }\n}\n```\n- The list of transactions is taken from `src/transactions.json` and should be used to pass the data around.\n- The possible values for txnType are `credit` and `debit`.\n- Each transaction is rendered by the `TransactionItem` component which takes an individual transaction as a prop.\n- In the `Transactions` component, use the `FlatList` component of React Native to render a list of transactions. Each transaction in the array must be rendered as a `TransactionItem` component.\n- Complete the `TransactionItem` component by providing the address, city, amount, and date of each transaction.\n- The `Header` component contains a list of 3 buttons for filtering the data present in the list below. Clicking on each button should filter the transactions defined as below:\n  - All Button: Display all the transactions\n  - Credit Button: Display all the transactions that have the txnType set to 'credit'.\n  - Debit Button: Display all the transactions that have the txnType set to 'debit'.\n- The `Header` component accepts transaction type denoting the currently active filter of transactions. This is used purely for styling purposes.\nYou can assume that the passed transactions array contains at least one transaction.\n\n## Testing Requirements\n- Each transaction item must have testID=\"transaction-item\"\n- Each transaction's address must be rendered as a \u003cText\u003e element with testID=\"address\".\n- Each transaction's city name must be rendered as a \u003cText\u003e element with testID=\"city\".\n- Each transaction's amount rating must be rendered as a \u003cText\u003e element with testID=\"amount\".\n- Each transaction's date count must be rendered as a \u003cText\u003e element with testID=\"date\".\n- The debit filter button must have testID=\"debit-button\".\n- The credit filter button must have testID=\"credit-button\".\n- The all filter button must have testID=\"all-button\".\n\n\n## Project Specifications\n\n**Read Only Files**\n- `__tests__/*`\n\n**Commands**\n- run: \n```bash\nnpm start\n```\n- install: \n```bash\nnpm install\n```\n- test: \n```bash\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsaladin%2Ftransaction-list","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitsaladin%2Ftransaction-list","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitsaladin%2Ftransaction-list/lists"}