feat: Implement legal sections for Terms of Service and Privacy Policy, including navigation and content loading

This commit is contained in:
Achintha Isuru
2026-02-18 14:40:38 -05:00
parent 369151ee29
commit abf50796fa
17 changed files with 567 additions and 113 deletions

View File

@@ -298,6 +298,20 @@ extension StaffNavigator on IModularNavigator {
pushNamed(StaffPaths.privacySecurity);
}
/// Navigates to the Terms of Service page.
///
/// Display the full terms of service document in a dedicated page view.
void toTermsOfService() {
pushNamed(StaffPaths.termsOfService);
}
/// Navigates to the Privacy Policy page.
///
/// Display the full privacy policy document in a dedicated page view.
void toPrivacyPolicy() {
pushNamed(StaffPaths.privacyPolicy);
}
// ==========================================================================
// MESSAGING & COMMUNICATION
// ==========================================================================

View File

@@ -215,6 +215,16 @@ class StaffPaths {
/// and privacy policy.
static const String privacySecurity = '/worker-main/privacy-security/';
/// Terms of Service page.
///
/// Display the full terms of service document.
static const String termsOfService = '/worker-main/privacy-security/terms/';
/// Privacy Policy page.
///
/// Display the full privacy policy document.
static const String privacyPolicy = '/worker-main/privacy-security/policy/';
// ==========================================================================
// MESSAGING & COMMUNICATION (Placeholders)
// ==========================================================================