refactor: dynamicize agent profile section labels using provider-based slug mapping

This commit is contained in:
pradeepkumar
2026-04-15 16:50:35 +05:30
parent 4bab9c06a7
commit 39231d5ca4
3 changed files with 46 additions and 28 deletions

View File

@@ -312,6 +312,22 @@ class AgentDetailState {
String get bestExperienceLabel =>
_labelForSlug('best_experience', 'Best Experience');
// Experience section labels (matches web mapFieldValuesToExperience)
String get yearsInExperienceLabel =>
_labelForSlug('years_in_business', 'Years in Experience');
String get contractsClosedLabel =>
_labelForSlug('contracts_completed', 'Number of contracts closed');
String get licensingAreasLabel =>
_labelForSlug('licensed_areas', 'Licensing & Areas');
String get expertiseYearsLabel =>
_labelForSlug('expertise_areas', 'Areas in expertise & Years');
String get certificationsLabel =>
_labelForSlug('certification_entries', 'Certifications');
// ── Availability ──
String get availabilityType {