Skip to content

Updates to the pricing page #2067

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Updates to the pricing page #2067

wants to merge 9 commits into from

Conversation

samejr
Copy link
Member

@samejr samejr commented May 16, 2025

The information for the Pro plan now matches the marketing site
CleanShot 2025-05-16 at 11 54 10@2x

Nicer styling for the selected plan state on the onboarding pricing page
CleanShot 2025-05-16 at 11 34 20@2x

Summary by CodeRabbit

  • New Features
    • Added supplementary pricing details for additional concurrency, schedules, realtime connections, and seats directly beneath feature counts in plan selection.
    • Introduced new keyboard shortcuts for navigating to root and parent runs on the Run page.
    • Enhanced link components to support keyboard shortcuts and tooltips for improved accessibility.
    • Added new icons for "move to top" and "move up" actions used in run navigation links.
    • Updated parent/root run navigation UI to show combined or separate links with new icons and shortcuts.
  • Bug Fixes
    • Corrected a typo in the display name for realtime concurrency.
  • Style
    • Updated button styles for plan upgrade and downgrade actions.
    • Improved color highlights and icon alignment for better visual consistency.

Copy link

changeset-bot bot commented May 16, 2025

⚠️ No Changeset found

Latest commit: 35a9e41

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

coderabbitai bot commented May 16, 2025

## Walkthrough

This update introduces new pricing details for additional usage features and displays these as supplementary text under relevant feature counts in the plan selection UI. Button styles for plan actions are updated, a component typo is corrected, and minor UI styling adjustments are made. No changes to business logic or control flow occur.

## Changes

| File(s)                                                                                      | Change Summary                                                                                                                                                                                                                                   |
|----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| apps/webapp/app/routes/resources.orgs.$organizationSlug.select-plan.tsx                      | Added new pricing definitions for additional features; updated button variants for plan actions; fixed typo in `RealtimeConnecurrency` (now `RealtimeConcurrency`); passed extra pricing info as children to feature components; UI style tweaks. |
| .../ConcurrentRuns.tsx, .../TeamMembers.tsx, .../Schedules.tsx, .../RealtimeConcurrency.tsx  | Updated function signatures to accept optional `children` prop; render children as dimmed text under main feature count.                                                                                                                         |
| .../FeatureItem.tsx                                                                          | Adjusted icon alignment and spacing; changed highlight and border colors to specific indigo shades.                                                                                                                                              |
| apps/webapp/app/assets/icons/MoveToTopIcon.tsx                                              | Added new `MoveToTopIcon` React component rendering an SVG "move to top" icon with stroke styling and clipping path.                                                                                                                             |
| apps/webapp/app/assets/icons/MoveUpIcon.tsx                                                 | Added new `MoveUpIcon` React component rendering an SVG "move up" icon with stroke styling and clipping path.                                                                                                                                    |
| apps/webapp/app/components/Shortcuts.tsx                                                   | Added two new keyboard shortcuts for the Run page: "Jump to root run" (key "t") and "Jump to parent run" (key "p").                                                                                                                               |
| apps/webapp/app/components/primitives/TextLink.tsx                                         | Enhanced `TextLink` to support keyboard shortcuts and tooltips; added props `shortcut`, `hideShortcutKey`, and `tooltip`; refactored to unify link content rendering and conditionally wrap with tooltip.                                         |
| apps/webapp/app/presenters/v3/RunPresenter.server.ts                                       | Modified Prisma query to include `parentTaskRun` object with selected fields; removed `parentRunFriendlyId` from returned trace data; no signature changes.                                                                                      |
| apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx | Removed unused imports; replaced old parent/root icons with new `MoveToTopIcon` and `MoveUpIcon`; updated `TasksTreeView` to accept `parentRun` object instead of `parentRunFriendlyId`; replaced `ShowParentLink` with `ShowParentOrRootLinks` component rendering conditional root/parent links with new icons and shortcuts; minor UI adjustments. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    User->>RunPage: View run details
    RunPage->>RunPresenter: Fetch run with parentTaskRun data
    RunPresenter->>RunPage: Return run data including parentTaskRun
    RunPage->>TasksTreeView: Render with parentRun prop
    TasksTreeView->>ShowParentOrRootLinks: Render root and/or parent links
    ShowParentOrRootLinks->>UI: Display "Root" and/or "Parent" links with icons
    User->>UI: Use shortcuts "t" (root) or "p" (parent) to navigate

Poem

🐇✨
A rabbit hopped through UI fields,
Where pricing details were gently revealed.
Indigo borders, icons aligned,
Extra info below, neatly designed.
Root and parent links now leap with grace,
Shortcuts and icons in their place.
The rabbit cheers these changes new!
🐇🌿


<!-- walkthrough_end -->

<!-- announcements_start -->

> [!NOTE]
> <details>
> <summary>⚡️ AI Code Reviews for VS Code, Cursor, Windsurf</summary>
> 
> CodeRabbit now has a plugin for VS Code, Cursor and Windsurf. This brings AI code reviews directly in the code editor. Each commit is reviewed immediately, finding bugs before the PR is raised. Seamless context handoff to your AI code agent ensures that you can easily incorporate review feedback.
> Learn more [here](http://coderabbit.ai/ide).
> 
> </details>

---

> [!NOTE]
> <details>
> <summary>⚡️ Faster reviews with caching</summary>
> 
> CodeRabbit now supports caching for code and dependencies, helping speed up reviews. This means quicker feedback, reduced wait times, and a smoother review experience overall. Cached data is encrypted and stored securely. This feature will be automatically enabled for all accounts on May 16th. To opt out, configure `Review - Disable Cache` at either the organization or repository level. If you prefer to disable all data retention across your organization, simply turn off the `Data Retention` setting under your Organization Settings.
> Enjoy the performance boost—your workflow just got faster.
> 
> </details>

<!-- announcements_end -->

---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**
**Cache: Disabled due to data retention organization setting**
**Knowledge Base: Disabled due to data retention organization setting**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between cf410723984afc3f3bed148e5e913ea9b983b78c and 35a9e418b4635d6f813515246de1eb8d0e2c9d7b.

</details>

<details>
<summary>📒 Files selected for processing (3)</summary>

* `apps/webapp/app/assets/icons/MoveToTopIcon.tsx` (1 hunks)
* `apps/webapp/app/assets/icons/MoveUpIcon.tsx` (1 hunks)
* `apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx` (9 hunks)

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (3)</summary>

* apps/webapp/app/assets/icons/MoveToTopIcon.tsx
* apps/webapp/app/assets/icons/MoveUpIcon.tsx
* apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (7)</summary>

* GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
* GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
* GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - pnpm)
* GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - npm)
* GitHub Check: units / 🧪 Unit Tests
* GitHub Check: typecheck / typecheck
* GitHub Check: Analyze (javascript-typescript)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcABpIcVwvOkgAIgBVblpqaQj8CNgSHgp4BngMIh40UlDYyAB3NGQHAWZ1Gno5DKzsREp7NDYhPirrOwxHAXaAJgAGADYAdg0YTMZYTFJkADN8Blb+LDQveCIMfMLcOasKdO4vTBQMVYpmanh8LEfm7NyDotIK9VgXpVxtLzIXjSdgxZ5HLJ3CgAaxI4gK9nUJBmAEFaLR1A8MNsvLJwhDINgkikrrhTrRsAxUvBmLx8FJ6IhcLIdgibi82tExDFzpcmSTwXNHgJ8M4MQjeG8JcUSOEyAsMHkEQSJEhsNtsiCMP9xM9MPRWu0SAAPbiUeBkKkzOBZJSIBg5bi6rD5BhebB2+wOkhkRCwfC4ZBKZiPJlUeGHOZE5INaynHgXF3XfC3e56jD0An+Zb5GJMlnvdkEzmiWO8rD8mjW452BiXIZ+E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mkNntllszcuqWRNxlKWgtRsDTTvItmVit+VnoiAogXmDFL4jN71jARFK+uVvVrgD3IgDFGtl++t7GVn3ojFZtu+3nynr5SAAAH3r28C8HFr5nR8tcx5tbNtpUVoZRTfx41oYCYw3bp/YDQdLisI880y9Z144bJ71el+JTuPltpTPa+L2Wc+tjM6Pcs4hVvZGQfdeSuTS+xXCDYexRF69xdZmkc4XdBetlc+s+wWV9cbcSWu9LvAMHgj12fDMrQkTPHpwj/D8CSwnuaVIgghUDUEolghogT4fAwVuVKcf0QFKaU7MzoFKf5DqPj8T9GFPjQFGGWBs2WGGFPloHbuSFoAAEZxgABOUYdumzQfkgEf0+GzUYNAEfqfmzEf5l8+Cf0+aiQwRPhgTvwf0YSYYYdukfgADhszQGWAYHbuWHbqGCH5s2P5IFPmn8H/bsqhH4EBP5v8mGP40TgjL/brb4j8SAk/Y/gIBszjAABtAcYMsGP4v9T4g/U+LZnGBKAp+AgY/rQFGAkBhgDAEfrQEmACBN+dEKAD+HUCV9aA1fWvi2Hr6cl9AQAA=== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

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.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=triggerdotdev/trigger.dev&utm_content=2067):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Copy link
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

🧹 Nitpick comments (1)
apps/webapp/app/components/primitives/TextLink.tsx (1)

60-66: Minor: repeated shortcut rendering logic can be simplified

renderShortcutKey() already checks shortcut and hideShortcutKey.
The extra shortcut && !tooltip guard duplicates that logic.
Consider relying on the helper’s own guard to reduce condition nesting.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge Base: Disabled due to data retention organization setting

📥 Commits

Reviewing files that changed from the base of the PR and between 05a0f4f and cf41072.

📒 Files selected for processing (6)
  • apps/webapp/app/assets/icons/MoveToTopIcon.tsx (1 hunks)
  • apps/webapp/app/assets/icons/MoveUpIcon.tsx (1 hunks)
  • apps/webapp/app/components/Shortcuts.tsx (1 hunks)
  • apps/webapp/app/components/primitives/TextLink.tsx (3 hunks)
  • apps/webapp/app/presenters/v3/RunPresenter.server.ts (2 hunks)
  • apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx (9 hunks)
✅ Files skipped from review due to trivial changes (3)
  • apps/webapp/app/components/Shortcuts.tsx
  • apps/webapp/app/assets/icons/MoveUpIcon.tsx
  • apps/webapp/app/assets/icons/MoveToTopIcon.tsx
⏰ Context from checks skipped due to timeout of 90000ms (7)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - pnpm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (windows-latest - npm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - pnpm)
  • GitHub Check: e2e / 🧪 CLI v3 tests (ubuntu-latest - npm)
  • GitHub Check: units / 🧪 Unit Tests
  • GitHub Check: typecheck / typecheck
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (3)
apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx (1)

1198-1244: Verify LinkButton API accepts the new props

LinkButton is now passed hideShortcutKey, shortcut, LeadingIcon, and a new variant="minimal/small".
While LeadingIcon and variant existed before, hideShortcutKey & shortcut are freshly added for TextLink.

If LinkButton still forwards unknown props with ...rest things will work, otherwise TypeScript will error or the props will be silently ignored (no shortcut registered).

Please double-check the LinkButton definition or add the props there as well.

apps/webapp/app/presenters/v3/RunPresenter.server.ts (2)

64-71: Looks good – consistent selection for parentTaskRun

The additional select block mirrors rootTaskRun and keeps the query lean.
No objections.


120-121: Expose nullable parentTaskRun in runData

Nice pass-through; downstream consumers can safely rely on the same shape as rootTaskRun.

Comment on lines +45 to +54
if (shortcut) {
useShortcutKeys({
shortcut: shortcut,
action: () => {
if (innerRef.current) {
innerRef.current.click();
}
},
});
}
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Avoid conditional hook calls – they break the Rules of Hooks

useShortcutKeys is invoked only when shortcut is truthy.
If the component first renders with shortcut={undefined} and later re-renders with a shortcut the hook order will change, throwing Invariant Violation: Rendered fewer hooks than expected.

Unconditionally call the hook and gate the feature inside the hook’s own options instead:

- if (shortcut) {
-   useShortcutKeys({
-     shortcut: shortcut,
-     action: () => {
-       if (innerRef.current) {
-         innerRef.current.click();
-       }
-     },
-   });
- }
+ useShortcutKeys(
+   shortcut
+     ? {
+         shortcut,
+         action: () => innerRef.current?.click(),
+       }
+     : undefined // hook still called, but no-op when undefined
+ );
🤖 Prompt for AI Agents
In apps/webapp/app/components/primitives/TextLink.tsx around lines 45 to 54, the
hook useShortcutKeys is called conditionally based on the shortcut prop, which
violates the Rules of Hooks and can cause runtime errors. To fix this, call
useShortcutKeys unconditionally every render and move the conditional logic
inside the hook's options or implementation so that the shortcut feature is
enabled or disabled internally without changing the hook call order.

Comment on lines +592 to 612
{rootRun || parentRun ? (
<ShowParentOrRootLinks
relationships={{
root: rootRun
? {
friendlyId: rootRun.friendlyId,
taskIdentifier: rootRun.taskIdentifier,
spanId: rootRun.spanId,
isParent: parentRun ? rootRun.friendlyId === parentRun.friendlyId : true,
}
: undefined,
parent:
parentRun && rootRun?.friendlyId !== parentRun.friendlyId
? {
friendlyId: parentRun.friendlyId,
taskIdentifier: "",
spanId: "",
}
: undefined,
}}
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Parent-run link loses its spanId (and taskIdentifier) – navigation will break

relationships.parent is intentionally created with empty strings:

taskIdentifier: "",
spanId: "",

Yet those empty values are later forwarded to v3RunSpanPath, resulting in
URLs like /runs/ABC?span= which 404s and breaks keyboard shortcuts.

Pass the real values that are already present on parentRun:

- parentRun && rootRun?.friendlyId !== parentRun.friendlyId
-   ? { friendlyId: parentRun.friendlyId, taskIdentifier: "", spanId: "" }
+ parentRun && rootRun?.friendlyId !== parentRun.friendlyId
+   ? {
+       friendlyId: parentRun.friendlyId,
+       taskIdentifier: parentRun.taskIdentifier,
+       spanId: parentRun.spanId,
+     }
🤖 Prompt for AI Agents
In
apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.runs.$runParam/route.tsx
around lines 592 to 612, the parentRun object is passed with empty strings for
taskIdentifier and spanId, causing broken navigation links. Update the
relationships.parent object to use the actual taskIdentifier and spanId values
from parentRun instead of empty strings to ensure URLs are correctly formed and
navigation works properly.

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.

1 participant