trunk-merge/pr-110530/e7ac1ae0-9283-4294-94e2-4c8e34138983 - #110535
trunk-io[bot] wants to merge 18 commits into
Conversation
The pending invite indicator in the account menu moves from the project row to the organization row, and the pending invite list moves from the project switcher to the organization switcher. An invite joins an organization, so the indicator now sits where the invite is accepted. Generated-By: PostHog Desktop Task-Id: 3c469151-6420-43b0-8fb4-d290680020ab
The dot now carries a tooltip that names the organization that sent the invite and says where to accept it. The old project button no longer sets its own tooltip, so a single tooltip appears on hover. Generated-By: PostHog Desktop Task-Id: 3c469151-6420-43b0-8fb4-d290680020ab
The dot halo no longer spills onto the project name, the tooltip is one sentence, and the pending invite row in the organization switcher uses the same logo, alignment and tag as the other organization rows. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…ite-dot-on-organization
…letion The pending deletion page showed the organization switcher only to users with other organizations. Pending invites now live in that switcher, so show it when the user has a pending invite too. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
6 updated, 4 removed Run: feb50236-da32-4eb9-abfc-f9b4d0f6a0c2 Co-authored-by: a-lider <221966567+a-lider@users.noreply.github.com>
The test opens the briefing once with a Prague timezone and once with the project's UTC, and expects the same briefing. A briefing day starts at eight local time, so between 06:00 and 08:00 UTC the two calls fall on different days and the test fails for every pull request. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Between 06:00 and 08:00 UTC a call without a timezone reads the project's briefing day, which is the day before for a person in Prague. The day boundary test now asserts that at a pinned time. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. 🧰 Additional context used📚 Code guidelines (18)📝 WalkthroughWalkthroughBilling usage and spend requests now default to the last 30 complete UTC days when both dates are omitted. Pending invitations appear in the organization switcher and account navigation, while the project switcher no longer handles invitations. The changes also update briefing timezone tests and the sandbox agent version pin. Priority: ⬇️ Low Estimated code review effort: Merge Risk: 🔵 Low · up to The invitation action works, but its missing stable selector makes it harder to target reliably in analytics and automated tests. This is a localized fix and does not block merging. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The inspected changes preserve billing access controls and route invitations through the existing acceptance flow. No new access or broader permissions were demonstrated, but some release and recovery behavior remains unverified. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
🚥 Pre-merge checks | ❌ 1❌ Failed checks (1 warning)
Full details: Description checkExplanation The description only documents the Trunk Merge batch, base commit, dependencies, and automatic closure. It does not describe the user-facing problem, changes, tests, release status, docs update, or agent context required by the repository template. Resolution Replace or supplement the Trunk Merge text with a complete PR description. Add Problem, Changes, How did you test this code?, Test rationale, exactly one Release status option, Automatic notifications, Docs update, and required Agent context details. Include screenshots for the frontend changes and testing evidence for the billing, navigation, briefing, and sandbox updates.
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Note
Quiet mode is enabled, so only the most important comments were posted inline. Other review comments are grouped below.
🟡 Other comments (1)
frontend/src/lib/components/Account/OrgSwitcher.tsx-317-317 (1)
317-317: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winAdd a stable selector to the invitation button.
Combobox.Itemsupplies only Base UI state attributes.ButtonPrimitiveforwards them but does not create a meaningfuldata-attr. Add the required kebab-case selector.Suggested fix
<ButtonPrimitive {...props} + data-attr="org-switcher-pending-invite" menuItem
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: PostHog/posthog/.coderabbit.yaml
Review profile: QUIET
Plan: Enterprise
Run ID: 8e0ded9f-37b9-437e-8447-3a7ee3db2f72
⛔ Files ignored due to path filters (3)
products/billing/frontend/generated/api.schemas.tsis excluded by!**/generated/**services/mcp/src/generated/billing/api.tsis excluded by!**/generated/**services/mcp/src/tools/generated/billing.tsis excluded by!**/generated/**
📒 Files selected for processing (17)
docs/published/handbook/engineering/ai/implementing-mcp-tools.mdee/api/billing.pyee/api/test/test_billing.pyfrontend/snapshots.ymlfrontend/src/lib/components/Account/NewAccountMenu.tsxfrontend/src/lib/components/Account/OrgSwitcher.stories.tsxfrontend/src/lib/components/Account/OrgSwitcher.tsxfrontend/src/lib/components/Account/ProjectMenu.tsxfrontend/src/lib/components/Account/ProjectSwitcher.stories.tsxfrontend/src/lib/components/Account/ProjectSwitcher.tsxfrontend/src/scenes/project/PendingDeletion.tsxproducts/billing/mcp/tools.yamlproducts/tasks/backend/sandbox/images/Dockerfile.sandbox-baseproducts/today/backend/tests/test_api.pyservices/mcp/src/api/generated.tsservices/mcp/tests/unit/__snapshots__/tool-schemas/billing-spend-get.jsonservices/mcp/tests/unit/__snapshots__/tool-schemas/billing-usage-get.json
💤 Files with no reviewable changes (1)
- products/billing/mcp/tools.yaml
Included review availability: This review used your included allowance. Your plan provides up to 12 included reviews per hour; 4 remain after this review.
|
This pull request was created and is being managed by Trunk Merge.
This pull request is based on the master branch at SHA 3d69600a8a7a599bf78ea186748e56d12462a7ac.
See more details about each PR in the batch here:
When CI completes, this pull request will be closed automatically.
Pull Requests Being Tested
This pull request is testing a batch with the changes from pull requests 110530 and 107531 - batching documentation.
Dependencies
This pull request depends on the changes from pull requests 109387 and 110527.