Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 29, 2024

This PR contains the following updates:

Package Type Update Change
codecov/codecov-action action major v4 -> v5

Release Notes

codecov/codecov-action (codecov/codecov-action)

v5

Compare Source

What's Changed

Full Changelog: https://github.com/codecov/codecov-action/compare/v5.0.6..v5.0.7


Configuration

📅 Schedule: Branch creation - "before 4am on Friday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

vercel bot commented Nov 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rollup ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 29, 2024 1:19am

Copy link

github-actions bot commented Nov 29, 2024

Thank you for your contribution! ❤️

You can try out this pull request locally by installing Rollup via

npm install rollup/rollup#renovate/codecov-codecov-action-5.x

Notice: Ensure you have installed the latest stable Rust toolchain. If you haven't installed it yet, please see https://www.rust-lang.org/tools/install to learn how to download Rustup and install Rust.

or load it into the REPL:
https://rollup-1nmd5ge9p-rollup-js.vercel.app/repl/?pr=5747

Copy link

Performance report

  • BUILD: 8240ms, 731 MB
    • initialize: 0ms, 26.5 MB
    • generate module graph: 3185ms, 553 MB
      • generate ast: 1520ms, 546 MB
    • sort and bind modules: 441ms, 597 MB
    • mark included statements: 4608ms, 731 MB
      • treeshaking pass 1: 1559ms, 697 MB
      • treeshaking pass 2: 754ms, 718 MB
      • treeshaking pass 3: 295ms, 721 MB
      • treeshaking pass 4: 275ms, 727 MB
      • treeshaking pass 5: 316ms, 729 MB
      • treeshaking pass 6: 262ms, 728 MB
      • treeshaking pass 7: 244ms, 732 MB
      • treeshaking pass 8: 237ms, 731 MB
      • treeshaking pass 9: 215ms, 728 MB
      • treeshaking pass 10: 217ms, 729 MB
      • treeshaking pass 11: 213ms, 731 MB
  • GENERATE: 891ms, 981 MB
    • initialize render: 0ms, 871 MB
    • generate chunks: 90ms, 879 MB
      • optimize chunks: 0ms, 872 MB
    • render chunks: 784ms, 956 MB
    • transform chunks: 17ms, 981 MB
    • generate bundle: 0ms, 981 MB

Copy link

codecov bot commented Nov 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.00%. Comparing base (e805b54) to head (bae342a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5747   +/-   ##
=======================================
  Coverage   99.00%   99.00%           
=======================================
  Files         258      258           
  Lines        8070     8070           
  Branches     1360     1360           
=======================================
  Hits         7990     7990           
  Misses         53       53           
  Partials       27       27           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lukastaegert lukastaegert added this pull request to the merge queue Nov 30, 2024
Merged via the queue into master with commit a949c87 Nov 30, 2024
42 checks passed
@lukastaegert lukastaegert deleted the renovate/codecov-codecov-action-5.x branch November 30, 2024 06:00
Copy link

This PR has been released as part of [email protected]. You can test it via npm install rollup.

bdougie added a commit to bdougie/contributor.info that referenced this pull request Aug 7, 2025
- Fix TypeScript errors in project-faq.tsx:
  - Remove unused imports (cn, FAQAnswer type)
  - Fix RepoStats type usage (removed non-existent health/activity properties)
  - Properly handle pr.author object structure for contributor indexing
  - Remove unsupported title prop from Sparkles icon

- Fix TypeScript errors in faq-service.ts:
  - Remove unused imports and variables
  - Fix type casting for cache service
  - Handle contributor data structure properly in reduce operations
  - Fix sort function type assertions

- Work around Rollup conditional expression bug:
  - Temporarily disable treeshaking to fix build error
  - Added TODO to re-enable once Rollup issue is resolved
  - Reference: rollup/rollup#5747

Build now completes successfully with all TypeScript errors resolved.
bdougie added a commit to bdougie/contributor.info that referenced this pull request Aug 7, 2025
…rnaries

Root cause: Rollup 4.45.0 has a bug with nested ternary operators during treeshaking
that causes 'Cannot add property 0, object is not extensible' error.

Changes:
- Simplified complex nested ternary in env.ts to avoid triggering bug
- Refactored nested ternaries in project-faq.tsx to if-else statements
- Disabled treeshaking as temporary workaround for remaining nested ternaries
- Added detailed comments explaining the Rollup bug and workaround

Impact:
- Build now completes successfully
- Bundle size increased to ~5.5MB (exceeds 5MB budget) due to disabled treeshaking
- Performance Budget Check will fail until treeshaking is re-enabled

Next steps:
- Upgrade Rollup when fix is released
- Or refactor all remaining nested ternaries across codebase
- Then re-enable treeshaking to reduce bundle size

References: rollup/rollup#5747
bdougie added a commit to bdougie/contributor.info that referenced this pull request Aug 7, 2025
* feat: add FAQ sections to project pages in insights sidebar

- Create ProjectFAQ component with schema markup for better SEO
- Generate 7 dynamic FAQs per project based on repository data
- Include expand/collapse UI with smooth interactions
- Add FAQ section to insights sidebar for both desktop and mobile
- Implement proper loading states and error handling
- Questions cover contributor count, activity, trends, and patterns
- Updates dynamically when time range changes

Addresses #270

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Brian Douglas <[email protected]>

* feat: enhance FAQ with LLM service and embeddings integration

- Add faq-service.ts with OpenAI-powered dynamic answers
- Implement semantic question matching using MiniLM embeddings
- Enhanced project-faq.tsx with AI indicators and confidence scores
- Add FAQ sitemap generator for improved SEO
- Include FAQ URLs in main sitemap for major repositories
- Support graceful fallback to static answers when AI unavailable
- Add structured data and citations for better search visibility

Co-authored-by: Brian Douglas <[email protected]>

* docs: add FAQ LLM integration documentation

* fix: resolve TypeScript errors and Rollup build issue

- Fix TypeScript errors in project-faq.tsx:
  - Remove unused imports (cn, FAQAnswer type)
  - Fix RepoStats type usage (removed non-existent health/activity properties)
  - Properly handle pr.author object structure for contributor indexing
  - Remove unsupported title prop from Sparkles icon

- Fix TypeScript errors in faq-service.ts:
  - Remove unused imports and variables
  - Fix type casting for cache service
  - Handle contributor data structure properly in reduce operations
  - Fix sort function type assertions

- Work around Rollup conditional expression bug:
  - Temporarily disable treeshaking to fix build error
  - Added TODO to re-enable once Rollup issue is resolved
  - Reference: rollup/rollup#5747

Build now completes successfully with all TypeScript errors resolved.

* fix: resolve Rollup conditional expression bug and refactor nested ternaries

Root cause: Rollup 4.45.0 has a bug with nested ternary operators during treeshaking
that causes 'Cannot add property 0, object is not extensible' error.

Changes:
- Simplified complex nested ternary in env.ts to avoid triggering bug
- Refactored nested ternaries in project-faq.tsx to if-else statements
- Disabled treeshaking as temporary workaround for remaining nested ternaries
- Added detailed comments explaining the Rollup bug and workaround

Impact:
- Build now completes successfully
- Bundle size increased to ~5.5MB (exceeds 5MB budget) due to disabled treeshaking
- Performance Budget Check will fail until treeshaking is re-enabled

Next steps:
- Upgrade Rollup when fix is released
- Or refactor all remaining nested ternaries across codebase
- Then re-enable treeshaking to reduce bundle size

References: rollup/rollup#5747

* refactor: replace nested ternaries with lookup objects and helper functions

Refactored nested ternary operators to use cleaner patterns:
- web-vitals-monitoring.ts: Use lookup objects for rating emojis/colors
- pagespeed-insights.ts: Extract helper functions for delta formatting
- badge-generator.tsx: Use color constants and helper functions
- env.ts: Simplify complex nested conditional logic

These changes reduce complexity and make the code more maintainable.
However, treeshaking still needs to be disabled due to remaining
nested ternaries throughout the codebase.

The Rollup bug (issue #5747) is triggered by ANY nested ternary,
so a complete refactor of all ternaries would be needed to re-enable
treeshaking without upgrading Rollup.

Impact:
- Cleaner, more maintainable code
- Partial progress toward fixing Rollup issue
- Bundle size still exceeds 5MB limit due to disabled treeshaking

* perf: implement lazy loading for insights sidebar components

Implemented code-splitting optimizations:
- Lazy load all insights sidebar sections (FAQ, Health, Recommendations, etc)
- Dynamic import heavy embeddings/transformers library in FAQ service
- Add loading skeletons for better UX during lazy loading
- Move insights components out of main bundle

Impact:
- FAQ and embeddings now load only when needed (~820KB saved from initial load)
- Improved initial page load performance
- Better code organization with clear async boundaries

Trade-offs:
- Bundle still exceeds 5MB due to disabled treeshaking (Rollup bug workaround)
- Treeshaking must remain disabled until Rollup issue #5747 is fixed
- Performance Budget Check will continue to fail

Next steps:
- Consider downgrading Rollup to avoid the bug
- Or systematically replace ALL nested ternaries across codebase
- Continue identifying more components for lazy loading

* fix: add Rollup treeshake workaround to Storybook config

The same Rollup 4.45.0 bug that affects the main build also affects
Storybook builds. Added treeshake: false to the Storybook viteFinal
configuration to match the main build workaround.

This fixes the 'Cannot add property 0, object is not extensible' error
during Storybook builds in CI.

Impact:
- Storybook builds now complete successfully
- Build and Deploy Storybook workflow should pass
- Slightly larger Storybook bundle (acceptable for documentation)

Note: This workaround can be removed once Rollup issue #5747 is fixed
or all nested ternaries are refactored.

* fix: make FAQ answers ultra-concise and fix text overflow

- Reduce FAQ cache to 24 hours for better freshness
- Make AI answers max 50 words (was 100, then 200)
- Make static answers 60-70% more concise
- Add cache version key (v3-ultra-concise) to bust old verbose cached answers
- Fix text overflow with break-words CSS class
- Ensure FAQs fit properly in sidebar window

* fix: properly constrain FAQ width in sidebar to prevent overflow

- Add overflow-hidden to parent container in insights-sidebar
- Use line-clamp-2 for FAQ questions (shows 2 lines max)
- Remove unnecessary break-words and overflow classes
- Simplify text display with standard wrapping

* fix: increase sidebar width to 420px for better FAQ readability

- Increase insights sidebar from 320px (w-80) to 420px for proper content display
- Remove line-clamp-2 restriction on FAQ questions
- FAQ questions and answers now have enough space to display properly

* fix: update FAQ design to match app design language

- Remove blue border and use standard card hover effect
- Remove blue Sparkles icons throughout
- Simplify AI confidence display
- Use consistent spacing (space-y-3) like other sections
- Use standard p-4 padding like recommendations section
- Simplify footer text for cleaner appearance

* fix: FAQ now generates specific answers for each question

- Remove broken generateFAQInsight that was hijacking health analysis
- Add dedicated callOpenAIForFAQ method with FAQ-specific system prompt
- System prompt emphasizes answering the specific question asked
- Cache version v4-specific-answers to force regeneration
- Each FAQ question now gets a unique, relevant answer instead of generic health advice

* fix: add local fallback for repository summary when Edge Function fails

- Add generateLocalSummary function for when Edge Function returns 500
- Generate basic summary from repository data and PR titles
- Prevents error state when Edge Function has issues
- Provides graceful degradation for summary feature

* fix: improve Edge Function error handling and deploy fix

- Add detailed error logging to repository-summary Edge Function
- Check for missing environment variables before use
- Continue without embeddings if generation fails (non-critical)
- Add fallback summary generation in client when Edge Function fails
- Provide detailed error information in response for debugging
- Successfully deployed updated Edge Function to production

* fix: resolve TypeScript build errors

- Remove unused avgPerDay and avgTitleLength variables
- Fix repositoryData reference in fallback summary generation
- Fetch repository data when needed for fallback
- Build now passes successfully

* feat: humanize numbers in repository summaries

- Add humanizeNumber function to format large numbers (27357 -> 27.4k)
- Apply to both local fallback and Edge Function summaries
- Update AI prompt to use humanized format in generated text
- Numbers now display as 1.2k, 5.7M instead of full values
- Better readability for repository metrics

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
bdougie added a commit to bdougie/contributor.info that referenced this pull request Sep 8, 2025
* feat: add FAQ sections to project pages in insights sidebar

- Create ProjectFAQ component with schema markup for better SEO
- Generate 7 dynamic FAQs per project based on repository data
- Include expand/collapse UI with smooth interactions
- Add FAQ section to insights sidebar for both desktop and mobile
- Implement proper loading states and error handling
- Questions cover contributor count, activity, trends, and patterns
- Updates dynamically when time range changes

Addresses #270

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Brian Douglas <[email protected]>

* feat: enhance FAQ with LLM service and embeddings integration

- Add faq-service.ts with OpenAI-powered dynamic answers
- Implement semantic question matching using MiniLM embeddings
- Enhanced project-faq.tsx with AI indicators and confidence scores
- Add FAQ sitemap generator for improved SEO
- Include FAQ URLs in main sitemap for major repositories
- Support graceful fallback to static answers when AI unavailable
- Add structured data and citations for better search visibility

Co-authored-by: Brian Douglas <[email protected]>

* docs: add FAQ LLM integration documentation

* fix: resolve TypeScript errors and Rollup build issue

- Fix TypeScript errors in project-faq.tsx:
  - Remove unused imports (cn, FAQAnswer type)
  - Fix RepoStats type usage (removed non-existent health/activity properties)
  - Properly handle pr.author object structure for contributor indexing
  - Remove unsupported title prop from Sparkles icon

- Fix TypeScript errors in faq-service.ts:
  - Remove unused imports and variables
  - Fix type casting for cache service
  - Handle contributor data structure properly in reduce operations
  - Fix sort function type assertions

- Work around Rollup conditional expression bug:
  - Temporarily disable treeshaking to fix build error
  - Added TODO to re-enable once Rollup issue is resolved
  - Reference: rollup/rollup#5747

Build now completes successfully with all TypeScript errors resolved.

* fix: resolve Rollup conditional expression bug and refactor nested ternaries

Root cause: Rollup 4.45.0 has a bug with nested ternary operators during treeshaking
that causes 'Cannot add property 0, object is not extensible' error.

Changes:
- Simplified complex nested ternary in env.ts to avoid triggering bug
- Refactored nested ternaries in project-faq.tsx to if-else statements
- Disabled treeshaking as temporary workaround for remaining nested ternaries
- Added detailed comments explaining the Rollup bug and workaround

Impact:
- Build now completes successfully
- Bundle size increased to ~5.5MB (exceeds 5MB budget) due to disabled treeshaking
- Performance Budget Check will fail until treeshaking is re-enabled

Next steps:
- Upgrade Rollup when fix is released
- Or refactor all remaining nested ternaries across codebase
- Then re-enable treeshaking to reduce bundle size

References: rollup/rollup#5747

* refactor: replace nested ternaries with lookup objects and helper functions

Refactored nested ternary operators to use cleaner patterns:
- web-vitals-monitoring.ts: Use lookup objects for rating emojis/colors
- pagespeed-insights.ts: Extract helper functions for delta formatting
- badge-generator.tsx: Use color constants and helper functions
- env.ts: Simplify complex nested conditional logic

These changes reduce complexity and make the code more maintainable.
However, treeshaking still needs to be disabled due to remaining
nested ternaries throughout the codebase.

The Rollup bug (issue #5747) is triggered by ANY nested ternary,
so a complete refactor of all ternaries would be needed to re-enable
treeshaking without upgrading Rollup.

Impact:
- Cleaner, more maintainable code
- Partial progress toward fixing Rollup issue
- Bundle size still exceeds 5MB limit due to disabled treeshaking

* perf: implement lazy loading for insights sidebar components

Implemented code-splitting optimizations:
- Lazy load all insights sidebar sections (FAQ, Health, Recommendations, etc)
- Dynamic import heavy embeddings/transformers library in FAQ service
- Add loading skeletons for better UX during lazy loading
- Move insights components out of main bundle

Impact:
- FAQ and embeddings now load only when needed (~820KB saved from initial load)
- Improved initial page load performance
- Better code organization with clear async boundaries

Trade-offs:
- Bundle still exceeds 5MB due to disabled treeshaking (Rollup bug workaround)
- Treeshaking must remain disabled until Rollup issue #5747 is fixed
- Performance Budget Check will continue to fail

Next steps:
- Consider downgrading Rollup to avoid the bug
- Or systematically replace ALL nested ternaries across codebase
- Continue identifying more components for lazy loading

* fix: add Rollup treeshake workaround to Storybook config

The same Rollup 4.45.0 bug that affects the main build also affects
Storybook builds. Added treeshake: false to the Storybook viteFinal
configuration to match the main build workaround.

This fixes the 'Cannot add property 0, object is not extensible' error
during Storybook builds in CI.

Impact:
- Storybook builds now complete successfully
- Build and Deploy Storybook workflow should pass
- Slightly larger Storybook bundle (acceptable for documentation)

Note: This workaround can be removed once Rollup issue #5747 is fixed
or all nested ternaries are refactored.

* fix: make FAQ answers ultra-concise and fix text overflow

- Reduce FAQ cache to 24 hours for better freshness
- Make AI answers max 50 words (was 100, then 200)
- Make static answers 60-70% more concise
- Add cache version key (v3-ultra-concise) to bust old verbose cached answers
- Fix text overflow with break-words CSS class
- Ensure FAQs fit properly in sidebar window

* fix: properly constrain FAQ width in sidebar to prevent overflow

- Add overflow-hidden to parent container in insights-sidebar
- Use line-clamp-2 for FAQ questions (shows 2 lines max)
- Remove unnecessary break-words and overflow classes
- Simplify text display with standard wrapping

* fix: increase sidebar width to 420px for better FAQ readability

- Increase insights sidebar from 320px (w-80) to 420px for proper content display
- Remove line-clamp-2 restriction on FAQ questions
- FAQ questions and answers now have enough space to display properly

* fix: update FAQ design to match app design language

- Remove blue border and use standard card hover effect
- Remove blue Sparkles icons throughout
- Simplify AI confidence display
- Use consistent spacing (space-y-3) like other sections
- Use standard p-4 padding like recommendations section
- Simplify footer text for cleaner appearance

* fix: FAQ now generates specific answers for each question

- Remove broken generateFAQInsight that was hijacking health analysis
- Add dedicated callOpenAIForFAQ method with FAQ-specific system prompt
- System prompt emphasizes answering the specific question asked
- Cache version v4-specific-answers to force regeneration
- Each FAQ question now gets a unique, relevant answer instead of generic health advice

* fix: add local fallback for repository summary when Edge Function fails

- Add generateLocalSummary function for when Edge Function returns 500
- Generate basic summary from repository data and PR titles
- Prevents error state when Edge Function has issues
- Provides graceful degradation for summary feature

* fix: improve Edge Function error handling and deploy fix

- Add detailed error logging to repository-summary Edge Function
- Check for missing environment variables before use
- Continue without embeddings if generation fails (non-critical)
- Add fallback summary generation in client when Edge Function fails
- Provide detailed error information in response for debugging
- Successfully deployed updated Edge Function to production

* fix: resolve TypeScript build errors

- Remove unused avgPerDay and avgTitleLength variables
- Fix repositoryData reference in fallback summary generation
- Fetch repository data when needed for fallback
- Build now passes successfully

* feat: humanize numbers in repository summaries

- Add humanizeNumber function to format large numbers (27357 -> 27.4k)
- Apply to both local fallback and Edge Function summaries
- Update AI prompt to use humanized format in generated text
- Numbers now display as 1.2k, 5.7M instead of full values
- Better readability for repository metrics

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
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.

1 participant