RobinNagpal / dodao-ui

https://y-tau-beryl.vercel.app
GNU Affero General Public License v3.0
5 stars 3 forks source link

Add meta tags to Project, Byte, ByteCollection, and Shorts for better SEO capabilities #86

Closed RobinNagpal closed 6 months ago

RobinNagpal commented 7 months ago

Work

Backend

For Project, ProjectByte, ProjectByteCollection, ProjectShortVideos

  1. Add "seo_meta" field in these objects which will be of type JSON.
  2. Use camel case "seoMeta" in object and "seo_meta" in database
  3. seoMeta (of type SEOMeta), will have three fields "title", "description", and "keywords"
  4. When saving these objects, we can save the name in title and excerpt/description in description if they are not provided
  5. If these fields as provided then use that value
  6. Return these new fields in the graphql
  7. Use these new fields in the Upsert request
  8. The seoMeta field should be optional

Front end

There will be a separate reusable component which will allow setting seoMeta on the entities. We can discuss when we try to update the FE