fix(admin): update sort key name case as api response by rsbh · Pull Request #1443 · raystack/frontier

📝 Walkthrough

Summary by CodeRabbit

  • Refactor

    • Standardized internal field naming and import formatting across multiple admin list and detail views to improve consistency.
    • Default sort behavior remains by creation date (descending); user-facing ordering unchanged.
  • Chores

    • Bumped a transitive dependency to a newer patch release.

Walkthrough

Standardizes default sort field names from snake_case to camelCase across several admin list/detail views (e.g., created_atcreatedAt). Members view also reorganizes imports and renames org_joined_atorgJoinedAt. Dependency @raystack/apsara bumped in two package.json files. No exported/public APIs changed.

Changes

Cohort / File(s) Summary
Sort field standardization
web/sdk/admin/views/organizations/details/apis/index.tsx, web/sdk/admin/views/organizations/details/invoices/index.tsx, web/sdk/admin/views/organizations/details/tokens/index.tsx, web/sdk/admin/views/organizations/list/index.tsx, web/sdk/admin/views/users/list/list.tsx
Changed DEFAULT_SORT name from snake_case (created_at) to camelCase (createdAt) while keeping order: 'desc'. Relies on existing transform/mapping for backend field names.
Members view reorganization
web/sdk/admin/views/organizations/details/members/index.tsx
Reordered and normalized imports (single-quote style); renamed sort key from org_joined_at to orgJoinedAt and updated TRANSFORM_OPTIONS mapping accordingly.
Projects view import tweaks
web/sdk/admin/views/organizations/details/projects/index.tsx
Adjusted import formatting and quote styles (consolidated useInfiniteQuery import); changed DEFAULT_SORT from created_at to createdAt.
Dependency bumps
web/apps/admin/package.json, web/sdk/package.json
Updated @raystack/apsara version from 0.56.50.56.6 in affected package.json files.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested reviewers

  • paanSinghCoder
  • rohilsurana

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.