fix(home,integrations): optical-center home input + integrations page render fix#4916
Conversation
…ge renders The merged email-verification blocks (zerobounce, neverbounce, millionverifier) were serialized into integrations.json with a typo'd `integrationTypes: ["sales"]` plural array instead of the singular `integrationType` the catalog reads. They fell into an `undefined` category bucket, and sorting sections by label threw "Cannot read properties of undefined (reading 'localeCompare')", erroring the whole page. - Correct the three entries to `integrationType: "sales"` (matches each block config's IntegrationType.Sales and the generator's output) - Defensively skip any integration without an integrationType when grouping so a single malformed catalog entry can never crash the page again
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview Home empty state layout is adjusted so the heading and input sit at the optical center ( Reviewed by Cursor Bugbot for commit 11e1166. Configure here. |
Greptile SummaryThis PR fixes two unrelated bugs: a crash on the integrations page caused by a
Confidence Score: 5/5Safe to merge — both changes are isolated bug fixes with no side-effects on other paths. The JSON corrections are verified complete (zero remaining No files require special attention. Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[integrations.json loaded as Integration array] --> B{for each integration}
B --> C{integrationType exists?}
C -- No, NEW GUARD --> D[skip entry]
C -- Yes --> E[get bucket from grouped map]
E --> F{bucket exists?}
F -- Yes --> G[push to bucket]
F -- No --> H[create new bucket]
G & H --> I[sort items by name]
I --> J[sort sections by label]
J --> K[ALL_CATEGORY_SECTIONS rendered]
subgraph JSON Fix
L[integrationTypes plural typo] --> M[integrationType singular correct]
end
M --> A
Reviews (1): Last reviewed commit: "move home chat to optical center" | Re-trigger Greptile |
Summary
integrationTypes: ["sales"]instead of the singularintegrationTypethe catalog reads, so they fell into anundefinedbucket andlocaleComparethrew while sorting sections — erroring the whole page. Corrected the three entries and defensively skip any integration missingintegrationTypewhen grouping.Type of Change
Testing
Tested manually
Checklist