Repository navigation
Conversation
added 2 commits
October 5, 2026 00:13
Patch revision 1 of workflow item 122cba52-5cab-46eb-948d-6a102774e2b3.
# Conflicts: # apps/web/src/components/usage-analytics/UsageAnalyticsDashboard.tsx
Owner
Author
|
Smoke run of the kilo-workflow publishing phase; closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog for users
Changelog for maintainers
usageTableEmptyMessage({ isLoading, isPersonalContext })inusageEmptyMessage.ts;UsageAnalyticsDashboard.tsxpassesisLoading: tableLoadingandisPersonalContext: !isOrgContext, so personal and organization contexts take different branches. Check this helper first when the wrong copy renders.PERSONAL_USAGE_EMPTY_MESSAGE('No usage yet. Your first request will appear here.') andORGANIZATION_USAGE_EMPTY_MESSAGE('No usage data for this period.') are the single source of the strings; editing copy means editing these.isLoading: truereturns the literal'Loading usage…'for both contexts, so the personal message cannot render while the query is in flight.'No usage data for this period.') both via the helper constant and the retained inlineisOrgContextbranch, so organization behavior is unchanged. Note the plan and task brief describe this string as 'No usage data.'; the code and new test use 'No usage data for this period.', which a reviewer should confirm is intended.usageEmptyMessage.test.tsasserts loading for both contexts, the personal branch, the organization branch, and the exact constant values; it runs under the sharedworkerSetup.tssuite, which the task report says tries to connect to PostgreSQL and fails without a database, so the test was not executed locally.Owner request
E2E proof
Proves that a zero-usage personal account on a non-'today' period sees exactly 'No usage yet. Your first request will appear here.' in the /usage Detailed Breakdown empty state, and that the shared organization usage-details page keeps its organization-specific copy ('No usage data for this period.') for a zero-usage enterprise org. Both scenarios run fully locally: the usageAnalytics tRPC responses are stubbed with successful zero-data results so no Snowflake call is made, the org scenario additionally stubs organizations.usageDetails.getAIAdoptionTimeseries with a schema-valid empty result so the enterprise AIAdoptionScoreCard makes no PostHog call, SKIP_STRIPE_API=true prevents Stripe calls during fake-login signup, and the org is inserted directly into local Postgres to avoid WorkOS. Coverage includes the useUsageTable data/loading hook that feeds both empty states, the OrganizationTrialWrapper that the org page layout renders around the dashboard, and the usage-details router file whose getAIAdoptionTimeseries procedure the org fixture intercepts.
Result: complete. 2 of 2 scenarios passed in patch revision 1.
On a personal account with zero usage, the /usage page's Detailed Breakdown empty state now shows exactly 'No usage yet. Your first request will appear here.'
E2E-personal-usage-empty-messagewebfixturepassedsnapshot.txt, lines 1 to 40 of 225:An organization with zero usage still shows the organization-specific empty copy in the /organizations//usage-details Detailed Breakdown table.
E2E-org-usage-empty-messagewebfixturepassed