Skip to content

fix(ChatInput): add data-analytics-name to action bar buttons#3308

Open
rzp-slash[bot] wants to merge 4 commits intomasterfrom
fix/chat-input-razor-analytics-missing-name
Open

fix(ChatInput): add data-analytics-name to action bar buttons#3308
rzp-slash[bot] wants to merge 4 commits intomasterfrom
fix/chat-input-razor-analytics-missing-name

Conversation

@rzp-slash
Copy link
Copy Markdown
Contributor

@rzp-slash rzp-slash Bot commented Mar 24, 2026

Problem

RazorAnalytics was throwing a "Missing Name" error for the interactive elements inside ChatInputActionBar — the Upload file link-button, the Submit button, and the Stop button — because none of them had a data-analytics-name attribute.

Blade's analytics utility (makeAnalyticsAttribute) forwards data-analytics-* attributes to the DOM/native layer. RazorAnalytics then reads data-analytics-name to identify the element; when it's absent, it logs the "Missing Name" error.

Fix

Added data-analytics-name to all three interactive elements in ChatInputActionBar.tsx:

Element data-analytics-name
Upload file (Link) chat-input-upload-file
Submit (Button) chat-input-submit
Stop (Button) chat-input-stop

Testing

  • Verify no RazorAnalytics "Missing Name" errors appear in the console when ChatInput is rendered.
  • Confirm all three buttons still function correctly (upload, submit, stop).

🤖 Generated with Claude Code

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 24, 2026

🦋 Changeset detected

Latest commit: 7f441da

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@razorpay/blade Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 24, 2026

✅ PR title follows Conventional Commits specification.

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci Bot commented Mar 24, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7f441da:

Sandbox Source
razorpay/blade: basic Configuration

razorpay-swe-agent and others added 3 commits March 24, 2026 20:45
…s attrs

- Add missing trailing newline to ChatInputActionBar.tsx (fixes prettier lint)
- Update ChatInput.web.test.tsx.snap to include data-analytics-name attrs
  on the upload file Link and submit Button elements

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…utes

Snapshots for ChatInput.ssr.test.tsx were failing because the new
data-analytics-name attributes added to the Upload file link and Submit
button in ChatInputActionBar weren't reflected in the stored snapshots.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

0 participants