Skip to content

Pr 6822: Reproduced and fixed #6889

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Pr 6822: Reproduced and fixed #6889

wants to merge 11 commits into from

Conversation

su0as
Copy link

@su0as su0as commented Jul 30, 2025

Description

Fixed incorrect Select component usage in DocsSection.tsx that was causing lint/build errors. The component was using a complex Select/Option structure that didn't match the actual Select wrapper implementation, which simply wraps a standard HTML select element.

Checklist

  • I've read the contributing guide
  • The relevant docs, if any, have been updated or created
  • The relevant tests, if any, have been updated or created

Screen recording or screenshot

N/A - Simple component fix

Tests

Build and lint checks pass. Existing component tests may fail due to unrelated Redux state issues in Auth.tsx.


Summary by cubic

Fixed incorrect Select component usage in DocsSection and added tests to cover search, sorting, and grouping features.

  • Bug Fixes

    • Replaced complex Select/Option structure with the correct Select wrapper to resolve lint and build errors.
  • Tests

    • Added tests for search, sorting, grouping, collapsible groups, and empty states in DocsSection.

su0as and others added 7 commits July 28, 2025 19:33
Implemented debounced search to filter docs.
Added sorting options by status, name, or URL.
Introduced grouping by domain or category with collapsible sections.
Improved user experience by providing a clear, flexible interface for managing large documentation sets.
Provides a reusable debounce function to delay execution after user actions.
Useful for search implementations and event handler optimizations.
Tests cover search functionality, sorting options, grouping logic, collapsible groups, empty states, and debounce behavior.
Ensures stable and reliable implementation of DocsSection improvements.
- Remove duplicate Select imports (6 duplicates removed)
- Replace undefined complex Select components with standard HTML select
- Use existing Select wrapper component for consistency
- Apply prettier formatting
- Update Select mock to match actual implementation (simple select)
- Fix test assertions to use 'select' instead of 'select-trigger'
- Remove unused debounce.ts file (component uses built-in useEffect)
@su0as su0as requested a review from a team as a code owner July 30, 2025 08:19
@su0as su0as requested review from tomasz-stefaniak and removed request for a team July 30, 2025 08:19
@dosubot dosubot bot added the size:XL This PR changes 500-999 lines, ignoring generated files. label Jul 30, 2025
- Replace unsafe substring checks with proper URL parsing
- Prevent malicious URLs like 'evil.com/github.com' from being categorized as GitHub
- Check hostname explicitly for domain validation
- Check pathname for documentation patterns instead of full URL string
@Patrick-Erichsen
Copy link
Collaborator

The CI errors are here likely related to some recent changes on main looking into it now 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants