Skip to content

feat(generator): Enhance README customization with multiple layout templates - #8988

Open
Rakshak05 wants to merge 3 commits into
JhaSourav07:mainfrom
Rakshak05:issue-#7814
Open

feat(generator): Enhance README customization with multiple layout templates#8988
Rakshak05 wants to merge 3 commits into
JhaSourav07:mainfrom
Rakshak05:issue-#7814

Conversation

@Rakshak05

Copy link
Copy Markdown
Contributor

Description

Fixes #7814

Added support for structural layout templates (Classic, Minimalist, Data Heavy, Storyteller) in readmeGenerator.ts and the README Editor UI, enabling users to customize the ordering of their profile sections.

Summary of Changes:

  • Types & State: Defined LayoutTemplate ('classic' | 'minimalist' | 'data-heavy' | 'storyteller') in types.ts and added layoutTemplate to GeneratorState.
  • Generator Core: Modularized section builders in readmeGenerator.ts and arranged sections dynamically according to the chosen template.
  • UI Editor: Created the LayoutTemplateSection component in the editor sidebar with visual template badges and section order previews.
  • Presets: Configured default PROFILE_PRESETS with matching layout templates.
  • Test Coverage: Added dedicated unit tests in readmeGenerator.layout-templates.test.ts verifying section reordering across all templates.

Pillar

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

Visual Preview

(Optional: Attach a screenshot or GIF of the new Layout Template selector card from the generator UI)

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 starred 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 lite review requested due to automatic review settings August 10, 2026 11:46
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

@Rakshak05 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 Aug 10, 2026

Copy link
Copy Markdown

This pull request introduces multiple layout templates for the README generator, enhancing user customization options. It aligns with previous decisions to improve user experience, such as the addition of a dark/light preview background toggle. This feature will allow users to visualize their README in different contexts, similar to how the background toggle enhances the contribution graph embed preview. Great work on this! Looking forward to your contributions.

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@retenta-bot retenta-bot Bot changed the title feat(generator): Add support for multiple layout templates-#7814 feat(generator): Enhance README customization with multiple layout templates Aug 10, 2026
@github-actions github-actions Bot added the status:blocked This PR is blocked due to a failing CI check. label Aug 10, 2026
@github-actions github-actions Bot removed the status:blocked This PR is blocked due to a failing CI check. label Aug 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/app/generator/page-[hash].js 37.76 KB 36.59 KB +1.17 KB (+3.21%) 🔴 Regression
static/css/[hash].css 43.63 KB 43.55 KB +0.08 KB (+0.18%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 5002.89 KB 4998.89 KB +4.00 KB (+0.08%)
Total CSS 355.00 KB 354.18 KB +0.82 KB (+0.23%)

@github-actions github-actions Bot added the type:feature New features, additions, or enhancements label Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:feature New features, additions, or enhancements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: Add Support for Multiple Layout Templates

2 participants