Closed Harman-singh-waraich closed 5 months ago
This update involves refactoring hardcoded templates and data mappings in Curate v2 to be imported from a newly introduced external module, @kleros/curate-v2-templates
. Other adjustments include adding this new module across multiple package.json
files and deriving shared template properties from the new module where utilized within the codebase.
File/Path | Summary |
---|---|
contracts/deploy/00-curate-v2.ts |
Removed hardcoded templates and data mappings; imported them from @kleros/curate-v2-templates |
contracts/package.json |
Added @kleros/curate-v2-templates dependency |
package.json |
Added templates to the list of dependencies |
templates/index.ts |
Added shared templates and data mappings for registration and removal |
templates/package.json |
Added project information for @kleros/curate-v2-templates |
web/package.json |
Added @kleros/curate-v2-templates dependency |
web/src/utils/submitListUtils.ts |
Imported templates and data mappings from @kleros/curate-v2-templates |
In code lands where change embarks, With templates shared from distant parks, Data maps in a newfound place, Across the files, they found their space. Dependencies we did enhance, To make our functions sing and dance.
— 🐰 Your Code Rabbit
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Name | Link |
---|---|
Latest commit | 2bb2ca1221bb4d20dd01fcfed42948c2aedb03c3 |
Latest deploy log | https://app.netlify.com/sites/curate-v2/deploys/667c11a6f1e929000862fb48 |
Deploy Preview | https://deploy-preview-47--curate-v2.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
PR-Codex overview
This PR updates package dependencies, adds template files for Curate V2, and centralizes template imports for better organization.
Detailed summary
Summary by CodeRabbit
New Features
Chores
@kleros/curate-v2-templates
dependency to multiplepackage.json
files for better modularity and code management.