Skip to content

Conversation

@mfts
Copy link
Owner

@mfts mfts commented Oct 1, 2025

Summary by CodeRabbit

  • New Features

    • Added a Privacy Policy link with an external-arrow icon in the access form footer, directing to the marketing privacy page.
  • Style

    • Updated the access form footer to a vertical layout with improved spacing for readability.
    • Refined Papermark link styling (medium weight with hover state) and added punctuation for clarity.
    • Updated the Papermark link destination to papermark.com/home.

@vercel
Copy link

vercel bot commented Oct 1, 2025

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

Project Deployment Preview Comments Updated (UTC)
papermark Ready Ready Preview Comment Oct 3, 2025 5:58pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 1, 2025

Walkthrough

Updated the access form’s footer when useCustomAccessForm is false: adjusted layout to a vertical stack, changed the Papermark link URL and styling, added a Privacy Policy line with an external-link icon, and imported the required icon. Minor punctuation change.

Changes

Cohort / File(s) Summary
Access Form UI
components/view/access-form/index.tsx
Imported ArrowUpRightIcon; changed non-custom footer layout to vertical stack with gaps; updated Papermark link to https://www.papermark.com/home with medium weight and hover style; added Privacy Policy line linking to marketing privacy page with icon; added period after Papermark link.

Pre-merge checks

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title succinctly highlights the primary feature of adding a privacy policy line, which is the central change introduced in this pull request and aligns directly with the summary of modifications.

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9f1aa0b and 40552a3.

📒 Files selected for processing (1)
  • components/view/access-form/index.tsx (2 hunks)
🔇 Additional comments (3)
components/view/access-form/index.tsx (3)

4-4: LGTM!

The icon import is correctly added and used in the Privacy Policy link below.


197-209: LGTM!

The layout refactor from horizontal centering to a vertical stack appropriately accommodates the new Privacy Policy line. The URL update, styling adjustments, and punctuation refinement are all appropriate.


210-221: Approve Privacy Policy link implementation
Verified that NEXT_PUBLIC_MARKETING_URL is defined in .env.example.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 94839a3 and 9f1aa0b.

📒 Files selected for processing (1)
  • components/view/access-form/email-section.tsx (2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Vercel Agent Review
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (2)
components/view/access-form/email-section.tsx (2)

4-4: LGTM!

The import is correctly added and the icon is used appropriately in the Privacy Policy link.


152-152: Ensure NEXT_PUBLIC_MARKETING_URL is defined in all deployment environments
It’s only declared in .env.example; confirm it’s set in your actual .env.local/.env.production files or in your hosting platform’s environment settings to avoid broken links.

Comment on lines 146 to 161
<p className="text-sm text-gray-500">
{useCustomAccessForm
? "This data will be shared with the content provider."
: "This data will be shared with the sender."}
? "This data will be shared with the content provider. "
: "This data will be shared with the sender. "}
Learn more about how we use and protect your data in our{" "}
<a
href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
target="_blank"
rel="noopener noreferrer"
className="flex items-center text-gray-500 hover:text-gray-600"
>
<span>Privacy Policy</span>
<ArrowUpRightIcon className="h-4 w-4 text-gray-500" />
</a>
.
</p>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Fix the link layout to maintain inline text flow.

The flex items-center class on the anchor tag will break the paragraph's text flow, causing the link to become a block-level element instead of staying inline with the surrounding text.

Apply this diff to fix the layout:

-        <a
-          href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
-          target="_blank"
-          rel="noopener noreferrer"
-          className="flex items-center text-gray-500 hover:text-gray-600"
-        >
-          <span>Privacy Policy</span>
-          <ArrowUpRightIcon className="h-4 w-4 text-gray-500" />
-        </a>
+        <a
+          href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
+          target="_blank"
+          rel="noopener noreferrer"
+          className="inline-flex items-center gap-0.5 text-gray-500 hover:text-gray-600"
+        >
+          Privacy Policy
+          <ArrowUpRightIcon className="h-3 w-3" aria-hidden="true" />
+        </a>

Changes:

  • Use inline-flex instead of flex to maintain inline flow
  • Add gap-0.5 for consistent spacing between text and icon
  • Remove unnecessary <span> wrapper
  • Add aria-hidden="true" to the icon since it's decorative
  • Slightly reduce icon size to h-3 w-3 for better proportion with inline text
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
<p className="text-sm text-gray-500">
{useCustomAccessForm
? "This data will be shared with the content provider."
: "This data will be shared with the sender."}
? "This data will be shared with the content provider. "
: "This data will be shared with the sender. "}
Learn more about how we use and protect your data in our{" "}
<a
href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
target="_blank"
rel="noopener noreferrer"
className="flex items-center text-gray-500 hover:text-gray-600"
>
<span>Privacy Policy</span>
<ArrowUpRightIcon className="h-4 w-4 text-gray-500" />
</a>
.
</p>
<p className="text-sm text-gray-500">
{useCustomAccessForm
? "This data will be shared with the content provider. "
: "This data will be shared with the sender. "}
Learn more about how we use and protect your data in our{" "}
<a
href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
target="_blank"
rel="noopener noreferrer"
className="inline-flex items-center gap-0.5 text-gray-500 hover:text-gray-600"
>
Privacy Policy
<ArrowUpRightIcon className="h-3 w-3" aria-hidden="true" />
</a>
.
</p>
🤖 Prompt for AI Agents
components/view/access-form/email-section.tsx lines 146-161: the anchor uses
"flex items-center" which breaks inline paragraph flow; change it to
"inline-flex items-center gap-0.5" to keep the link inline and add small
spacing, remove the unnecessary <span> wrapper around the link text so the text
and icon are direct children of the <a>, set the icon props to
aria-hidden="true" and reduce its classes to "h-3 w-3" for proper inline sizing.

href={`${process.env.NEXT_PUBLIC_MARKETING_URL}/privacy`}
target="_blank"
rel="noopener noreferrer"
className="flex items-center text-gray-500 hover:text-gray-600"
Copy link

Choose a reason for hiding this comment

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

Suggested change
className="flex items-center text-gray-500 hover:text-gray-600"
className="inline-flex items-center text-gray-500 hover:text-gray-600"

The privacy policy link uses flex items-center styling which is inappropriate for inline text and inconsistent with other privacy policy links in the codebase.

View Details

Analysis

Privacy policy link uses block-level flex instead of inline-flex in paragraph text

What fails: Privacy policy link in EmailSection component uses flex items-center which creates a block-level flex container, disrupting text flow within the paragraph

How to reproduce:

// In components/view/access-form/email-section.tsx line 155
<a className="flex items-center text-gray-500 hover:text-gray-600">
  <span>Privacy Policy</span>
  <ArrowUpRightIcon />
</a>

Result: The link breaks normal inline text flow because flex creates a block-level container instead of inline-level

Expected: Should use inline-flex items-center for proper inline behavior within paragraph text, as confirmed by CSS flexbox documentation

Inconsistency: Other privacy policy links in the codebase use underline patterns without flex layout for inline text

@mfts mfts merged commit c04e38c into main Oct 3, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 3, 2025
@mfts mfts deleted the feat/disclosure branch November 19, 2025 11:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants