Skip to content

[BUG] Fix placeholder links and text errors across multiple pages - #11

Open
krtk119 wants to merge 7 commits into
BrunelTalentMarketplace:mainfrom
krtk119:fix/placeholder-links-and-text-errors
Open

[BUG] Fix placeholder links and text errors across multiple pages#11
krtk119 wants to merge 7 commits into
BrunelTalentMarketplace:mainfrom
krtk119:fix/placeholder-links-and-text-errors

Conversation

@krtk119

@krtk119 krtk119 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Linked Issue

Related to #10

What Changed and Why

Several placeholder values from the project template were never updated before deployment, resulting in broken links, a spelling error, and references to non-existent pages. This PR fixes all instances identified in issue #10.

How to Test

  1. Navigate to /labs, select Requirements Engineering → User Stories and Acceptance Criteria, expand any problem — confirm label now reads "User Stories" not "User Storys"
  2. Navigate to /about, scroll to bottom, click "View on GitHub" — confirm it now links to the correct repository
  3. Scroll to footer on any page — confirm only GitHub icon is present and links to https://github.com/BrunelTalentMarketplace
  4. Confirm Contact link is no longer in Quick Links
  5. Confirm Privacy Policy and Terms of Service links are no longer in the bottom bar

Type of Change

  • Bug fix

Checklist

  • My changes address only the linked issue — no unrelated modifications
  • I have tested the change locally and it works as described
  • My commits are logical, atomic, and have meaningful messages
  • This PR targets the correct upstream branch (main on the teaching repo)

Notes for Reviewer

Each fix has been committed separately for clarity. Twitter and Email social links have been removed as advised in the issue comments.

Copilot AI review requested due to automatic review settings June 18, 2026 12:19
@vercel

vercel Bot commented Jun 18, 2026

Copy link
Copy Markdown

@krtk119 is attempting to deploy a commit to the RNeykova's projects Team on Vercel.

A member of the Team first needs to authorize it.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes user-facing template placeholders and broken links identified in issue #10, improving navigation correctness and removing references to non-existent pages.

Changes:

  • Fix pluralization for the “User Stories” label in the labs hierarchy UI.
  • Replace the About page “View on GitHub” placeholder URL with the real repository URL.
  • Clean up the global footer by removing placeholder social links and non-existent page links, and updating the GitHub destination.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
components/labs/CaseStudyHierarchy.tsx Updates user story plural label generation to avoid “User Storys”.
components/Footer.tsx Removes placeholder/invalid footer links and updates GitHub social link to the correct org.
app/about/page.tsx Fixes “View on GitHub” button to link to the correct repository.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 31 to 33
const userStoryLabel = hierarchy.labels.userStory ?? "User Story";
const userStoriesLabel = `${userStoryLabel}s`;
const userStoriesLabel = userStoryLabel === "User Story" ? "User Stories" : `${userStoryLabel}s`;
const acLabel = hierarchy.labels.acceptanceCriteria ?? "Acceptance Criteria";

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed - updated the pluralisation logic to use regex replace (userStoryLabel.replace(/y$/i, 'ies')) instead of a hard-coded equality check. This now correctly handles any label ending in "y", not just the default "User Story".

Comment thread components/Footer.tsx
Comment on lines 10 to 14
const footerLinks = [
{ name: "Home", href: "/" },
{ name: "About", href: "/about" },
{ name: "Labs", href: "/labs" },
{ name: "Contact", href: "/contact" },
];

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed - removed the Contact link from the Talks page footer as well (app/talks/page.tsx). Both footers are now consistent and no dead links remain.

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