feat(badges): extend search result limit to 500 for trusted staff
Trusted users can now step up to 500 results (300 → 400 → 500) via the existing ± stepper. Manager tier continues to 2500 as before. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -46,12 +46,13 @@ let badge_type_code_li = [
|
||||
{ code: 'nonmember', name: 'Non-Member' },
|
||||
];
|
||||
|
||||
// Steps of 25 up to 250, then steps of 100 up to 2500 — tier max enforced by capping the array.
|
||||
// Steps of 25 up to 250, then 300/400/500 for trusted, then 100s up to 2500 for managers.
|
||||
let limit_steps = $derived.by(() => {
|
||||
const small = Array.from({ length: 10 }, (_, i) => (i + 1) * 25); // 25…250
|
||||
const large = Array.from({ length: 23 }, (_, i) => 350 + i * 100); // 350…2500
|
||||
if ($ae_loc.manager_access) return [...small, ...large];
|
||||
if ($ae_loc.trusted_access) return small;
|
||||
const medium = [300, 400, 500]; // trusted max
|
||||
const large = Array.from({ length: 20 }, (_, i) => 600 + i * 100); // 600…2500
|
||||
if ($ae_loc.manager_access) return [...small, ...medium, ...large];
|
||||
if ($ae_loc.trusted_access) return [...small, ...medium];
|
||||
return [25];
|
||||
});
|
||||
let limit_idx = $derived.by(() => {
|
||||
|
||||
Reference in New Issue
Block a user