Update Session08 Frontend.md

final version before formatting
This commit is contained in:
Amin
2025-07-08 19:53:08 +03:30
committed by GitHub
parent d812bbd94f
commit 64e1105528
@@ -54,8 +54,9 @@ const Profile = {
- [ ] Add empty pages/tabs for: - [ ] Add empty pages/tabs for:
- [ ] `ProfileSummary` - [ ] `ProfileSummary`
- [ ] - [ ] `MyTravels` - [ ] `MyTravels`
- [ ] `MyTransactions` - [ ] `MyTransactions`
- [ ] `MyPeople`
- [ ] Implement `ProfilePage` using the components created. This is an example of how it can be done: - [ ] Implement `ProfilePage` using the components created. This is an example of how it can be done:
```ts ```ts
@@ -185,13 +186,48 @@ export default AppRoutes;
- [ ] Implement the process of showing and editing the data. To do so, you can use modal components and set their functionality in the pages. - [ ] Implement the process of showing and editing the data. To do so, you can use modal components and set their functionality in the pages.
## 🧍 List of Travelers ## 🧍 List of Travelers
- [ ] Implement `ListOfTravelers` page for showing, editing, and adding new people - [ ] Implement `ListOfTravelers` page for showing, editing, and adding new people. You can use the same modal used for `UpsertAccountPerson`.
## 💳 Transactions Module ## 💳 Transactions Module
- [ ] Add `TransactionDto` model - [ ] Add `TransactionDto` model
```ts
export interface TransactionDto {
id: number;
transactionTypeId: number;
accountId: number;
ticketOrderId?: number;
baseAmount: number;
finalAmount: number;
serialNumber: string;
createdAt: Date | string;
description?: string;
transactionType: string;
}
```
- [ ] Implement `MyTransactions` page - [ ] Implement `MyTransactions` page
Note: It is recommended to add a component to be displayed as a card, including the table of information, then use it in the page of MyTransactions
## 🚆 Travel Module ## 🚆 Travel Module
- [ ] Add `TicketOrderSummaryDto`, `TravelerTicketDto` models - [ ] Add `TicketOrderSummaryDto` model
- [ ] Implement `MyTravels` page ```ts
- [ ] Implement `TravelOrderDetailsPage` export interface TicketOrderSummaryDto {
id: number;
serialNumber: string;
boughtAt: Date | string;
price: number;
travelStartDate: Date | string;
travelEndDate: Date | string;
fromCity: string;
toCity: string;
companyName: string;
vehicleTypeId: number;
vehicleName: string;
}
```
- [ ] Implement `MyTravels` page. Note that this page can be similarly implemented by a card.