feat: promote staging localization and UI updates#137
Merged
Conversation
Wire *next-intl* into app routing, request handling, layouts, and metadata generation. Move public, auth, admin, chat, invite, unsubscribe, workspace, and workflow widget copy into shared *en*, *es*, and *zh-CN* message catalogs. Localize navigation, auth callbacks, markdown and legal routes, blog metadata, and workflow tooling, and add audit or sync scripts plus regression tests for locale-aware behavior.
Precompute localized landing workflow preview payloads and summary rows so the landing page can render workflow and market previews without loading the full workspace namespace. Apply localized routing and header handling for public app and API paths, localize invite acceptance and workspace file headers, and guard against missing workspace widget messages in scoped providers. Add regression coverage for preview rendering, scoped message providers, invite flows, workspace files, and localized Next header rules.
Localize workflow block chrome, condition branch labels, empty states, summary rows, and input/response field copy through shared workflow editor messages. Fix block and sub-block override resolution so built-in tools and trigger-only configs render translated titles, placeholders, descriptions, and option labels consistently. Add regression coverage for workflow blocks, condition inputs, node editor panels, read-only preview panels, and block-editor localization helpers.
Pass canonical internal paths to `@/i18n/navigation` in the signup, login, and verify flows so next-intl applies locale prefixes only once. This fixes redirects like `/es/es/verify` and `/zh/zh/verify` while keeping browser-level redirects and auth callback URLs locale-aware. Add regression coverage for signup, login, and verification navigation across `es` and `zh-CN`, and document the router contract in the i18n navigation helper. Tests: bun run test 'app/(auth)/auth-locale-redirects.test.tsx' 'app/(auth)/verify/use-verification.test.tsx' i18n/utils.test.ts
Replace the app Chinese locale identifier with *zh* across routing, message catalogs, generated i18n assets, and locale-aware tests. Rename *apps/tradinggoose/i18n/messages/zh-CN.json* to *apps/tradinggoose/i18n/messages/zh.json* and regenerate *apps/tradinggoose/i18n.lock* from the updated *i18n.json* target list. Keep derived protocol outputs unchanged where regional values are still required, including Open Graph *zh_CN* and chat speech recognition *zh-CN*. Add the required dated staging changelog entry in *changelog/May-30-2026.md* for the branch diff against *origin/staging*.
Localize the invite callback URL before encoding it for login and signup redirects so post-auth navigation returns users to the active locale. Add a signed-out invite flow test that asserts the localized callback URL and reset mocked session state between tests.
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Remove redundant monitor board headers, aggregate badges, and chrome while keeping the board and control layouts functional. Co-authored-by: Codex <codex@openai.com>
Use the resolved fill price directly in order details instead of the shared execution price helper. Co-authored-by: Codex <codex@openai.com>
Drop monitor strings that are no longer referenced after simplifying the board and records views. Co-authored-by: Codex <codex@openai.com>
Replace remaining hardcoded English copy across the monitor editor, provider selectors, account settings, and help modal with localized workspace messages. Pass localized fallback labels into monitor workflow target loading and use centralized block editor copy for portfolio trigger metadata and instructions. Add translation entries and regression tests covering localized selector states, monitor editor labels, settings modal flows, and public copy shape validation.
…ption feat(copilot): refactor workflow variable types and enhance type safety feat(blocks): improve subBlock description handling in block mermaid catalog test(blocks): add assertion for subBlock description in blocks metadata test
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Consolidate template formatting helpers into i18n/utils, move anonymous email locale persistence onto waitlist rows, and update the affected layouts, routes, tests, and generated Drizzle artifacts. Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
… email and auth redirects
Remove legacy hydration logging, browser extension filtering, and unused client messages from the locale layout. Co-authored-by: Codex <codex@openai.com>
Require authenticated settings updates, return real API errors, and stop skipping updates on the chat page. Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com> Co-authored-by: BWJ2310 <brucewj2310@gmail.com>
Co-authored-by: Codex <codex@openai.com>
Add dedicated *workspace.widgets.copilot* message trees for *en*, *es*, and *zh* and expose them through *useCopilotMessages*. Refactor copilot welcome, input, message chrome, todo list, access/model selectors, context usage, and chat history UI to consume localized copy instead of hardcoded English. Update the header to format relative time and history group labels from the active locale. Add regression coverage for the new copilot public copy and localized welcome rendering.
… default settings response
…te and update related tests
Co-authored-by: Codex <codex@openai.com>
feat(i18n): add locale-aware routing and localized app copy
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
Co-authored-by: Codex <codex@openai.com>
feat(ui): add grouped sidebar dropdown menus
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Too many files changed for review. ( |
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.
Summary
Promotes the current
stagingbranch toupstream/main.This includes:
next-intllocalization for public, auth, admin, workspace, chat, invite, changelog, unsubscribe, workflow, monitor, records, widget, and email surfaces.Why
This promotes the staging integration that prepares TradingGoose for localized product surfaces, durable language preference handling, and cleaner dropdown/navigation UI before merging into
main.It also consolidates several staging fixes around auth redirects, invite callbacks, market search defaults, monitor layout, workflow/editor copy, and settings behavior.
Affected Areas
apps/tradinggooseapps/docspackages/*Issue Links( if any )
Refs #133
Includes staging merges:
Validation
Branch/diff validation performed while preparing this PR:
Automated validation not run while drafting this PR body:
bun run test bun run type-check bun run buildRisk / Rollout Notes
This is a broad staging promotion with routing, localization, schema, and visible UI impact.
Primary rollout risks:
Backout approach:
preferred_localecolumns inert until a follow-up migration.Config / Data Changes
preferred_localetosettingsandwaitlistthrough generated migration0035_marvelous_avengers.Screenshots / Video
Recommended before merge:
Checklist