Skip to content

Alphabetically Sort SOCIALS List for Improved User Experience#8270

Open
pisum-sativum wants to merge 4 commits into
JhaSourav07:mainfrom
pisum-sativum:fix-socials-sort
Open

Alphabetically Sort SOCIALS List for Improved User Experience#8270
pisum-sativum wants to merge 4 commits into
JhaSourav07:mainfrom
pisum-sativum:fix-socials-sort

Conversation

@pisum-sativum

Copy link
Copy Markdown
Contributor

Description

Fixes #6501

Automatically sorts the SOCIALS list alphabetically by platform name before it is exported. When this list is mapped over to render the UI selection grid, the alphabetical sorting makes it significantly easier for users to quickly scan and find their desired platform (e.g., 'CodePen' or 'Snapchat') without having to read through the entire list manually.

Pillar

  • 🎨 Pillar 1 — New Theme Design
  • 📐 Pillar 2 — Geometric SVG Improvement
  • 🕐 Pillar 3 — Timezone Logic Optimization
  • 🛠️ Other (Bug fix, refactoring, docs)

Visual Preview

(No visual changes to the design itself, but the dropdown order of socials is now alphabetized)

Checklist before requesting a review:

  • I have read the CONTRIBUTING.md file.
  • I have tested these changes locally (localhost:3000/api/streak?user=YOUR_USERNAME).
  • I have run npm run format and npm run lint locally and resolved all errors (CI will fail otherwise).
  • My commits follow the Conventional Commits format (e.g., feat(themes): ..., fix(calculate): ...).
  • I have updated README.md if I added a new theme or URL parameter.
  • I have started the repo.
  • I have made sure that i have only one commit to merge in this PR.
  • The SVG output matches the CommitPulse "premium quality" aesthetic standard (no raw elements, smooth animations, correct fonts).
  • (Recommended) I joined the CommitPulse Discord community for contributor discussions, mentorship, and faster PR support.

Copilot AI review requested due to automatic review settings July 22, 2026 16:44
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@pisum-sativum is attempting to deploy a commit to the jhasourav07's projects Team on Vercel.

A member of the Team first needs to authorize it.

@retenta-bot

retenta-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

This PR addresses issue #6501 by ensuring that the SOCIALS list is sorted alphabetically, making it easier for users to find their desired platform. This aligns with previous decisions aimed at improving user experience, such as fixing theme rendering based on system preferences and ensuring social URLs are correctly formatted. Thank you for your contribution, and I look forward to your updates!

@retenta-bot retenta-bot Bot changed the title Fix socials sort Alphabetically Sort SOCIALS List for Improved User Experience Jul 22, 2026

Copilot AI left a comment

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.

Pull request overview

This PR aims to improve the generator UI’s socials selection experience by exporting the SOCIALS registry in alphabetical order, making the platform grid easier to scan.

Changes:

  • Alphabetically sorts the exported SOCIALS array by name.
  • Adjusts MAX_ACTION_PAGES in CI analytics fetching (note: unrelated to the PR’s stated scope).

Reviewed changes

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

File Description
app/generator/data/socials.ts Sorts the exported socials registry alphabetically to improve UI scanning.
services/github/ci-analytics.ts Changes pagination limit for GitHub Actions analytics fetching (scope mismatch with PR goal).

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

Comment on lines 15 to 18
const GITHUB_REST_URL = 'https://api.github.com';
const MAX_REPO_PAGES = 2;
const MAX_ACTION_PAGES = 2;
const MAX_ACTION_PAGES = 1;
const MAX_FETCH_TARGETS = 5;
Comment thread app/generator/data/socials.ts Outdated
placeholder: 'e.g. https://huggingface.co/yourname',
},
];
].sort((a, b) => a.name.localeCompare(b.name));
Comment thread app/generator/data/socials.ts Outdated
placeholder: 'e.g. https://huggingface.co/yourname',
},
];
].sort((a, b) => a.name.localeCompare(b.name));
@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Jul 22, 2026
@pisum-sativum

Copy link
Copy Markdown
Contributor Author

@JhaSourav07 @Aamod007 I have done the necessary changes kindly check and merge with appropriate labels.

@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

✨ No significant bundle size changes detected.

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 3984.87 KB 3984.83 KB +0.04 KB (+0.00%)
Total CSS 331.41 KB 331.41 KB 0 B

@Aamod007 Aamod007 added level:intermediate Moderate complexity tasks type:feature New features, additions, or enhancements mentor:Aamod007 labels Jul 23, 2026

@Aamod007 Aamod007 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for adding alphabetical sorting to the SOCIALS list! This is a great user experience improvement.

However, it looks like this PR includes an unrelated change to \services/github/ci-analytics.ts.

To fix this, please revert the changes to \ci-analytics.ts\ using \git checkout\ or \git restore\ so that this PR is focused entirely on the socials sorting.

Looking forward to getting this merged once the branch is cleaned up!

Label Justification:

  • \level:intermediate: Assigned based on 2 files changed.
  • \ ype:feature: Improves the UI by organizing the socials list alphabetically.
  • \mentor:Aamod007: Assigned as required.

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

Labels

level:intermediate Moderate complexity tasks mentor:Aamod007 type:feature New features, additions, or enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Automatically sort SOCIALS list alphabetically by category

3 participants