Skip to content

feat: update apsara to 1.0.0-rc.6#1594

Merged
rohanchkrabrty merged 3 commits into
mainfrom
update-sdk-to-apsara-latest
May 12, 2026
Merged

feat: update apsara to 1.0.0-rc.6#1594
rohanchkrabrty merged 3 commits into
mainfrom
update-sdk-to-apsara-latest

Conversation

@rohanchkrabrty
Copy link
Copy Markdown
Contributor

@rohanchkrabrty rohanchkrabrty commented May 9, 2026

Summary

  • Bump @raystack/apsara-v1 alias to @raystack/apsara@1.0.0-rc.6 in the SDK package.
  • Migrate InputField usages across views-new (auth, billing, profile, projects, security, members, teams, tokens, PATs, create-organization, general) to the new Field + Input composition exposed by Apsara v1.
  • Refactor pat-form-dialog's Select.Value render so visible/remaining chip computation lives outside the render prop, matching the updated Select API.
  • Loosen convertFilterValue in transform-query.ts to accept unknown and stringify non-primitive values safely.
  • rc.6 audit: no further code changes required — its breaking changes are default-value flips (AlertDialog.showCloseButton → false, Tabs.size → medium, Select.align → bottom-start, Toast offset 24px) that match existing SDK usage patterns; additive props (onValueChange on Input/Search/TextArea, render on Link) are non-breaking.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontier Ready Ready Preview, Comment May 12, 2026 5:53am

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 9, 2026

Review Change Stack
No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 96421a93-f907-45f2-8e9f-b5b21286be8e

📥 Commits

Reviewing files that changed from the base of the PR and between 8e80753 and 3853b3b.

⛔ Files ignored due to path filters (1)
  • web/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • web/sdk/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • web/sdk/package.json

📝 Walkthrough

Summary by CodeRabbit

  • Chores

    • Updated design system dependency to the latest release candidate.
    • Replaced legacy input components with the new Field + Input composition across many forms for consistent behavior.
  • Style

    • Adjusted text rendering and fixed accessibility attributes for improved semantics and clarity.

Walkthrough

Bumps the @raystack/apsara-v1 alias to rc.6, generalizes a query-transform util, and replaces many InputField usages with Field+Input or Input across SDK views; also tweaks some Text renderings and a chip accessibility prop.

Changes

Apsara v1 Dependency & Component Migration

Layer / File(s) Summary
Dependency & Type Generalization
web/sdk/package.json, web/sdk/react/utils/transform-query.ts
Updates @raystack/apsara-v1 alias to npm:@raystack/apsara@1.0.0-rc.6. convertFilterValue now accepts unknown and uses String(value) for non-null inputs while mapping null/undefined to empty string.
Auth Views: InputField → Input / Field+Input
web/sdk/react/views-new/auth/magic-link/*, web/sdk/react/views-new/auth/magic-link-verify/*, web/sdk/react/views-new/auth/subscribe/*
Replaces OTP/email/contact inputs with Input or Field+Input and updates imports; preserves register() bindings and error display.
Organization & Team Management: InputField → Field+Input
web/sdk/react/views-new/create-organization/..., web/sdk/react/views-new/general/..., web/sdk/react/views-new/teams/..., web/sdk/react/views-new/general/components/delete-organization-dialog.tsx
Refactors org and team forms to use Field wrappers with nested Input, keeping validation/error wiring and placeholders.
Project Management: InputField → Field+Input
web/sdk/react/views-new/projects/components/add-project-dialog.tsx, web/sdk/react/views-new/projects/components/edit-project-dialog.tsx
Migrates project title/name inputs to Field+Input while preserving form registration and error messages.
Security & Domain Management: InputField → Field+Input / Input
web/sdk/react/views-new/security/components/add-domain-dialog.tsx, .../delete-domain-dialog.tsx, .../verify-domain-dialog.tsx
Switches domain and token display controls to Field+Input or Input, preserving register, read-only/copy behavior, and validation mapping.
Service Accounts & Tokens: InputField → Field+Input
web/sdk/react/views-new/service-accounts/*, web/sdk/react/views-new/tokens/*
Converts service-account and token inputs to Field+Input, moving helper text/errors into Field while keeping numeric input/paste handling intact.
PAT Management: InputField → Field+Input & Logic Refactor
web/sdk/react/views-new/pat/components/*
Migrates PAT name/token inputs to Field+Input, refactors projectIds multi-select render to explicit selected/visible/remaining computation, and fixes chip aria-label prop.
Profile & Members: InputField → Field+Input
web/sdk/react/views-new/profile/*, web/sdk/react/views-new/members/*
Migrates profile form fields and member invite input to Field+Input or Field-wrapped TextArea, preserving validation and form behavior.
Billing & Plans UI Text Refinement
web/sdk/react/views-new/billing/*, web/sdk/react/views-new/plans/*, web/sdk/react/views-new/members/components/member-columns.tsx
Removes as="span" from nested Text components used as labels and adjusts pending-invite text rendering to use styled Text directly.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • raystack/frontier#1515: Both PRs modify the SDK's dependency on @raystack/apsara-v1 (this PR bumps to rc.6; that PR added the alias previously).
  • raystack/frontier#1518: Overlaps on billing components; both touch billing dialog files and label rendering.
  • raystack/frontier#1574: Related edits to service-account dialog and imports.

Suggested reviewers

  • rsbh
🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
web/sdk/react/views-new/billing/components/upcoming-billing-cycle.tsx (1)

174-202: ⚠️ Potential issue | 🔴 Critical | ⚡ Quick win

Fix invalid HTML structure: nested <p> elements created by removing as="span".

The code nests Text components without the as prop at lines 174, 191, 196, and 202. Since Apsara's Text component defaults to rendering as a <p> element, these changes produce invalid HTML: <p><p>Label</p></p>.

To fix, either:

  1. Add as="span" back to the inner Text elements (labels), or
  2. Add as="div" to the outer Text elements.

The pattern appears in all four label/value sections (Plan, Next billing, Users, Amount).

🧹 Nitpick comments (1)
web/sdk/react/utils/transform-query.ts (1)

25-25: ⚡ Quick win

Consider documenting the unknown parameter type.

The widening from a specific union to unknown reduces compile-time type safety. Since the function now accepts any value, it would be helpful to document what types are expected in practice and how non-primitive types are handled (converted via String()).

📝 Suggested JSDoc addition
 /**
  * Converts a filter value to the appropriate RQLFilter value format
+ * `@param` value - Filter value of any type; primitives (boolean, number, string) are 
+ *                preserved with type information, while objects/arrays are stringified
  */
 function convertFilterValue(value: unknown): RQLFilter["value"] {

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 43db9027-729f-43c1-8271-d759544e9a0d

📥 Commits

Reviewing files that changed from the base of the PR and between 65953a6 and 8e80753.

⛔ Files ignored due to path filters (1)
  • web/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (27)
  • web/sdk/package.json
  • web/sdk/react/utils/transform-query.ts
  • web/sdk/react/views-new/auth/magic-link-verify/magic-link-verify-view.tsx
  • web/sdk/react/views-new/auth/magic-link/magic-link-view.tsx
  • web/sdk/react/views-new/auth/subscribe/subscribe-view.tsx
  • web/sdk/react/views-new/billing/components/confirm-cycle-switch-dialog.tsx
  • web/sdk/react/views-new/billing/components/upcoming-billing-cycle.tsx
  • web/sdk/react/views-new/create-organization/create-organization-view.tsx
  • web/sdk/react/views-new/general/components/delete-organization-dialog.tsx
  • web/sdk/react/views-new/general/general-view.tsx
  • web/sdk/react/views-new/members/components/invite-member-dialog.tsx
  • web/sdk/react/views-new/members/components/member-columns.tsx
  • web/sdk/react/views-new/pat/components/pat-created-dialog.tsx
  • web/sdk/react/views-new/pat/components/pat-form-dialog.tsx
  • web/sdk/react/views-new/pat/components/pat-project-chips.tsx
  • web/sdk/react/views-new/plans/components/confirm-plan-change-dialog.tsx
  • web/sdk/react/views-new/profile/profile-view.tsx
  • web/sdk/react/views-new/projects/components/add-project-dialog.tsx
  • web/sdk/react/views-new/projects/components/edit-project-dialog.tsx
  • web/sdk/react/views-new/security/components/add-domain-dialog.tsx
  • web/sdk/react/views-new/security/components/delete-domain-dialog.tsx
  • web/sdk/react/views-new/security/components/verify-domain-dialog.tsx
  • web/sdk/react/views-new/service-accounts/components/add-service-account-dialog.tsx
  • web/sdk/react/views-new/service-accounts/components/add-token-form.tsx
  • web/sdk/react/views-new/teams/components/add-team-dialog.tsx
  • web/sdk/react/views-new/teams/components/edit-team-dialog.tsx
  • web/sdk/react/views-new/tokens/components/add-tokens-dialog.tsx

Comment thread web/sdk/package.json Outdated
Comment thread web/sdk/react/utils/transform-query.ts
@coveralls
Copy link
Copy Markdown

coveralls commented May 9, 2026

Coverage Report for CI Build 25716229773

Coverage remained the same at 41.985%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 37268
Covered Lines: 15647
Line Coverage: 41.99%
Coverage Strength: 11.88 hits per line

💛 - Coveralls

@rohanchkrabrty rohanchkrabrty changed the title feat: update apsara to 1.0.0-rc.5 feat: update apsara to 1.0.0-rc.6 May 12, 2026
@rohanchkrabrty rohanchkrabrty enabled auto-merge (squash) May 12, 2026 06:05
@rohanchkrabrty rohanchkrabrty disabled auto-merge May 12, 2026 06:05
@rohanchkrabrty rohanchkrabrty enabled auto-merge (squash) May 12, 2026 06:05
@rohanchkrabrty rohanchkrabrty merged commit f4f6919 into main May 12, 2026
8 checks passed
@rohanchkrabrty rohanchkrabrty deleted the update-sdk-to-apsara-latest branch May 12, 2026 06:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants