Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ describe("AIResumePromptsHub", () => {
).toBeInTheDocument();
});

expect(container.querySelectorAll("pre code")).toHaveLength(5);
expect(screen.getAllByRole("heading", { level: 4, name: "Prompt" })).toHaveLength(5);
expect(
screen.getByRole("table", {
name: /AI resume privacy controls by provider/i,
Expand Down
9 changes: 6 additions & 3 deletions resume-builder-ui/src/components/blog/AIResumePromptsHub.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Link } from "react-router-dom";
import BlogLayout from "../BlogLayout";
import CopyablePrompt from "../shared/CopyablePrompt";
import RevealSection from "../shared/RevealSection";

const REVIEW_DATE = "2026-05-25";
Expand Down Expand Up @@ -569,9 +570,11 @@ export default function AIResumePromptsHub() {
<article key={step.title} className="bg-white rounded-2xl p-6 md:p-8 shadow-premium card-gradient-border">
<h3 className="font-display text-xl font-bold text-ink">{step.title}</h3>
<p className="mt-3 text-stone-warm leading-relaxed">{step.description}</p>
<pre className="mt-4 bg-ink text-white/90 rounded-xl p-4 md:p-6 text-sm leading-relaxed overflow-x-auto">
<code>{step.code}</code>
</pre>
<div className="mt-4 not-prose">
<CopyablePrompt title="Prompt" copyText={step.code}>
<code className="whitespace-pre-wrap">{step.code}</code>
</CopyablePrompt>
Comment on lines +574 to +576
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.

medium

Using a tag instead of a is more semantically correct for representing code snippets or prompts, which improves accessibility for screen readers and SEO.

Suggested change
<CopyablePrompt title="Prompt" copyText={step.code}>
<span className="whitespace-pre-wrap">{step.code}</span>
</CopyablePrompt>
<CopyablePrompt title="Prompt" copyText={step.code}>
<code className="whitespace-pre-wrap">{step.code}</code>
</CopyablePrompt>

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@gemini-code-assist Good catch — applied in 991b6c5. <code> is more semantic for copy-paste prompt snippets.

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.

Understood. Since the change has already been applied and verified, no further action is required on this thread.

</div>
</article>
))}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,7 @@ export default function BestFreeResumeBuilders2026() {
{i + 1}
</div>
<div>
<h3 className="font-bold text-ink mb-1">{rec.scenario}</h3>
<p className="font-bold text-ink mb-1">{rec.scenario}</p>
<p className="text-stone-warm">
<strong>Pick: </strong>
{rec.link ? (
Expand Down
Loading