Skip to content

feat: ✨ add a tally contact form#684

Merged
megasanjay merged 4 commits into
mainfrom
tally
Jul 18, 2025
Merged

feat: ✨ add a tally contact form#684
megasanjay merged 4 commits into
mainfrom
tally

Conversation

@megasanjay
Copy link
Copy Markdown
Member

@megasanjay megasanjay commented Jul 18, 2025

Summary by Sourcery

Integrate Tally contact form into the Contact Us page and enforce Node/Yarn versions via Volta

New Features:

  • Embed Tally contact form in Contact Us page via iframe and script

Build:

  • Add Volta configuration for Node and Yarn versions

@fairdataihub-bot
Copy link
Copy Markdown

Thank you for submitting this pull request! We appreciate your contribution to the project. Before we can merge it, we need to review the changes you've made to ensure they align with our code standards and meet the requirements of the project. We'll get back to you as soon as we can with feedback. Thanks again!

@sourcery-ai
Copy link
Copy Markdown
Contributor

sourcery-ai Bot commented Jul 18, 2025

Reviewer's Guide

This PR embeds a Tally-powered contact form into the Contact Us page by injecting the Tally script via Next.js Head and replacing the custom form component with an iframe; it also tweaks container padding and adds Volta configuration to package.json for consistent Node/Yarn versions.

Class diagram for Contact Us page form replacement

classDiagram
  class ContactUs {
    +render()
  }
  class ContactForm {
    +render()
  }
  class iframe {
    +data-tally-src
    +loading
    +width
    +height
    +title
  }
  ContactUs --|> iframe : uses
  ContactUs ..x ContactForm : replaced
Loading

File-Level Changes

Change Details Files
Embed Tally form in Contact Us page
  • Imported Next.js Head
  • Injected async Tally script in Head
  • Replaced ContactForm component with an iframe pointing to the Tally embed endpoint
src/pages/contact-us.tsx
Adjust container padding for form section
  • Changed vertical padding on the form container from uniform py-12 to separate pt-12 and pb-8
src/pages/contact-us.tsx
Add Volta configuration to package.json
  • Appended a volta section specifying Node and Yarn versions
package.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@vercel
Copy link
Copy Markdown

vercel Bot commented Jul 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
fairdataihub-website ❌ Failed (Inspect) Jul 18, 2025 0:31am

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Jul 18, 2025

Deploying fairdataihub-org with  Cloudflare Pages  Cloudflare Pages

Latest commit: e1903f9
Status:🚫  Build failed.

View logs

@fairdataihub-bot
Copy link
Copy Markdown

Thanks for making updates to your pull request. Our team will take a look and provide feedback as soon as possible. Please wait for any GitHub Actions to complete before editing your pull request. If you have any additional questions or concerns, feel free to let us know. Thank you for your contributions!

@github-actions
Copy link
Copy Markdown
Contributor

Running Lighthouse audit...

Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

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

Hey @megasanjay - I've reviewed your changes - here's some feedback:

  • Consider using Next.js Script component from 'next/script' instead of manually adding a <script> tag in for better loading control and SSR handling.
  • The Volta config in package.json is inlined next to the homepage key; please separate and properly format it on its own lines to maintain valid JSON structure.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Consider using Next.js Script component from 'next/script' instead of manually adding a <script> tag in <Head> for better loading control and SSR handling.
- The Volta config in package.json is inlined next to the homepage key; please separate and properly format it on its own lines to maintain valid JSON structure.

## Individual Comments

### Comment 1
<location> `src/pages/contact-us.tsx:41` </location>
<code_context>
             </h2>

-            <ContactForm />
+            <iframe
+              data-tally-src="https://tally.so/embed/mRqBLd?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1"
+              loading="lazy"
+              width="100%"
+              height="276"
+              title="AI-READI Contact Form"
+            />
           </div>
</code_context>

<issue_to_address>
Review iframe accessibility and fallback content.

Consider adding fallback content inside the iframe tag to support users with iframes disabled or screen readers that may not interpret the embedded form correctly.
</issue_to_address>

<suggested_fix>
<<<<<<< SEARCH
            <iframe
+              data-tally-src="https://tally.so/embed/mRqBLd?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1"
+              loading="lazy"
+              width="100%"
+              height="276"
+              title="AI-READI Contact Form"
+            />
=======
            <iframe
              data-tally-src="https://tally.so/embed/mRqBLd?alignLeft=1&hideTitle=1&transparentBackground=1&dynamicHeight=1"
              loading="lazy"
              width="100%"
              height="276"
              title="AI-READI Contact Form"
              aria-label="Contact form for feedback or collaboration"
            >
              Your browser does not support iframes, or iframes are disabled. 
              Please visit <a href="https://tally.so/r/mRqBLd" target="_blank" rel="noopener noreferrer">this link</a> to access the contact form.
            </iframe>
>>>>>>> REPLACE

</suggested_fix>

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Comment thread src/pages/contact-us.tsx Outdated
@megasanjay
Copy link
Copy Markdown
Member Author

megasanjay commented Jul 18, 2025

📝 Changed routes:

/contact-us
Screenshot of /contact-us
(view full size)

1 deleted route:

  • /api/contact

Commit e1903f9 (https://fairdataihub-website-fjp1u98cb-fairdataihub.vercel.app).

megasanjay and others added 2 commits July 17, 2025 17:30
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
@megasanjay megasanjay merged commit 848d2f8 into main Jul 18, 2025
8 of 10 checks passed
@fairdataihub-bot
Copy link
Copy Markdown

Thanks for closing this pull request! If you have any further questions, please feel free to open a new issue. We are always happy to help!

@megasanjay megasanjay deleted the tally branch July 18, 2025 00:32
github-actions Bot pushed a commit that referenced this pull request Jul 18, 2025
# [2.52.0](v2.51.0...v2.52.0) (2025-07-18)

### Features

* ✨ add a tally contact form ([#684](#684)) ([848d2f8](848d2f8))
@fairdataihub-bot
Copy link
Copy Markdown
Member

🎉 This PR is included in version 2.52.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants