chore: improve the codebase with react doctor#917
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-mcp | 8f6c16d | May 09 2026, 07:13 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
supermemory-app | 8f6c16d | Commit Preview URL | May 09 2026, 07:14 PM |
How to use the Graphite Merge QueueAdd the label Main to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
|
Claude finished @MaheshtheDev's task in 3m 20s —— View job Review Complete
Overview: This PR applies automated "react doctor" improvements - SVG optimization, Tailwind shorthand conversion, typography fixes, and a useEffect cleanup. Critical Issue Found: The mobile usage display in Score: 4/10 - Cannot merge until the mobile view bug is fixed. |
Merge activity
|
7518b91 to
8f6c16d
Compare
There was a problem hiding this comment.
Review Summary
Overview: This PR applies automated improvements from "react doctor" - SVG path optimization, Tailwind size-* shorthand conversion, typography improvements (... → …, em-dashes → colons), and a proper useEffect cleanup fix.
Issues found:
-
Critical Bug in
apps/web/components/add-document/index.tsx: The mobile usage display section references undefined variables and components:UsageMetercomponent doesn't existtokensToCreditsfunction doesn't existtokensPercent,searchesPercent,tokensLimit,searchesLimitare not returned byuseTokenUsage
This will cause a runtime crash on mobile devices.
What looks good:
- The
documents-command-palette.tsxchange correctly adds cleanup for a setTimeout in useEffect (good memory leak fix) - SVG path truncation and CSS shorthand changes are safe cosmetic improvements
- Typography changes (ellipsis, punctuation) are benign
Score: 4/10
The PR cannot be merged as-is because the mobile view will crash. The add-document/index.tsx changes need to either be reverted or completed with the missing component and hook updates.

No description provided.