diff --git a/AGENTS.md b/AGENTS.md index 7e478246..319e1b81 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -19,9 +19,6 @@ backend/ # Go backend (the Go module lives here) tests/ # e2e tests + test helpers frontend/ # Chatwoot Vue 3 frontend (vendored for customization) app/javascript/ # Vue SPA source (dashboard, widget, sdk, portal, superadmin) - app/views/ # ERB templates (vite-plugin-ruby entrypoint resolution) - config/vite.json # Vite-Rails bridge config - enterprise/ # Enterprise edition frontend overlay package.json # pnpm + Vite + Vue 3 toolchain deploy/ # Deployment artifacts docker/ # Dockerfile, Dockerfile.dev, docker-compose.{yml,dev,prod,test}.yml @@ -145,7 +142,7 @@ Key decoupling changes: # From repo root — unified dev workflow pnpm install # install all workspace deps pnpm dev:backend # start Go backend (air hot-reload, port 3000) -pnpm dev:frontend # start Vite dev server (port 3036, proxies API to :3000) +pnpm dev:frontend # start Vite dev server (port 5000, proxies API to :3000) pnpm dev # start both concurrently # Frontend-only (from frontend/) @@ -165,3 +162,15 @@ Default `CHATWOOT_DIR` points to `../frontend`. - Do not add Go files to `backend/scripts/legacy/` expecting them to be excluded — `go build ./...` compiles them; keep that directory for one-off scripts only. - Do not commit `.env`, `coverage.out`, `bin/`, or `tmp/`. - Do not rewrite git history or force-push without explicit instruction. + + + +## CodeGraph + +In repositories indexed by CodeGraph (a `.codegraph/` directory exists at the repo root), reach for it BEFORE grep/find or reading files when you need to understand or locate code: + +- **MCP tool** (when available): `codegraph_explore` answers most code questions in one call — the relevant symbols' verbatim source plus the call paths between them, including dynamic-dispatch hops grep can't follow. Name a file or symbol in the query to read its current line-numbered source. If it's listed but deferred, load it by name via tool search. +- **Shell** (always works): `codegraph explore ""` prints the same output. + +If there is no `.codegraph/` directory, skip CodeGraph entirely — indexing is the user's decision. + diff --git a/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json b/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json index 2dbbc932..34add4de 100644 --- a/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json +++ b/frontend/app/javascript/dashboard/i18n/locale/zh_CN/login.json @@ -2,8 +2,8 @@ "LOGIN": { "TITLE": "登录到Chatwoot", "EMAIL": { - "LABEL": "Email", - "PLACEHOLDER": "实例 {'@'}companyname.com", + "LABEL": "电子邮件", + "PLACEHOLDER": "电子邮件", "ERROR": "请输入一个有效的电子邮件" }, "PASSWORD": { diff --git a/frontend/app/javascript/v3/views/login/Index.vue b/frontend/app/javascript/v3/views/login/Index.vue index 5c5a9d87..9ddcbc6e 100644 --- a/frontend/app/javascript/v3/views/login/Index.vue +++ b/frontend/app/javascript/v3/views/login/Index.vue @@ -1,13 +1,11 @@