-
Notifications
You must be signed in to change notification settings - Fork 2
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: remove deprecated code issues #133 #137
Conversation
Reviewer's Guide by SourceryThis PR removes deprecated code and updates dependencies. It streamlines the codebase by removing the "fixed" attribute, legacy size options, pixel-based rendering styles, and simplifying margin handling to numeric values. Additionally, it cleans up documentation, API examples, and resolves issues with the .husky/pre-commit file. Finally, it updates the package.json dependencies to the latest @aurodesignsystem/auro-library version. Class diagram showing removed attributes and properties from auro-headerclassDiagram
class AuroHeader {
-removed fixed: Boolean
-removed type: String
+display: String
+level: String
+margin: String
+size: String
+spacingDecision(size)
+spacingApplied(size)
}
note for AuroHeader "Removed deprecated 'fixed' and 'type' attributes.
Simplified size options to numeric values only."
State diagram showing margin size value changesstateDiagram-v2
[*] --> MarginSizes
MarginSizes --> Removed: Legacy sizes
MarginSizes --> Kept: Numeric sizes
Removed: xxxs
Removed: xxs
Removed: xs
Removed: sm
Removed: md
Removed: lg
Removed: xl
Removed: xxl
Removed: xxxl
Kept: none
Kept: 25
Kept: 50
Kept: 100
Kept: 150
Kept: 200
Kept: 300
Kept: 400
Kept: 600
Kept: 800
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Surge demo deployment failed! 😭 |
NOTE: in order to update API docs, I temp added back in the code needed to make that work. See following issue: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @blackfalcon - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider removing the remaining
className
attributes in the examples to match the implementation changes where they were removed
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
BREAKING CHANGE: This code update resolves issues with deprecated features and cleans up the implementation of the `auro-header` component. The `fixed` attribute and legacy size options (`xxxs` to `xxxl`) have been eliminated, along with related utility classes and documentation references, simplifying margin handling to specified numeric values (`none`, `25`, `50`, etc.). Legacy styles and examples supporting pixel-based rendering are removed, aligning the component with modern practices. Additionally, two lines in `.husky/pre-commit` that would fail in version `v10.0.0`—`#!/usr/bin/env sh` and `. "$(dirname -- "$0")/_/husky.sh"`—were removed to ensure compatibility. Updates include revisions to documentation files, API examples, and the `auro-header.js` source code, while dependencies in the `package.json` file are updated, reflecting the latest version of `@aurodesignsystem/auro-library`. These changes streamline the codebase, remove outdated functionality, and improve maintainability for future development. On branch dsande/deprecatedFeats/#133 Changes to be committed: modified: .husky/pre-commit deleted: apiExamples/fixed.html modified: apiExamples/margins.html modified: apiExamples/margins2.html modified: demo/api.md modified: demo/index.min.js modified: docs/api.md modified: docs/partials/api.md modified: package-lock.json modified: package.json modified: src/auro-header.js modified: src/style.scss modified: test/auro-header.test.js
b6e637e
to
03d1d0a
Compare
🎉 This PR is included in version 3.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Resolves: #133
Summary:
Resolved Issues with Deprecated Features
fixed
attribute.xxxs
toxxxl
).none
,25
,50
, etc.).Codebase Cleanup
.husky/pre-commit Fixes
v10.0.0
:Documentation and Dependencies Updates
package.json
dependencies to the latest@aurodesignsystem/auro-library
version.Benefits of These Changes
On branch dsande/deprecatedFeats/#133
Changes to be committed:
modified: .husky/pre-commit
deleted: apiExamples/fixed.html
modified: apiExamples/margins.html
modified: apiExamples/margins2.html
modified: demo/api.md
modified: demo/index.min.js
modified: docs/api.md
modified: docs/partials/api.md
modified: package-lock.json
modified: package.json
modified: src/auro-header.js
modified: src/style.scss
modified: test/auro-header.test.js
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
Documentation: