Skip to content

docs(config): document platform-name defaults for card tokenization 2FA copy - #927

Merged
DhruvPareek merged 1 commit into
mainfrom
dp/card-tokenization-2fa-default-copy-docs
Sep 9, 2026
Merged

docs(config): document platform-name defaults for card tokenization 2FA copy#927
DhruvPareek merged 1 commit into
mainfrom
dp/card-tokenization-2fa-default-copy-docs

Conversation

@DhruvPareek

@DhruvPareek DhruvPareek commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Reason

With lightsparkdev/webdev#34633, card-tokenization verification messages default to the platform's name instead of "wallet" and "Lightspark" when a platform has not set cardTokenization2faConfig fields. Integrators reading the spec should know what they get without overriding anything.

Overview

Description-only changes on CardTokenization2FAConfig, CardTokenization2FAEmailConfig, and CardTokenization2FASmsConfig: displayName defaults to the platform's name and drives the default sender name, subject, email body, and SMS fallback body. Each of those fields now states its default. No schema shape changes.

Test Plan

  • make build and make lint pass. Lint output shows only pre-existing informational and warning findings on unrelated schemas.

🤖 Generated with Claude Code

https://claude.ai/code/session_011dU4iNZ2goV3EnNZHso67R

…FA copy

Verification messages now default to the platform's name for the display
name, sender name, subject and body when a platform has not overridden
them (webdev#34633). Say so on each field.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011dU4iNZ2goV3EnNZHso67R
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

2 Skipped Deployments
Project Deployment Actions Updated
grid-flow-builder Ignored Ignored Preview Sep 9, 2026 9:52pm UTC
grid-wallet-demo Ignored Ignored Preview Sep 9, 2026 9:52pm UTC

Request Review

@mintlify

mintlify Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
Grid 🟢 Ready View Preview Sep 9, 2026, 9:55 PM

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@DhruvPareek DhruvPareek changed the title docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901) docs(config): document platform-name defaults for card tokenization 2FA copy Sep 9, 2026
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

✱ Stainless preview builds for grid

This PR will update the grid SDKs with the following commit messages.

cli

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

go

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

kotlin

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

openapi

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

php

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

python

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

ruby

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)

typescript

docs(sandbox): correct KYC/KYB resolution timing in the sandbox snippets (#901)
grid-typescript studio
grid-openapi studio
grid-ruby studio
grid-kotlin studio
grid-go studio
grid-python studio
grid-php studio
grid-cli studio

⏳ These are partial results; builds are still running.


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-09-09 22:50:06 UTC

@greptile-apps

greptile-apps Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

Documents the service-computed defaults for card-tokenization 2FA branding and message copy.

  • Explains that displayName falls back to the platform name.
  • Documents default email sender, subject, and body copy.
  • Documents the SMS fallback prefix.
  • Keeps the modular schemas and both generated OpenAPI bundles synchronized.

Confidence Score: 4/5

The PR appears safe to merge after a non-blocking clarification of how {displayName} notation relates to unsupported template variables.

The generated contracts remain synchronized and no behavioral or schema-shape defect was found; the only concern is documentation ambiguity that could cause integrators to mistake an illustrative substitution for supported input-template syntax.

Files Needing Attention: openapi/components/schemas/config/CardTokenization2FAEmailConfig.yaml, openapi/components/schemas/config/CardTokenization2FASmsConfig.yaml

Important Files Changed

Filename Overview
openapi/components/schemas/config/CardTokenization2FAConfig.yaml Documents the platform-name fallback and its use in generated authentication copy.
openapi/components/schemas/config/CardTokenization2FAEmailConfig.yaml Documents email defaults, but the {displayName} notation is ambiguous beside the prohibition on template variables.
openapi/components/schemas/config/CardTokenization2FASmsConfig.yaml Documents the SMS fallback default using the same unexplained placeholder notation.
openapi.yaml Updates the generated root contract consistently with the modular schema changes.
mintlify/openapi.yaml Updates the generated Mintlify contract consistently with the source schemas.
Prompt To Fix All With AI
### Issue 1
openapi/components/schemas/config/CardTokenization2FAEmailConfig.yaml:35-37
**Ambiguous displayName placeholder**

The description says template variables are unsupported, then expresses the default using `{displayName}`. The subject and SMS descriptions use the same unexplained notation. This makes it unclear whether integrators may include `{displayName}` in configured copy or whether it only illustrates a value substituted by the service. Please clarify the substitution and its fallback to the platform name.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "docs(config): document platform-name def..." | Re-trigger Greptile

Comment on lines 35 to +37
a controlled text and HTML template; arbitrary HTML and template variables
are not supported.
are not supported. Defaults to "Use this code to finish adding your
{displayName} card to your wallet."

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Ambiguous displayName placeholder

The description says template variables are unsupported, then expresses the default using {displayName}. The subject and SMS descriptions use the same unexplained notation. This makes it unclear whether integrators may include {displayName} in configured copy or whether it only illustrates a value substituted by the service. Please clarify the substitution and its fallback to the platform name.

Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/config/CardTokenization2FAEmailConfig.yaml
Line: 35-37

Comment:
**Ambiguous displayName placeholder**

The description says template variables are unsupported, then expresses the default using `{displayName}`. The subject and SMS descriptions use the same unexplained notation. This makes it unclear whether integrators may include `{displayName}` in configured copy or whether it only illustrates a value substituted by the service. Please clarify the substitution and its fallback to the platform name.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

@DhruvPareek
DhruvPareek merged commit c538a44 into main Sep 9, 2026
11 checks passed
@DhruvPareek
DhruvPareek deleted the dp/card-tokenization-2fa-default-copy-docs branch September 9, 2026 22:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants