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

merging new components into main #60

Merged
merged 19 commits into from
Nov 25, 2024
Merged

Conversation

sun-mota
Copy link
Contributor

@sun-mota sun-mota commented Nov 21, 2024

Alaska Airlines Pull Request

Merging PRs below at once

A separate PR to come later for below

Summary by Sourcery

Integrate new components auro-menu and auro-checkbox into the project, along with new date input types for auro-input. Update build scripts and dependencies, and enhance documentation and test coverage for these additions.

New Features:

  • Introduce new date input types 'month', 'year', and 'fullYear' for the auro-input component.
  • Add auro-menu and auro-checkbox components with various features and configurations.

Enhancements:

  • Refactor auro-input to use a new registration method for custom elements.
  • Update auro-input to handle new date input types with appropriate validation and formatting.

Build:

  • Update package dependencies for auro-button, auro-formvalidation, and auro-icon to newer versions.
  • Add build scripts for new components like checkbox and menu.

Documentation:

  • Add comprehensive documentation for new components auro-menu and auro-checkbox, including usage examples and API details.

Tests:

  • Add test cases for new auro-menu and auro-checkbox components to ensure functionality and integration.

Summary by Sourcery

Integrate new components auro-menu and auro-checkbox into the project, along with new date input types for auro-input. Update build scripts and dependencies, and enhance documentation and test coverage for these additions.

New Features:

  • Introduce new date input types 'month', 'year', and 'fullYear' for the auro-input component.
  • Add auro-menu and auro-checkbox components with various features and configurations.

Enhancements:

  • Refactor auro-input to use a new registration method for custom elements.
  • Update auro-input to handle new date input types with appropriate validation and formatting.

Build:

  • Update package dependencies for auro-button, auro-formvalidation, and auro-icon to newer versions.
  • Add build scripts for new components like checkbox and menu.

Documentation:

  • Add comprehensive documentation for new components auro-menu and auro-checkbox, including usage examples and API details.

Tests:

  • Add test cases for new auro-menu and auro-checkbox components to ensure functionality and integration.

@sun-mota sun-mota self-assigned this Nov 21, 2024
Copy link

sourcery-ai bot commented Nov 21, 2024

Reviewer's Guide by Sourcery

This pull request integrates new components (auro-menu and auro-checkbox) and enhances the auro-input component with new date input types. The implementation includes refactoring the component registration method, updating dependencies, and improving test coverage.

Class diagram for auro-input enhancements

classDiagram
    class BaseInput {
        +String[] dateTypes
        +String[] autoFormattingTypes
        +void handleClickClear()
        +void setCustomValidityForType()
        +void render()
    }
    class AuroInput {
        +void register(String name)
        +boolean isDateType()
        +void render()
    }
    BaseInput <|-- AuroInput
    note for AuroInput "Added new date input types: 'month', 'year', 'fullYear'"
    note for BaseInput "Refactored to handle new date input types with validation and formatting"
Loading

Class diagram for new components auro-menu and auro-checkbox

classDiagram
    class AuroMenu {
        +String value
        +Object optionSelected
        +String matchWord
        +boolean disabled
        +boolean noCheckmark
        +void makeSelection()
        +void resetOptionsStates()
        +void selectNextItem(String moveDirection)
    }
    class AuroCheckbox {
        +boolean checked
        +boolean disabled
        +boolean error
        +String id
        +String name
        +String value
        +void handleChange(Event event)
        +void handleInput(Event event)
    }
    note for AuroMenu "New component for menu options with selection and event handling"
    note for AuroCheckbox "New component for checkbox with state management"
Loading

File-Level Changes

Change Details Files
Added new date input types to auro-input component
  • Added support for 'month', 'year', and 'fullYear' input types
  • Implemented validation and formatting for new date types
  • Updated help text and placeholder handling for new date types
components/input/src/base-input.js
components/input/src/i18n.js
components/input/docs/partials/api.md
Refactored component registration mechanism
  • Replaced RuntimeUtils.prototype.registerComponent with static register method
  • Updated registration pattern across all components
  • Removed automatic component registration in favor of explicit registration
components/input/src/auro-input.js
components/form/src/auro-form.js
components/checkbox/src/auro-checkbox.js
components/menu/src/auro-menu.js
Added new auro-menu component
  • Implemented core menu functionality with keyboard navigation
  • Added support for nested menus and option highlighting
  • Implemented disabled states and checkmark toggling
components/menu/src/auro-menu.js
components/menu/src/auro-menuoption.js
components/menu/src/style-menu.scss
components/menu/src/style-menuoption.scss
Added new auro-checkbox component
  • Implemented checkbox group functionality with validation
  • Added support for horizontal layout and disabled states
  • Implemented error states and custom validation messages
components/checkbox/src/auro-checkbox.js
components/checkbox/src/auro-checkbox-group.js
components/checkbox/src/auro-checkbox.scss
components/checkbox/src/auro-checkbox-group.scss
Updated styling and theming system
  • Implemented CSS custom properties for component theming
  • Added new color tokens for menu and checkbox components
  • Updated icon sizing and spacing variables
components/menu/src/tokens.scss
components/checkbox/src/tokens.scss
components/input/src/tokens.scss
components/input/src/color.scss

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sun-mota sun-mota changed the title Sun mota/component integration merging new components into main Nov 21, 2024
@sun-mota sun-mota marked this pull request as ready for review November 25, 2024 17:53
@sun-mota sun-mota requested a review from a team as a code owner November 25, 2024 17:53
Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @sun-mota - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider consolidating duplicate build scripts across components to reduce maintenance overhead and ensure consistency.
  • The lowered test coverage thresholds (70% from 80%) should be temporary - please create a follow-up ticket to restore higher coverage requirements once component integration is complete.
Here's what I looked at during the review
  • 🟡 General issues: 9 issues found
  • 🟢 Security: all looks good
  • 🟡 Testing: 3 issues found
  • 🟡 Complexity: 5 issues found
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

components/input/src/base-input.js Show resolved Hide resolved
components/input/src/base-input.js Show resolved Hide resolved
components/menu/apiExamples/scroll.html Show resolved Hide resolved
components/menu/apiExamples/matchWord.js Show resolved Hide resolved
components/checkbox/demo/api.min.js Show resolved Hide resolved
components/checkbox/demo/api.min.js Show resolved Hide resolved
components/checkbox/demo/api.min.js Show resolved Hide resolved
components/checkbox/demo/api.min.js Show resolved Hide resolved
components/checkbox/demo/api.min.js Show resolved Hide resolved
@sun-mota sun-mota force-pushed the sunMota/componentIntegration branch from 72f3f21 to fead88b Compare November 25, 2024 18:02
@sun-mota sun-mota merged commit 79f2e4c into main Nov 25, 2024
6 checks passed
@sun-mota sun-mota deleted the sunMota/componentIntegration branch November 25, 2024 22:06
@sun-mota sun-mota restored the sunMota/componentIntegration branch November 25, 2024 22:06
@jason-capsule42
Copy link
Member

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@jason-capsule42 jason-capsule42 added the released Completed work has been released label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released Completed work has been released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants