clients/libs/angular/src/auth
Jared Snider 76e0ee1b33
Auth/Innovation/PM-4659 - Device Management - Add Last Activity Date (#19784)
* PM-4659 - Refactor DeviceView and add lastActivityDate to DeviceResponse

Adds lastActivityDate (nullable) to DeviceResponse for backwards compatibility
with older server versions. Cleans up DeviceView by removing the response
sub-property escape hatch and declaring all properties directly on the view.

* PM-4659 - Add PM4516_DevicesLastActivityDate feature flag

Adds feature flag and its DefaultFeatureFlagValue entry (defaults to false).

* PM-4659 - Refactor sort utils: rename, restructure, and add sortDevicesWithActivity

Renames resort-devices.helper.ts to utils/device-sort.utils.ts and renames all
functions (resort → sort). Adds sortDevicesWithActivity with the new sort order:
current session → pending requests → most recently active → first login fallback.
Adds full test coverage for all three exported functions.

* PM-4659 - Add recently active display to device management

Adds 'Recently active' column/row to the device management table and item group
views, gated on the PM4516_DevicesLastActivityDate feature flag. Includes a pure
getDeviceLastActivityDateI18nKey utility that maps last activity dates to i18n
keys using calendar-day comparison in the user's local timezone (Math.round for
DST safety). Adds i18n keys for all activity buckets to web and browser locales.

* PM-4659 - DeviceManagement - split into two sections to play around with refactoring the layout.

* PM-4659 - DeviceManagementItemGroupComp - refactor to meet figma better

* PM-4659 - DeviceManagementTable - fix recent activity sort.

* PM-4659 - Device Management Item Group Comp - add missing margin top

* PM-4659 - Add tech debt todo for device sort

* PM-4659 - Guard against future lastActivityDate due to server clock skew

* PM-4659 - DeviceManagment - RecentActivitySort updated to separate func, updated logic per dicussion with product, and wrote tests for the sort.

* PM-4659 - Tiny clean up items

* PM-4659 - Device Sort - recentlyActiveSortFn - update docs

* PM-4659 - Upsert lastActivityDate and recentlyActiveText when pending auth request arrives for known device

* PM-4659 - Reset table sort to default when a pending auth request arrives

* PM-4659 - getDeviceLastActivityDateI18nKey - add more test scenarios

* PM-4659 - Update recentlyActive i18n keys and messages to use explicit rolling-window labels (Past 7/14/30 days)

* PM-4659 - Show isTrusted status for pending auth request devices in showRecentlyActive block
2026-04-16 13:32:44 -04:00
..
components [PM-32864] Remove local masterkey hash (#19277) 2026-04-09 10:34:03 -04:00
constants feat(AuthRouteConstants): [Auth/PM-27370] Convert auth routes to use constants (#16980) 2025-10-29 19:28:21 -04:00
delete-account-dialog [PM-32919] Migrate DeleteAccountDialog to shared code (#19308) 2026-04-11 07:27:18 +02:00
device-management Auth/Innovation/PM-4659 - Device Management - Add Last Activity Date (#19784) 2026-04-16 13:32:44 -04:00
environment-selector refactor(Auth-Font-Icons): [Auth/PM-31804] Migrate auth font icons to use bit-icon (#18816) 2026-02-23 10:42:02 -05:00
guards Auth/PM-33261 - Multi-client Password Management (new for desktop & extension) (#19289) 2026-03-23 16:47:50 -04:00
login-approval refactor(Auth-Font-Icons): [Auth/PM-31804] Migrate auth font icons to use bit-icon (#18816) 2026-02-23 10:42:02 -05:00
login-via-webauthn [CL-82] rename bit-icon to bit-svg; create new bit-icon component for font icons (#18584) 2026-01-28 11:36:27 -05:00
password-management [PM-31270] New default argon2id in change kdf component (#20058) 2026-04-15 11:58:57 +02:00
services Introduce eslint errors for risky/circular imports (#14804) 2025-05-23 08:01:25 -04:00