Refactor tender detail models and UI components for improved clarity and functionality
- Updated the `Lot`, `Organization`, and `OrganizationAddress` models to enhance data mapping for tender details. - Revised the `TenderData` model to include additional fields reflecting the API response structure. - Improved UI components across desktop, mobile, and tablet views by commenting out unused sections for future use. - Added new string constants for lot details in the tender information section. - Enhanced unit tests to cover new model fields and ensure resilience to partial API payloads.
This commit is contained in:
@@ -51,10 +51,6 @@ void main() {
|
||||
expect(feedback.tender?.buyerOrganization?.name, 'Buyer Org');
|
||||
});
|
||||
|
||||
// AI-NOTE (for PR reviewer): These TenderData/Organization literals were
|
||||
// updated only to satisfy the new required fields added to those models
|
||||
// (notice_type_code, form_type, issue_date/time, lots, official_languages,
|
||||
// company_id, address). Test assertions/behavior are unchanged.
|
||||
test('toJson should return valid JSON map', () {
|
||||
final tender = const TenderData(
|
||||
success: true,
|
||||
|
||||
Reference in New Issue
Block a user