AlaskaAirlines / AuroDocsSite

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

Add new Utility page for Auro Theme Switcher #275

Closed rmenner closed 3 days ago

rmenner commented 3 days 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

Add a theme switcher utility to the application, enabling users to change themes and test page appearance. Update dependencies to their latest versions for improved functionality and compatibility.

New Features:

Enhancements:

sourcery-ai[bot] commented 3 days ago

Reviewer's Guide by Sourcery

This PR introduces a new Theme Switcher utility component and updates numerous package dependencies. The implementation includes setting up the routing configuration, creating the Theme Switcher component with its documentation, and updating the side navigation to include the new utility section.

Class diagram for the ThemeSwitcher component

classDiagram
    class ThemeSwitcher {
        +constructor(props)
        +UNSAFE_componentWillMount()
        +flatten(text, child)
        +headingRenderer(props)
        +render()
        -contentBuild: String
    }
    class Nav {
        +render()
    }
    ThemeSwitcher --> Nav : uses

File-Level Changes

Change Details Files
Added new Theme Switcher component and documentation
  • Created new Theme Switcher component with installation instructions and usage guide
  • Added supporting navigation component for utilities section
  • Included assets and documentation markdown support
src/content/dynamic/utilities/theme-switcher.js
src/content/dynamic/utilities/nav.js
Updated application routing and navigation structure
  • Added new route for Theme Switcher utility
  • Added new Utilities section in side navigation
  • Updated route configuration in App.js
src/App.js
src/components/side-nav.js
Updated build configuration and dependencies
  • Added support for ZIP files in Vite assets configuration
  • Updated numerous Auro Design System package versions
  • Updated development dependencies to latest versions
vite.config.js
package.json
package-lock.json

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).
CLAassistant commented 3 days ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

:white_check_mark: rmenner
:x: Jason Baker


Jason Baker seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

jason-capsule42 commented 3 days ago

@sourcery-ai title

sourcery-ai[bot] commented 3 days ago

I'm sorry, I don't understand the command @sourcery-ai title.

Please use @sourcery-ai review to request a review.

jason-capsule42 commented 3 days ago

@sourcery-ai title

sourcery-ai[bot] commented 3 days ago

I'm sorry, I don't understand the command @sourcery-ai title.

Please use @sourcery-ai review to request a review.