Commit Graph

48 Commits

Author SHA1 Message Date
AmirReza Jamali dde66521f6 Add Docker support and enhance data models for tender details
- Introduced a .dockerignore file to optimize Docker builds by excluding unnecessary files.
- Updated the Dockerfile to use a Flutter base image, enabling web builds for the application.
- Added new data models for `Lot` and `OrganizationAddress` to represent tender details more accurately.
- Enhanced the `Organization` model to include `companyId` and a nested `address` field.
- Updated the `TenderData` model to include new fields such as `noticeTypeCode`, `formType`, and `lots`, reflecting the API response structure.
- Regenerated necessary code for data models to ensure compatibility with the updated structures.
2026-06-03 13:32:42 +03:30
AmirReza Jamali e6b4720dcd Update iOS deployment target to 13.0, enhance Flutter integration, and improve tender submission flow
- Changed the iOS deployment target from 12.0 to 13.0 in Podfile and project settings.
- Updated AppDelegate to support implicit Flutter engine initialization.
- Modified Info.plist to include scene configuration for multiple scenes.
- Enhanced CompletionOfDocumentsRouteData to accept a tenderId parameter.
- Implemented tender submission functionality in TenderDetailViewModel and updated UI components to reflect loading states and success/error messages.
- Added new strings for submission success and error notifications.
2026-05-30 16:48:05 +03:30
AmirReza Jamali 35af3e94ea Add liked tenders functionality to HomeRepository and ViewModel
- Integrated LikedTendersService into HomeRepository to fetch the count of user-liked tenders.
- Updated HomeViewModel to load and manage the userLikedTendersCount.
- Adjusted UI components across home pages to display the liked tenders count.
- Refactored date handling in date_utils.dart to improve timestamp parsing and validation.
- Enhanced unit tests for date utilities to cover new edge cases.
2026-05-24 18:23:37 +03:30
AmirReza Jamali 2515190576 Refactor date handling in tender data model and UI components. Added unixTimestampFromJson for parsing timestamps and updated timeConvertor to handle null values. Updated relevant model fields and UI to use the new parsing logic. Added unit tests for date utilities. 2026-05-24 15:28:47 +03:30
amirrezaghabeli acd2a62b22 Add 'Add Partnership' button to completion of documents pages
- Introduced a new button labeled 'Add Partnership' on the desktop, mobile, and tablet versions of the Completion of Documents pages.
- The button is styled with a primary color background and rounded corners for improved UI consistency.
2025-10-27 13:52:19 +03:30
amirrezaghabeli de659ca9cf Add clock asset and enhance meeting time dialogs
- Added a new clock icon asset to the AssetsManager.
- Updated MeetingTimeBottomSheet and MeetingTimeDialog to include a close button for better user experience.
- Introduced MeetingTimeSuccessfulRegisteredBottomSheet and MeetingTimeSuccessfulRegisteredDialog for confirming meeting time registration.
- Refactored submission dialogs to improve layout and interaction consistency.
2025-10-27 13:22:51 +03:30
amirrezaghabeli 38222afcfa Enhance authentication flow and user role management
- Updated AuthViewModel to hydrate user data from storage on initialization.
- Added method to AuthRepository for retrieving stored customer data.
- Enhanced AuthService to save and retrieve customer data from SharedPreferences.
- Refactored UI components to use context.watch for user role updates in MeetingTimeDialog, TenderDetailActions, and TendersPage.
- Improved navigation logic in final completion pages to handle user interactions more effectively.
2025-10-14 12:24:04 +03:30
amirrezaghabeli cc16d28195 Implement role-based navigation in MeetingTimeDialog
- Added user role retrieval from AuthViewModel in MeetingTimeDialog.
- Updated navigation logic to conditionally push routes based on user role (admin or non-admin) when confirming meeting time.
2025-10-14 10:24:06 +03:30
amirrezaghabeli 13dbb5fae5 Enhance Customer model to include role attribute and update related components
- Added a new `role` attribute to the `Customer` model in `customer.dart` and updated the corresponding generated files.
- Modified the `AuthViewModel` to set the user role based on the logged-in user's role.
- Updated UI components in `TenderDetailActions` and `DesktopTendersPage` to conditionally render elements based on the user's role.
- Refactored tests to validate the new role attribute in the `Customer` model.
2025-10-14 09:12:24 +03:30
amirrezaghabeli f0cbe00b2f Update dependencies, enhance API endpoints, and refactor UI components
- Updated `pubspec.lock` to new package versions for `async`, `fake_async`, `leak_tracker`, and `vm_service`.
- Modified API endpoint for unread notifications to include `event_type=PUSH`.
- Refactored `CompletionOfDocumentsMobilePage` layout for improved structure.
- Simplified `DetailDropDown` widget by removing unnecessary animations.
- Updated `CommentBox` styling and adjusted padding for better UI consistency.
- Replaced deprecated `FormCard` implementation in final completion pages with a new widget structure.
- Enhanced button styles across various dialogs and pages for a cohesive design.
2025-10-13 16:10:18 +03:30
a.ghabeli 2c5db7f297 Merge pull request 'added web tablet pages' (#214) from completion_of_documents into main
Reviewed-on: https://repo.ravanertebat.com/TM/tm_app/pulls/214
2025-10-13 14:52:20 +03:30
amirrezaghabeli 919b9fb2ed Refactor completion of documents routing and UI components
- Removed unused mobile route for completion of documents.
- Updated app routes to reflect the removal of the mobile route.
- Enhanced the desktop and mobile pages for completion of documents with improved layout and added TabletDesktopAppbar.
- Introduced meeting time handling in TenderDetailActions, integrating new bottom sheet and dialog components for better user interaction.
- Added meeting time state management in TenderDetailViewModel.
- Cleaned up deprecated files related to meeting time selection.
2025-10-13 14:51:39 +03:30
llsajjad be6b0bbe98 added web tablet pages 2025-10-13 11:54:23 +03:30
amirrezaghabeli 495e2db384 Modified TenderDetailHeader to conditionally display the estimated value container based on its presence 2025-10-12 15:36:02 +03:30
amirrezaghabeli 56620d4c1b tender detail changes 2025-10-04 10:37:49 +03:30
amirrezaghabeli 92c759b6c6 fixed rest of the bugs 2025-09-30 12:37:54 +03:30
amirrezaghabeli fc925f7b84 fixed bugs 2025-09-30 11:12:17 +03:30
amirrezaghabeli 7b50d7da1e price extension added 2025-09-28 09:05:26 +03:30
amirrezaghabeli c421f85c95 cleared console problems 2025-09-16 08:36:03 +03:30
llsajjad 27f4fb74c9 added new design for CompletionOfDocumentsMobilePage and dialog 2025-09-15 16:25:01 +03:30
amirrezaghabeli 118a823f1c fixed rported jira issues 2025-09-14 12:08:39 +03:30
amirrezaghabeli 7462d71b33 show eu flag if it is empty 2025-09-14 11:52:59 +03:30
llsajjad ddd464c2c2 replace unixToDate to timeConvertor 2025-09-13 12:59:47 +03:30
amirrezaghabeli ffbc11d4cf removed country flags package and read flags from server and implement svg cahce structure 2025-09-11 11:04:29 +03:30
amirrezaghabeli d56261b664 strings check 2025-09-08 12:54:27 +03:30
amirrezaghabeli f6da74f739 removed hardcoded status feedback and submission mode 2025-09-08 12:22:08 +03:30
amirrezaghabeli 5649634464 some changes and fixes 2025-09-06 13:18:12 +03:30
amirrezaghabeli cab78c8f4d added string for every screen and removed from app strings 2025-09-01 17:50:51 +03:30
amirrezaghabeli e7950cd3fc detail refactor 2025-08-27 13:59:47 +03:30
amirrezaghabeli 0b2825f836 profile refactor 2025-08-27 13:30:09 +03:30
amirrezaghabeli bcd499843b fixed services 2025-08-27 13:03:09 +03:30
amirrezaghabeli 89668fd2f1 submission dialog for tablet and web 2025-08-27 09:05:18 +03:30
amirrezaghabeli 18834e492d fix web bug and navigations 2025-08-27 07:38:09 +03:30
amirrezaghabeli 4f07facbb8 tablet navigation bar fixed 2025-08-26 14:58:06 +03:30
amirrezaghabeli f964186a87 some changes navigation in web and response changes 2025-08-26 12:22:42 +03:30
amirrezaghabeli 14ab9a75ca check web and tablet for logic 2025-08-23 15:22:28 +03:30
amirrezaghabeli ae537f3ca0 fixed laoding button 2025-08-23 08:51:01 +03:30
amirrezaghabeli 47edc00b97 home and tender change 2025-08-22 09:30:02 +03:30
amirrezaghabeli 4b51071aad merge branches 2025-08-20 13:11:22 +03:30
amirrezaghabeli 93e4e81ca0 location flags 2025-08-19 10:20:34 +03:30
amirrezaghabeli 36f66bfca5 merge branches 2025-08-18 08:28:18 +03:30
amirrezaghabeli 86f0f03392 some changes 2025-08-11 10:27:33 +03:30
llsajjad b8d4f38d67 fixed dark theme bugs 2025-08-10 16:33:30 +03:30
llsajjad 31768fe71d added TenderDetailCard to design 2025-08-10 15:17:43 +03:30
llsajjad d0afc23be1 added logic for detail 2025-08-09 19:26:56 +03:30
llsajjad e468ec9c43 Fixed size on web and changed details design button in desktop and tablet 2025-08-09 16:55:29 +03:30
llsajjad 080125b851 fixed colors for darkTheme 2025-08-09 13:13:32 +03:30
llsajjad 111c332f74 added 3 screen mod to detail 2025-08-09 07:54:53 +03:30