-
Notifications
You must be signed in to change notification settings - Fork 20
feat:RO-Crate Dataset-entity #370
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:RO-Crate Dataset-entity #370
Conversation
Reviewer's Guide by SourceryThis PR implements a new RO-Crate Dataset entity component using LitElement. The component provides a tabbed interface for managing dataset metadata, including basic information, related entities, and structure. It features dynamic form handling with field validation and conditional rendering based on user input. Class diagram for ECCClientRoCrateAbout componentclassDiagram
class ECCClientRoCrateAbout {
- activeTab: number
- AboutFields: Field[]
+ render() void
+ _switchTab(index: number) void
+ _handleDataset(e: CustomEvent) void
}
class Field {
+ key: string
+ label: string
+ type: string
+ fieldOptions: object
+ arrayOptions: object
+ groupOptions: object
+ children: Field[]
}
ECCClientRoCrateAbout --> Field
note for ECCClientRoCrateAbout "This class represents a LitElement component for managing RO-Crate Dataset metadata with a tabbed interface."
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
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 @sivangbagri - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider improving error handling in _handleDataset() - the findIndex could fail silently if licence field is not found. Add appropriate error handling or user feedback.
- There is significant duplication in the RelatedPeopleFields definitions for author/publisher/funder. Consider extracting common field patterns into reusable constants or utility functions.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟡 Complexity: 1 issue found
- 🟢 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.
packages/ecc-client-elixir-ro-crate/src/components/about/about.ts
Outdated
Show resolved
Hide resolved
|
Great work @sivangbagri, just a few things:
|
|
Hii @Salihu Thanks for your review.
|
|
|
@salihudickson Kindly checkout the new PR |
|
I'll review the other PR ASAP, however this one is just about ready to merge, if you can just take out the type field, and change the tab name to |
|
Also please resolve conflicts with main. |
|
Hey, Shivang. This looks good so far. I made some changes to the logic handling the conditional license fields. The former logic was pretty convoluted and would break under certain conditions. then about the |
Description
Dedicated PR for RO-Crate Dataset entity
Checklist
Comments
Summary by Sourcery
Add a new RO-Crate Dataset entity component to the ecc-client-elixir-ro-crate package, featuring a tabbed interface for managing dataset metadata, related entities, and structure. Include demo HTML files to demonstrate component usage.
New Features:
Enhancements:
Documentation: