Skip to content

feat: promote staging localization and UI updates#137

Merged
BWJ2310-backup merged 51 commits into
mainfrom
staging
Jun 5, 2026
Merged

feat: promote staging localization and UI updates#137
BWJ2310-backup merged 51 commits into
mainfrom
staging

Conversation

@BWJ2310-backup

Copy link
Copy Markdown
Contributor

Summary

Promotes the current staging branch to upstream/main.

This includes:

  • Adds next-intl localization for public, auth, admin, workspace, chat, invite, changelog, unsubscribe, workflow, monitor, records, widget, and email surfaces.
  • Moves visible app routes behind locale-aware routing with English, Spanish, and Chinese message bundles.
  • Persists preferred locale for authenticated settings and waitlist records.
  • Localizes transactional emails, metadata, sitemap, auth redirects, invite flows, and callback handling.
  • Adds grouped sidebar/dropdown UI updates and monitor kanban header actions.
  • Updates workflow editor, trigger, block, listing selector, market/charting, records, and monitor copy/behavior.
  • Adds/updates focused tests across i18n, auth, routing, proxy, emails, monitor, records, workflow editor, selectors, and widgets.
  • Updates Vitest/Vite/Turborepo tooling and adds a generated DB migration for locale fields.

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/tradinggoose
  • apps/docs
  • packages/*
  • Workflows / execution
  • Realtime / sockets
  • Market data / charting
  • Dev tooling / CI / infra
  • Documentation only
  • Other: i18n/localization, DB migration, changelog

Issue Links( if any )

Refs #133

Includes staging merges:

Validation

Branch/diff validation performed while preparing this PR:

git fetch upstream main
# fetched upstream/main successfully

git status --short --branch
# ## staging...upstream/staging
# no staged or unstaged file changes shown

git rev-parse HEAD upstream/main FETCH_HEAD
# HEAD: e167f5f69ea2859fad66ee20fa56bda2792b3a2f
# upstream/main/FETCH_HEAD: f6a7da47075a5e4d546480130b493532f7e275af

git diff --shortstat upstream/main...HEAD
# 633 files changed, 104960 insertions(+), 13071 deletions(-)

git log --oneline --decorate upstream/main..HEAD
# reviewed staging commits, including PR #135 i18n and PR #136 dropdown UI

Automated validation not run while drafting this PR body:

bun run test
bun run type-check
bun run build

Risk / Rollout Notes

This is a broad staging promotion with routing, localization, schema, and visible UI impact.

Primary rollout risks:

  • Locale-aware routing changes may affect bookmarks, auth callbacks, invite links, metadata, sitemap output, and protected-route redirects.
  • Email copy/rendering is centralized and localized, so transactional email rendering should be checked in staging before production rollout.
  • Preferred locale persistence adds DB columns and changes settings/waitlist behavior.
  • Dropdown and workflow/monitor UI changes are visible and should be smoke-tested on desktop and mobile.

Backout approach:

  • Revert the merge if runtime issues appear before DB migration rollout.
  • If the DB migration has already been applied, coordinate rollback separately or leave the added preferred_locale columns inert until a follow-up migration.

Config / Data Changes

  • Env vars added or changed: None found.
  • Database schema or migration impact: Adds preferred_locale to settings and waitlist through generated migration 0035_marvelous_avengers.
  • External services or provider behavior changed: Localized email output and localized auth/invite URL generation now rely on existing site URL configuration; market listing search defaults now send normalized filter payloads.

Screenshots / Video

image image

Recommended before merge:

  • Locale switching on public/auth/workspace surfaces.
  • Sidebar grouped dropdown menus.
  • Monitor kanban header actions.
  • Workflow editor dropdown/combobox behavior.

Checklist

  • I kept the change focused and reviewed my own diff
  • I validated the change locally and documented the results above
  • I updated docs, examples, or copy if behavior/user-facing flows changed
  • I called out any env, schema, provider, or rollout impact
  • I did not include secrets, tokens, or private credentials in this PR

agualdron and others added 30 commits May 30, 2026 19:45
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>
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>
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>
BWJ2310-backup and others added 21 commits June 3, 2026 15:53
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.
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
@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
studio (staging) Ready Ready Preview, Comment Jun 5, 2026 9:25pm

Request Review

@greptile-apps

greptile-apps Bot commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Too many files changed for review. (633 files found, 500 file limit)

@BWJ2310-backup BWJ2310-backup marked this pull request as ready for review June 5, 2026 21:24
@BWJ2310-backup BWJ2310-backup merged commit 1f0a581 into main Jun 5, 2026
6 checks passed
@BWJ2310-backup BWJ2310-backup deleted the staging branch June 5, 2026 21:28
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.

2 participants