Repository navigation
feat(app): TRELLIS one-click 3D, paid remesh, English dashboard copy - #141
Conversation
- The output/project page "process with 3D" action now runs TRELLIS v1 (5 credits) instead of Meshy 6 (55); higher-quality 3D stays in the workspace model picker. - /api/jobs/remesh reserves REMESH_CREDITS (4, priced like TripoSR since fal publishes no price for the endpoint) before the fal call, refunds when the submission fails, answers 402 on a low balance, and settles the charge against the model's job once fal accepts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Aucau8tZkzFeA555Qzzb6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Aucau8tZkzFeA555Qzzb6
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Hard-coded Turkish in the workspace gallery (incl. relative times and tool names), preview, layout toasts/banner, SRT voiceover result, output catalog, support chat and sidebar now follows the locale via useLocaleText / pickLocaleText. Turkish text is unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Aucau8tZkzFeA555Qzzb6
Tabs, model pickers, presets, logo/edit options, field labels, placeholders, hints, credit badges, time labels, toasts and button labels in the tool form now follow the locale. Values sent to the server (model names, composed AI prompts, edit/logo labels used in prompts) are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011Aucau8tZkzFeA555Qzzb6
- Image input issues carry an English messageEn next to the Turkish message
(built by positionedIssue, read through issueMessage); the 422 preflight
body passes it on, so server-side rejections show in English on /en too.
- limitsSummary / unverifiedLimitsNote / describeTransform take a locale; the
*Tr functions stay as wrappers. Model advisories are { tr, en } pairs.
- Image prepare and image error dialogs, product-type labels and tool
suggestions (product-intel), and the social-kit image notes follow the
locale.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011Aucau8tZkzFeA555Qzzb6
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4dcaf85f43
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // fal accepted the request: settle the charge against the model's job. | ||
| // If this write fails the reservation stays open and the stuck-jobs cron | ||
| // refunds it, which errs in the user's favour. | ||
| try { | ||
| await confirmSpend(txId, output.job_id); |
There was a problem hiding this comment.
Settle remesh credits only after terminal success
When fal accepts the queue request but later reports FAILED, this immediately marks the reservation completed even though the status route only returns the failure and never refunds it. Because refund_credits only operates on reserved transactions, users permanently lose four credits for failed remeshes; preserve the reservation and confirm it only when the provider result succeeds, while refunding terminal failures.
Useful? React with 👍 / 👎.
| // Reserve before the paid call; a rejected submission is refunded below. | ||
| let txId: string; | ||
| try { | ||
| txId = await reserveCredits(user.id, REMESH_CREDITS, `remesh [output:${outputId}]`); |
There was a problem hiding this comment.
Require an idempotency key before charging remesh requests
Every identical POST creates a fresh reservation and fal request, with no durable operation record or idempotency key. If the response is lost after fal accepts the first request and the caller retries, both attempts are charged and processed even though the caller requested one remesh; persist and reuse an idempotency key scoped to the user, output, format, and parameters.
AGENTS.md reference: AGENTS.md:L126-L126
Useful? React with 👍 / 👎.
| // Reserve before the paid call; a rejected submission is refunded below. | ||
| let txId: string; | ||
| try { | ||
| txId = await reserveCredits(user.id, REMESH_CREDITS, `remesh [output:${outputId}]`); |
There was a problem hiding this comment.
Wire the paid endpoint into the remesh UI
A repository-wide search for /api/jobs/remesh finds only this route, its status route, and tests; the output page still renders RemeshButton, which performs a client-side Three.js repair and never invokes this paid path. Consequently, users have no application flow that can start or poll the newly charged fal remesh operation, so the advertised paid-remesh behavior is unreachable from the product UI.
Useful? React with 👍 / 👎.
Summary
These are the follow-ups to #140, based on the owner's decisions.
Pricing
/api/jobs/remeshreservesREMESH_CREDITSbefore the fal call and refunds if the submission fails.fal-ai/triposr/remeshing. It is set in one constant insrc/lib/jobs/remesh-token.ts.English dashboard copy
useLocaleText()/pickLocaleText()(src/hooks/use-locale-text.ts) put the TR and EN copy inline next to the markup. Turkish text is unchanged.Workspace tool form:
Values sent to the server are unchanged: model names, composed AI prompts, and the edit/logo labels used in prompts.
Gallery (relative times, tool names, menus, delete confirm), preview, layout toasts and banner, SRT voiceover result, output catalog, support chat and sidebar.
Image checks:
ImageInputIssuegainsmessageEn, built bypositionedIssueand read throughissueMessage.limitsSummary,unverifiedLimitsNoteanddescribeTransformtake a locale, and the*Trversions stay as wrappers.{ tr, en }pairs.Product suggestions:
product-intelcategory labels, rationale notes and tool suggestions have English versions.Not changed: error text that comes back from the server's generic error responses is shown as received.
Test plan
tsc --noEmitand eslint cleanvitest run: 1153/1153. New tests:messageEnin the 422 bodynext buildcompiles/en/appshows English in the form, gallery and dialogs/tr/appis unchanged🤖 Generated with Claude Code
https://claude.ai/code/session_011Aucau8tZkzFeA555Qzzb6