Skip to content

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

Open
dinesh9997 wants to merge 1 commit into
JhaSourav07:mainfrom
dinesh9997:feat/readme-presets-section-reset
Open

feat: Enhance README Generator with Profile Presets and Section Reset Actions#8264
dinesh9997 wants to merge 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%)

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

Labels

None yet

Projects

None yet

2 participants