Skip to content
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

feat: Import public GitHub repository #8

Merged
merged 26 commits into from
Mar 22, 2024
Merged

Conversation

DiggidyDev
Copy link
Owner

Description:

Ability to import a project structure from GitHub

Changes Made:

  • Input field for GitHub URL
    • Only supports public repos (for now)
    • See README for valid URLs
  • Refactored main page into multiple components
    • <BottomPanel />
    • <OptionsPanel />
    • <ValidationForm />
    • <ActionInput />
    • <Option />
      • Empty for now, but should be utilised soon
  • Using context to pass data between components

Related Issues/Pull Requests:

#3

Testing notes (+ instructions):

New test commands:

  • npm run test
  • npm run test:e2e
  • npm run test:cmp

Added E2E tests and component tests to pipeline

Screenshots/GIFs:

N/A

Performance Impact:

Pipeline runtime has increased slightly due to new unit tests, along with code coverage upload

Dependencies:

Documentation Updates:

README has documented new test commands, and new endpoint /api/files

Additional Notes:

N/A


Reviewer Checklist:

  • Code quality and style
  • Functionality and behaviour
  • Edge cases and error handling
  • Performance considerations
  • Documentation completeness
  • Testing coverage and results

- Edited e2e tests to account for options toggle menu
- New Button Component
- made regex's https://www. entirely optional
- Initial code coverage github action
- removed blob from url validation
- updated validation tests to test entire regex
- New /api/files params to control response content
- /api/files param validation
- Updated readme to reflect changes
- Button and TextArea dark/light theme support for states
- Add sinon for fetch() stubbing
@DiggidyDev DiggidyDev added the enhancement New feature or request label Mar 22, 2024
@DiggidyDev DiggidyDev self-assigned this Mar 22, 2024
@DiggidyDev DiggidyDev linked an issue Mar 22, 2024 that may be closed by this pull request
@DiggidyDev DiggidyDev changed the title [FEAT] Import GitHub Repository feat: Import public GitHub repository Mar 22, 2024
@DiggidyDev DiggidyDev merged commit 0e38c02 into main Mar 22, 2024
8 checks passed
@DiggidyDev DiggidyDev deleted the feature/import-repo branch March 22, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REQ] URL Input to accept public GitHub repos
1 participant