@egovernments/digit-ui-module-core 1.9.15 → 1.9.17-cms

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.17-cms] [29-MAR-2026]
4
+ - **Feature**: WhatsApp notification consent on citizen login/register screen
5
+ - Added WhatsApp consent checkbox on login/register page (before OTP)
6
+ - Checkbox visibility controlled by MDMS `UserPreferencesConfig.enableUserPreferences`
7
+ - Consent state captured during login/register and saved after OTP verification
8
+ - Integrated with `/user-preference/v1/_upsert` API to save consent + preferred language
9
+ - Config-service `/config-service/config/v1/_search` call moved from login screen to post-OTP success
10
+ - Only saves preferences when WhatsApp channel is enabled in config-service `NotificationChannel`
11
+ - Preferred language auto-detected from locale (multiple sources: StoreData, localStorage, sessionStorage)
12
+ - Checkbox displays with proper camel case formatting ("Whatsapp Notifications")
13
+ - Default consent state: unchecked (opt-in required by user)
14
+ - **Code Quality**:
15
+ - Refactored `SelectMobileNumber` component with proper wrapper structure
16
+ - Enhanced `saveUserPreferences` function with multi-source language detection
17
+ - Added multiroot tenant check with dynamic module name resolution (`commonUiConfig`)
18
+ - Improved component spacing and layout for better UX
19
+ - **Fix**:
20
+ - Removed hardcoded `enableUserPreferences = true`, now fetched from MDMS
21
+ - Fixed spacing between input field, checkbox, and email/mobile switch link
22
+
23
+ ## [1.9.16-cms] [25-MAR-2026]
24
+ - **Feature**: Enhanced citizen logout flow to redirect directly to citizen login page
25
+ - **Feature**: Added user type detection (citizen vs employee) for conditional logout redirection behavior
26
+ - **Fix**: Improved logout UX by ensuring citizens land on correct login page after logout
27
+ - **Code Quality**: Applied logout improvements to both StaticCitizenSideBar and TopBarSideBar components
28
+
3
29
  ## [1.9.15] [18-MAR-2026]
4
30
  - Package Publish Core Version 1.9.15
5
31
  - **Feature**: Added preferred language dropdown on citizen profile page, populated from MDMS StateInfo languages