code-review-graph icon indicating copy to clipboard operation
code-review-graph copied to clipboard

[Platform]:

Open 424385117 opened this issue 5 months ago • 7 comments

Platform name

mimo code

Link to the platform's MCP / configuration docs

https://mimo.xiaomi.com/zh/mimocode/mcp-servers

Does the platform support MCP?

Yes — stdio transport

Where does its MCP configuration live?

please support mimo code

Additional context

No response

Testing

  • [ ] I have this tool installed and can test a pre-release integration.

424385117 avatar Jul 02 '26 08:07 424385117

🤖 CI report

✅ Bundle size — no change

Uncompressed size of every built .js bundle, compared against the base branch.

Total: 64.86 MiB · no change

No file changed by more than 1000 B.

Posted automatically by build-bundle-size-report · uncompressed bytes from dist-report

✅ Eager graph — within budget

How much code each root ships on the eager path — downloaded and parsed before the surface is interactive. Measured from the esbuild output chunks (post-tree-shake, static imports only); lazy import() / React.lazy chunks are not counted.

Root Eager (shipped) Δ vs base Budget
entry (logged-out pages, app bootstrap)
src/index.tsx
1.23 MiB · 22 files no change ███░░░░░░░ 28.6% of 4.29 MiB
authenticated shell (every logged-in page)
src/scenes/AuthenticatedShell.tsx
8.15 MiB · 2,988 files no change █████████░ 88.1% of 9.25 MiB

🟢 node_modules/monaco-editor/ stays out of src/index.tsx 🟢 src/lib/components/ActivityLog/describers stays out of src/index.tsx 🟢 [object Object] stays out of src/index.tsx 🟢 [object Object] stays out of src/index.tsx 🟢 node_modules/monaco-editor/ stays out of src/scenes/AuthenticatedShell.tsx 🟢 src/lib/components/ActivityLog/describers stays out of src/scenes/AuthenticatedShell.tsx 🟢 [object Object] stays out of src/scenes/AuthenticatedShell.tsx 🟢 [object Object] stays out of src/scenes/AuthenticatedShell.tsx

Largest files eagerly shipped from src/index.tsx
Size File
126.8 KiB ../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.production.min.js
24.6 KiB ../node_modules/.pnpm/[email protected]/node_modules/buffer/index.js
6.3 KiB ../node_modules/.pnpm/[email protected]/node_modules/react/cjs/react.production.min.js
4.5 KiB ../node_modules/.pnpm/@[email protected]/node_modules/@jspm/core/nodelibs/browser/process.js
3.9 KiB ../node_modules/.pnpm/[email protected]/node_modules/scheduler/cjs/scheduler.production.min.js
1.4 KiB ../node_modules/.pnpm/[email protected]/node_modules/base64-js/index.js
1.3 KiB src/RootErrorBoundary.tsx
912 B ../node_modules/.pnpm/[email protected]/node_modules/ieee754/index.js
789 B src/scenes/ChunkLoadErrorBoundary.tsx
762 B src/index.tsx
Largest files eagerly shipped from src/scenes/AuthenticatedShell.tsx
Size File
281.3 KiB ../node_modules/.pnpm/[email protected]/node_modules/posthog-js/dist/rrweb.js
267.7 KiB ../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@posthog/icons/dist/posthog-icons.es.js
235.5 KiB src/taxonomy/core-filter-definitions-by-group.json
223.2 KiB ../node_modules/.pnpm/[email protected]/node_modules/posthog-js/dist/module.js
164.0 KiB src/queries/validators.js
154.3 KiB ../node_modules/.pnpm/[email protected]/node_modules/re2js/build/index.esm.js
126.8 KiB ../node_modules/.pnpm/[email protected][email protected]/node_modules/react-dom/cjs/react-dom.production.min.js
105.8 KiB src/lib/api.ts
93.3 KiB ../node_modules/.pnpm/[email protected]/node_modules/prosemirror-view/dist/index.js
93.2 KiB ../packages/quill/packages/quill/dist/index.js

Posted automatically by check-eager-graph · sizes are eager output bytes (shipped, post-tree-shake) from the esbuild metafile · part of #32479

✅ Dist folder size — 🔺 +4.4 KiB (+0.0%)

Total size of the built frontend/dist folder (all assets), compared against the base branch.

Total: 1336.90 MiB · 🔺 +4.4 KiB (+0.0%)

ℹ️ MCP UI apps size — 31 app(s), 16602.7 KB JS

Built size of each MCP UI app (main.js + styles.css).

App JS CSS
debug 599.5 KB 187.4 KB
action 457.8 KB 187.4 KB
action-list 564.3 KB 187.4 KB
cohort 456.8 KB 187.4 KB
cohort-list 563.3 KB 187.4 KB
email-template 456.6 KB 187.4 KB
error-details 472.4 KB 187.4 KB
error-issue 457.5 KB 187.4 KB
error-issue-list 564.2 KB 187.4 KB
experiment 561.5 KB 187.4 KB
experiment-list 565.1 KB 187.4 KB
experiment-results 563.2 KB 187.4 KB
feature-flag 567.1 KB 187.4 KB
feature-flag-list 570.9 KB 187.4 KB
feature-flag-testing 461.0 KB 187.4 KB
insight-actors 562.1 KB 187.4 KB
invite-email-preview 456.0 KB 187.4 KB
llm-costs 559.5 KB 187.4 KB
session-recording 458.6 KB 187.4 KB
session-summary 463.9 KB 187.4 KB
survey 458.4 KB 187.4 KB
survey-global-stats 562.2 KB 187.4 KB
survey-list 565.0 KB 187.4 KB
survey-stats 562.2 KB 187.4 KB
trace-span 457.2 KB 187.4 KB
trace-span-list 564.2 KB 187.4 KB
workflow 457.1 KB 187.4 KB
workflow-list 563.7 KB 187.4 KB
query-results 744.8 KB 187.4 KB
render-ui 825.3 KB 187.4 KB
visual-review-snapshots 461.6 KB 187.4 KB
⚠️ Playwright — 1 failed

🎭 Playwright report · View test results →

❌ 1 failed test:

  • View persons list, navigate to detail, and browse tabs (chromium)

These issues are not necessarily caused by your changes. Annoyed by this section? Help fix flakies and failures and it will go green!

github-actions[bot] avatar Jul 16 '26 14:07 github-actions[bot]

🧹 Polish pass (simplify + code-review)

Ran /polish (simplify then high-effort code-review) over the diff and pushed the fixes in 03d5a5e. Scoped to the three Heatmap source files.

Applied

  • Heatmap.tsx — unused createScales param. coloredSeries was declared but never read; tsgo flagged it (TS6133), which is what failed Frontend typechecking and Frontend Tests Pass. Renamed to _coloredSeries.
  • heatmap-layout.ts / Heatmap.tsx — per-cell color re-parse in the draw loop. heatmapCellColor(accent, t) re-parsed the accent string via d3-color for every non-empty cell (hundreds per redraw, on every prop/theme/resize change). Replaced with a createCellColorRamp(accent) factory built once per drawStatic that parses the accent once and memoizes fills by 8-bit alpha (the finest a canvas can resolve). Output is visually identical.
  • HeatmapTooltip.tsx — inline styles. Two style={{}} blocks carried eslint-disable react/forbid-dom-props, against the quill "use Tailwind utility classes exclusively — no inline styles" rule. The sibling BoxPlotTooltip / DefaultTooltip do the same static layout with plain classes, so swapped to flex items-center gap-1.5 / ml-auto pl-3 and dropped the disables.

Considered, not applied

  • Categorical y-axis tick thinning (AxisLabels/computeVisibleYTicks). The heatmap rides the numeric tick machinery, so a tall grid (more rows than fit at ~16px each) would have row labels thinned by the numeric "1-2-5 roundness" heuristic in an arbitrary order rather than an even/edge-preserving one. The clean fix is a categorical-axis mode (or a keepAllTicks escape hatch) in the core Chart/AxisLabels seam — a shared-infra change well outside this diff that would affect every chart. Flagging for a follow-up, not something to bandaid here.
  • wrapClickData row-0 fallback. When the cursor row can't be resolved, wrapClickData returns the base chart's row-0 payload. Traced the interaction path: hover state is only set inside isInPlotArea, and clicks only fire when hoverIndex >= 0, so the click cursor is always within the plot and rowAtY always resolves a valid row — the fallback is unreachable defensive code, not a live bug. Left as-is.
  • Negative / oversized cells input silently drops those cells. Consistent with the documented "0 or missing = empty" contract; left as-is.

Verification

  • jest packages/quill/**/Heatmap — 11 passed
  • tsgo --noEmit — 0 errors in the Heatmap files (the original TS6133 is gone)
  • oxlint clean; oxfmt applied to the touched files

jonmcwest avatar Jul 16 '26 15:07 jonmcwest

CI fix: unrelated issuesDataNodeLogic.tsx change

Heads up on the one non-Heatmap file in this diff. After merging master, Frontend typechecking started failing with:

products/error_tracking/frontend/logics/issuesDataNodeLogic.tsx(8,5): error TS6196: 'AnyResponseType' is declared but never used.

This is a master-side breakage from the in-flight inline-Kea-types migration, not from the Heatmap work — the file is byte-identical to origin/master. kea-typegen now expands the inline setResponse parameter from Exclude<AnyResponseType, undefined> to the explicit response union, which orphans the AnyResponseType type import, and tsgo (noUnusedLocals) fails the whole frontend typecheck.

The fix inlines the resolved union (identical to typegen:write's output and to the existing return type) and drops the unused import, so the file is idempotent under typegen:write. Verified locally: typegen:write + tsgo --noEmit no longer reports the error and leaves the change in place.

Happy to drop this from the PR once master is green again if the migration lands its own fix.

🦉 via talyn.dev

jonmcwest avatar Jul 16 '26 16:07 jonmcwest

Static Badge   Static Badge   Static Badge   Static Badge

View Full Report ↗︎ ⋅ Docs

trunk-io[bot] avatar Jul 16 '26 16:07 trunk-io[bot]

Reviews (1): Last reviewed commit: "Merge branch 'master' into posthog-code/..." | Re-trigger Greptile

greptile-apps avatar Jul 17 '26 11:07 greptile-apps

✅ Visual changes approved by @jonmcwest — baseline updated in 4e79056.

View this run in PostHog

6 new.

posthog[bot] avatar Jul 17 '26 12:07 posthog[bot]

Both greptile P1 review threads are addressed and resolved (commit d5ed996):

  • CSS-variable accent — added resolveCssColor, applied to the heatmap accent so a var(--…) color is resolved to a concrete value before it reaches the canvas (previously blanked non-empty cells).
  • Duplicate x-labels — columns are now keyed by index (the same band-key-by-index pattern FunnelChart uses), so repeated xLabels no longer collapse; formatters map keys back to the display label, keeping the tooltip/click contract unchanged.

Both fixes have regression tests; all 23 charts unit tests pass, build typecheck and lint are clean. Branch has been brought up to date with master via a signed merge (no conflicts, no unrelated files in the diff).

CI status: all automated checks are green — including the full 16-shard chromium visual-regression matrix, backend, lint, and typecheck. The remaining red checks are the PostHog Visual Review gate ("6 new") and the required code review, both of which need a human:

  • The 6 visual changes are all new snapshots (none are changed), i.e. the new Heatmap stories that this PR adds — they need approval in the Visual Review UI, they aren't a regression.
  • REVIEW_REQUIRED needs an approving code review.

I can't resolve either of those myself, so I'm stopping here. Everything within my control is green.

🦉 via talyn.dev

jonmcwest avatar Jul 17 '26 12:07 jonmcwest

🦔 Hogbox preview · ✅ ready

▶ Open the preview

🔑 Login [email protected] / 12345678 (demo data)
🧩 Running this PR's backend and frontend, on the PostHog :master base
🔗 Link stable across rebuilds — a re-push swaps the box underneath, the URL stays
🔒 Access tailnet only (PostHog VPN)
🛠️ Admin inspect & debug state in hogland
💤 Idle sleeps after ~30 min idle (snapshot to S3, zero node cost) and wakes on your next visit in ~30s, behind a brief "waking up" screen

commit 989c1ac · box box-0293a758207f · ready in 819s (push → usable) · build log · rebuilds on every push, torn down on close

github-actions[bot] avatar Jul 17 '26 13:07 github-actions[bot]

CI fix: unrelated featurePreviewsLogic.tsx typegen drift

The Frontend typechecking job failed on the schema:build:json + git diff --exit-code step, flagging frontend/src/layout/FeaturePreviews/featurePreviewsLogic.tsx — its inline kea-typegen interfaces were stale (the Coming Soon waitlist survey work added concept-survey actions, a reducer value, and a selector without regenerating them). This drift is already present on master, so it lands on any branch that merges master; it is unrelated to the heatmap chart.

Regenerated the inline types in 539c9d9 (the file now hashes to exactly what kea-typegen produces), which clears the check.

🦉 via talyn.dev

jonmcwest avatar Jul 17 '26 13:07 jonmcwest

@posthog-bot this needs a screenshot

jonmcwest avatar Jul 17 '26 14:07 jonmcwest

CI note: flaky Playwright E2E, unrelated to this PR

The Playwright E2E tests job flaked on two consecutive runs, each failing a different unrelated test:

  • attempt 1: SQL Editor › Basic flow › Save view
  • attempt 2: Notebooks › Add a trend insight, expand it, verify data, and filter by date range — this one is already tracked as flaky in Trunk

Neither touches the quill charts package this PR changes (172/173 passing on attempt 2). Re-running to get a clean pass; the root cause sits in those scenes, not here.

🦉 via talyn.dev

jonmcwest avatar Jul 17 '26 14:07 jonmcwest

Deploy status

Environment Status Deployed At Workflow
dev :white_check_mark: Deployed 2026-07-17 17:27 UTC Run
prod-us :white_check_mark: Deployed 2026-07-17 17:48 UTC Run
prod-eu :white_check_mark: Deployed 2026-07-17 17:48 UTC Run

Made a PR to tackle this!

Aditya-Tripuraneni avatar Jul 20 '26 23:07 Aditya-Tripuraneni

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

424385117 avatar Jul 20 '26 23:07 424385117

PR #688 implements the MiMo configuration path and shape, and its code-side validation is green: 240 tests pass; install/reinstall/uninstall preserves unrelated settings and is idempotent. I am keeping this issue open because a released MiMo client was not available here, so MCP discovery and a real CRG tool invocation have not been proven yet. The remaining evidence needed is mimo --version, mimo mcp list, one successful CRG tool call, then reinstall and uninstall from an isolated project.

tirth8205 avatar Jul 27 '26 17:07 tirth8205

Evidence is attached to the PR now.

Aditya-Tripuraneni avatar Aug 07 '26 01:08 Aditya-Tripuraneni

@Aditya-Tripuraneni I did review the evidence, but on the PR rather than here, so this thread looked dead. My fault.

State of #688 right now:

  • Code side is fine. The config shape matches the contract, the suite passes, ruff and mypy are clean, the .jsonc preference works and uninstall is surgical.
  • Two things were left open in my 19 August review and are still open: drop the docs/validation/pr-688-mimo-connected.png commit (binary validation artifacts do not belong in the repo, and pyproject.toml force-includes docs/ into every sdist, so it ships to every user), and fix uninstall when both .mimocode/mimocode.json and .mimocode/mimocode.jsonc carry the entry, where it currently cleans only the .jsonc and leaves a live entry behind.
  • As of 15 September the branch no longer merges into staging. Conflicts in README.md, code_review_graph/cli.py and docs/USAGE.md. In cli.py the resolution needs to keep both mimo and the hermes entry that staging added; the PR's version drops hermes.

So this is waiting on you, not on me. Rebase, resolve those three files, drop the PNG, fix the double-config uninstall, and re-post the client evidence as an attachment on the PR conversation rather than as a committed file.

Keeping the issue open until #688 lands.

tirth8205 avatar Sep 16 '26 20:09 tirth8205

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

424385117 avatar Sep 16 '26 20:09 424385117

这是来自QQ邮箱的假期自动回复邮件。   您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。

424385117 avatar Nov 09 '26 21:11 424385117