fix(RecursivePermission): pass only one child to the tooltip#3288
fix(RecursivePermission): pass only one child to the tooltip#3288ogzhanolguncu merged 5 commits intomainfrom
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
📝 Walkthrough""" WalkthroughThe update restructures the layout of leaf permission nodes in the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant RecursivePermission
User->>RecursivePermission: Render permission leaf node
RecursivePermission->>RecursivePermission: Render toggle and label in flex container
RecursivePermission->>RecursivePermission: Conditionally render description below flex container
sequenceDiagram
participant ClientComponent
participant MutationsFunction
ClientComponent->>MutationsFunction: Call to get mutation hooks
MutationsFunction-->>ClientComponent: Return create, update, cancel, uncancel mutations
ClientComponent->>MutationsFunction: Use mutations for subscription operations
sequenceDiagram
participant ConfirmationButton
participant Dialog
ConfirmationButton->>Dialog: setOpen(false) to close dialog
ConfirmationButton->>ConfirmationFunction: Await confirmation function
sequenceDiagram
participant BillingPage
participant Suspense
participant ClientComponent
BillingPage->>Suspense: Render Suspense with fallback
Suspense->>ClientComponent: Render Client component
Possibly related PRs
Suggested labels
Suggested reviewers
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (25)
🔇 Additional comments (10)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page 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)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Thank you for following the naming conventions for pull request titles! 🙏 |
|
@mcstepp Working great tested against prod. Can you update lock file so we can merge? |
|
Please don't update this branch with main for a few minutes |
Fixes an issue where stripe is trying to render something before it's ready. I also did some change to the way mutations are stored. I also fixed the annoying double dialog on confirmation
|
oh shit |
|
Give me a few mins it should be fine |
|
You are good to merge |
|
dang it. lemme see something |
|
please sir may i have another approval? Also some API tests are failing with 500 errors and i aint touched it |
|
sure |
|
🫡 |
|
@mcstepp is it normal to have that big lock file? 😄 |
|
There shouldn’t be a lock file at all for a single file change |
|
I had to update my packages |
|
i just ran pnpm i to make sure I picked up stuff from the last two weeks |
|
on main |
|
pnpm i shouldn’t generate a new lock file unless you explicitly upgrade a package or your using a different pnpm version than we are |
|
e.g you aren’t using corepack to make sure you are on the same version. |
|
I just double checked them most them look innocent minor updates |
|
but yes we should use corepack |
|
innocent minor changes shouldn’t go in a file change. That’s a recipe for fixing one thing and breaking ten. |
|
I can yeet the lock file |
|
Please. 🙏 |
8a92af9 to
f4ad07b
Compare
|
Now Meg's branch is mixed with James latest PR I'm so confused 😄 |
|
its fiiiiiine |
|
is it or you baiting me? 😄 |
|
It is fine; you can merge those changes were mine |
|
good to go |
What does this PR do?
Fixes # ENG-1802
Root cause: When
descriptionexists, the tooltip receives 2 children, which causesReact.Children.onlyto throw an error.Solution: Wrap everything in a single container
Type of change
How should this be tested?
A. Clicking to Expand

B. Clicking

Expand AllC. With

descriptionChecklist
Required
pnpm buildpnpm fmtconsole.logsgit pull origin mainAppreciated
Summary by CodeRabbit
Summary by CodeRabbit