Skip to content

feat: Enhance README Generator with Profile Presets and Section Reset Actions#8264

Merged
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/readme-presets-section-reset
Jul 23, 2026
Merged

feat: Enhance README Generator with Profile Presets and Section Reset Actions#8264
JhaSourav07 merged 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/readme-presets-section-reset

Conversation

@dinesh9997

Copy link
Copy Markdown
Contributor

Description

Resolves #8218.

This PR introduces 1-click Profile Preset Templates and single-click Section Reset action buttons to the README Generator (/generator), eliminating manual input clearing and accelerating profile setup.

Key Enhancements & Features:

  1. 1-Click Profile Presets Loader:
    • Full-Stack Developer: Prefills JavaScript, TypeScript, React, Next.js, Node.js, MongoDB, PostgreSQL, Docker, Git.
    • Open Source Maintainer: Prefills TypeScript, Go, Rust, Python, Docker, Kubernetes, GraphQL, Linux, and Repo Spotlight.
    • Data Scientist & AI Engineer: Prefills Python, PyTorch, TensorFlow, Pandas, NumPy, Jupyter, AWS, and Pacman Contribution Graph.
    • Frontend Specialist & UI Engineer: Prefills React, Vue, Next.js, TailwindCSS, Figma, Framer, Sass, and Snake Graph.
  2. Section Reset Buttons:
    • Added a RotateCcw reset button to every SectionCard header (Name, Description, Technologies, Socials, CommitPulse Badge, Contribution Visualizations, Repo Spotlight, and Latest Articles).
    • Clicking reset clears only that specific section's inputs without collapsing the section accordion.

Target Files Modified / Created:

  • app/generator/data/presets.ts [NEW]
  • app/generator/components/SectionCard.tsx
  • app/generator/components/EditorPanel.tsx
  • app/generator/GeneratorClient.tsx
  • app/generator/components/sections/*.tsx
  • app/generator/components/EditorPanel.presets-and-reset.test.tsx [NEW]

Verification & Testing

  • Unit Tests: Ran npx vitest run app/generator/components/EditorPanel.presets-and-reset.test.tsx app/generator/components/SectionCard.accessibility.test.tsx app/generator/components/EditorPanel.empty-fallback.test.tsx31 / 31 tests passed.
  • TypeScript Check: Ran npx tsc --noEmit0 errors.
  • Linting: Passed eslint --fix and prettier pre-commit checks cleanly.

GSSoC 2026 Contribution

Copilot AI review requested due to automatic review settings July 22, 2026 14:55
@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

@dinesh9997 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 pull request introduces significant enhancements to the README Generator by adding Profile Preset Templates and Section Reset actions, which should improve user experience and efficiency. It's worth noting that similar past decisions, such as enforcing uniqueness in selected technologies and validating responsive breakpoints, have aimed to enhance the robustness and usability of the generator. Looking forward to your feedback on this improvement! 😊

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: Add Section Reset actions and Profile Presets to README Generator (#8218) feat: Enhance README Generator with Profile Presets and Section Reset Actions Jul 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

📦 Next.js Bundle Size Report (Gzipped Sizes)

Asset PR Size Base Size Difference Status
static/chunks/1176-[hash].js 2.33 KB - +2.33 KB (++100%) 🆕 New
static/chunks/498-[hash].js 4.97 KB 5.06 KB -0.09 KB (-1.87%) 🟢 Improvement
static/chunks/8117-[hash].js 5.07 KB - +5.07 KB (++100%) 🆕 New
static/chunks/8607-[hash].js - 2.27 KB -2.27 KB (-100.00%) 🗑️ Deleted
static/chunks/app/generator/page-[hash].js 32.93 KB 31.64 KB +1.29 KB (+4.07%) 🔴 Regression
static/css/[hash].css 41.16 KB 41.08 KB +0.07 KB (+0.17%) 🔴 Regression

📊 Summary of Totals

Category PR Size Base Size Difference
Total JS 4002.66 KB 3985.28 KB +17.38 KB (+0.44%)
Total CSS 332.18 KB 331.41 KB +0.78 KB (+0.23%)

@Aamod007 Aamod007 added level:critical High-priority or mission-critical contributions affecting core systems, security, or infrastructure quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. 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.

This is a fantastic enhancement for the README generator! Adding profile presets will make it significantly faster and easier for new users to generate a great looking README without manually configuring everything. The implementation is clean and integrates nicely into the existing generator form sections.

Great work!

Label Justification:

  • \level:critical: Assigned based on 6 files changed across the generator UI components and data layers.
  • \quality:clean: Excellent state management and prop passing for the reset functionality.
  • \ ype:feature: Introduces a brand new profile preset feature to the generator.
  • \mentor:Aamod007: Assigned as required.

@JhaSourav07 JhaSourav07 added the gssoc:approved PR has been reviewed and accepted for valid contribution points label Jul 23, 2026
@JhaSourav07
JhaSourav07 merged commit 11b163e into JhaSourav07:main Jul 23, 2026
10 of 11 checks passed
@github-actions github-actions Bot added this to the GSSoC 2026 milestone Jul 23, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🎉 Congratulations @dinesh9997! Your PR has been successfully merged. 🚀

Thank you for contributing to CommitPulse. Your work helps us build a better tool for the community.

⚠️ Important for GSSoC Contributors:
You are strictly advised to join our Discord Server as it is mandatory for all GSSoC participants. All important announcements, point claims, and community discussions happen there.

Keep building! 💻✨

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

Labels

gssoc:approved PR has been reviewed and accepted for valid contribution points level:critical High-priority or mission-critical contributions affecting core systems, security, or infrastructure mentor:Aamod007 quality:clean PR follows clean coding practices, proper formatting, documentation, and maintainability standards. type:feature New features, additions, or enhancements

Projects

None yet

4 participants