-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: remove .map function that doesn't work in SSR support #94 #95
Conversation
Reviewer's Guide by SourceryThis PR fixes a server-side rendering (SSR) issue by replacing the Updated class diagram for AuroTable componentclassDiagram
class AuroTable {
- columnHeaders
+ renderTableHeader()
}
note for AuroTable "Replaced .map with .forEach in renderTableHeader method"
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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 @jason-capsule42 - I've reviewed your changes and found some issues that need to be addressed.
Blocking issues:
- Using forEach here will break the table headers - forEach returns undefined while map returns the array of elements we need. (link)
Overall Comments:
- Using .forEach() in the template literal won't work as it returns undefined. Consider using Array.from() or keeping .map() as it needs to return the transformed array.
- The test changes appear incorrect - selecting columns from rows[1] looks at data cells (td) instead of header cells (th), which doesn't properly test the header rendering.
Here's what I looked at during the review
- 🔴 General issues: 1 blocking issue
- 🟢 Security: all looks good
- 🟡 Testing: 1 issue found
- 🟢 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.
5fb6d29
to
5cdb374
Compare
🎉 This PR is included in version 3.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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
Fix the SSR issue in auro-table by replacing the .map function with .forEach and update tests to reflect these changes.
Bug Fixes:
Tests: