From db1bab9436069b776e452b3c49fd8b20b9c4b7fc Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 30 Jul 2026 17:49:03 +0000 Subject: [PATCH 01/20] feat(devices): add platform and bundle filters to device table Allow filtering the devices list by platform and/or bundle version so large fleets can be narrowed without exporting data offline. Co-authored-by: Martin DONADIEU --- messages/en.json | 2 + src/components/tables/DeviceTable.vue | 126 +++++++++++++++++- .../functions/_backend/private/devices.ts | 24 +++- .../functions/_backend/utils/cloudflare.ts | 40 ++++++ supabase/functions/_backend/utils/stats.ts | 5 +- supabase/functions/_backend/utils/supabase.ts | 7 + supabase/functions/_backend/utils/types.ts | 2 + .../cloudflare-device-pagination.unit.test.ts | 31 +++++ .../private-analytics-validation.unit.test.ts | 42 ++++++ 9 files changed, 269 insertions(+), 10 deletions(-) diff --git a/messages/en.json b/messages/en.json index afad39e708..3b478397ce 100644 --- a/messages/en.json +++ b/messages/en.json @@ -273,7 +273,9 @@ "production-plugin-device": "Production plugin device", "production-plugin-device-within-7-days": "Production Plugin Device (within 7 days)", "all-billing-cycles": "All billing cycles", + "all-bundles": "All bundles", "all-plans": "All plans", + "all-platforms": "All platforms", "access-required-description": "You don't have access to this section. Ask one of the people below, who can manage it for your organization.", "access-contact-people": "People who can help", "audit-access-required": "Audit log access required", diff --git a/src/components/tables/DeviceTable.vue b/src/components/tables/DeviceTable.vue index cc42124bd9..640c338598 100644 --- a/src/components/tables/DeviceTable.vue +++ b/src/components/tables/DeviceTable.vue @@ -1,7 +1,8 @@