[ENHANCE] Correctly save and retrieve NEAR Social data on project registration & update #143
Labels
enhancement
small enhancement / improvement from existing feature
ft-registration
Any tickets related to project registration and updates to project profiles.
QF MVP
Required for Quadratic Funding MVP
Title
Correctly save and retrieve NEAR Social data on project registration & update
Summary
Items being incorrectly stored:
name
- should be populated from NEAR Social data if availablecategory
- this should be renamed topotlockCategories
and instead of an array, should be formatted as per as per NEAR SocialTags
schema: an object with category name as key and empty string as value (just like howteam
is currently being stored). E.g. if I have "Social Impact" and "Non Profit" categories selected, the value should look likeimage
andbackgroundImage
- these are currently being saved aswhich obviously is not correct. Value should be populated as follows:
Both values must be of type
Image
Smart Contracts & Funding Sources
This data is not being saved at all currently. Please determine the best format to save these in and run it by @lachlanglen before implementing.
They should live on near.social at
profile.contracts
andprofile.fundingSources
respectively.Social Links
Any social links that have been updated from what is on NEAR Social should be included in data saved to near.social.
Overall
NB: Across all fields, avoid storing redundant data (keys whose values have not changed from what is currently saved on NEAR Social) as this just increases required transaction deposit for user.
Motivation
[More detailed explanation of the motivation for the enhancement, including any benefits it would provide]
Description
[Detailed description of the enhancement, including how it would work and any design considerations]
Alternatives
[Discussion of any alternative solutions that were considered and why the proposed solution is preferred]
Risks
[Identification and mitigation of any potential risks associated with the enhancement]
Acceptance Criteria
[List of criteria that must be met for the enhancement to be considered accepted]
Additional Information
[Any other relevant information, such as links to related issues or pull requests]
The text was updated successfully, but these errors were encountered: