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:
@@ -5,9 +5,9 @@ import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
part 'lot.freezed.dart';
|
||||
part 'lot.g.dart';
|
||||
|
||||
// AI-NOTE (for PR reviewer): New model for entries in the tender-details
|
||||
// `lots` array. Only lot_id, title and description are mapped — the fields the
|
||||
// tender-details "Lots" section renders. Add more fields here if the UI grows.
|
||||
// Model for entries in the tender-details `lots` array. Only lot_id, title and
|
||||
// description are mapped — the fields the tender-details "Lots" section renders.
|
||||
// Add more fields here if the UI grows.
|
||||
@freezed
|
||||
abstract class Lot with _$Lot {
|
||||
const factory Lot({
|
||||
|
||||
Reference in New Issue
Block a user