AlaskaAirlines / AuroDocsSite

Repository for the management of the Auro doc site
https://auro.alaskaair.com/
0 stars 0 forks source link

fix: adding missing index var #261 #262

Closed rmenner closed 3 weeks ago

rmenner commented 3 weeks ago

Alaska Airlines Pull Request

Type of change:

Please delete options that are not relevant.

Checklist:

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.

Thank you for your submission!
-- Auro Design System Team

Summary by Sourcery

Bug Fixes:

sourcery-ai[bot] commented 3 weeks ago

Reviewer's Guide by Sourcery

This PR fixes a bug in the component status view by addressing missing index variables in map functions and updating key generation for React components.

Class diagram for ComponentStatus changes

classDiagram
    class ComponentStatus {
        +render()
    }
    class Repo {
        +key: String
        +isPrivate: Boolean
        +pullRequests: Object
        +name: String
        +description: String
        +url: String
        +homepageUrl: String
        +id: String
        +defaultBranchRef: Object
        +issues: Object
        +releases: Object
    }
    class LabsRepo {
        +key: String
        +isPrivate: Boolean
        +name: String
        +description: String
        +url: String
        +id: String
        +defaultBranchRef: Object
        +repositoryTopics: Object
        +isArchived: Boolean
        +createdAt: Date
    }
    ComponentStatus --> Repo
    ComponentStatus --> LabsRepo
    note for Repo "Key generation updated to use index and name"
    note for LabsRepo "Index variable added for key generation"

File-Level Changes

Change Details Files
Fixed React component key generation and added missing index parameter
  • Changed component key from using 'index + '' + id' to 'index + '' + name' in Repo component
  • Added missing 'index' parameter to the map function for repositories in LabsRepo component
src/content/dynamic/componentStatus/statusView.js

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](https://app.sourcery.ai) 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 - [Contact our support team](mailto:support@sourcery.ai) for questions or feedback. - Visit our [documentation](https://docs.sourcery.ai) for detailed guides and information. - Keep in touch with the Sourcery team by following us on [X/Twitter](https://x.com/SourceryAI), [LinkedIn](https://www.linkedin.com/company/sourcery-ai/) or [GitHub](https://github.com/sourcery-ai).