Skip to content

[Feature] Add disclaimer dropdown for guides #348

Description

@andyrodrigues30

Problem

Currently, there is no disclaimers when users create guides with medical, financial, legal content, mature 18+ content, curse words.

Proposal

Add a multi-select combobox (dropdown) to the guide details page with the label "Disclaimers" and the options (database options in brackets):

  • Mature age-restricted 18+ content (mature)
  • Profanity (profanity)
  • Medical (medical)
  • Legal (legal)
  • Financial (financial)
  • Affiliate Links (affiliate-links)

Update create and edit routes

Database changes - 2 new tables:

  1. disclaimer table containing the following disclaimers:
  • medical
  • financial
  • legal
  • mature
  • profanity
  1. guide_disclaimers table containing the following:
  • guide id
  • disclaimer_id

Create a disclaimer banner component and add to guide reader view if guide contains a disclaimer.

For disclaimers use the following text:

  • Medical: "Disclaimer: This article is for informational purposes only and does not constitute medical advice. Always consult a qualified healthcare provider for diagnosis and treatment recommendations."

  • Legal: “Disclaimer: This information is provided for general informational purposes only and does not constitute legal advice. Reading this content does not create an attorney-client relationship.”

  • Financial: “Disclaimer: This material is for informational purposes only and is not investment, financial, or tax advice. Consult a qualified financial advisor before making decisions. Past performance is not indicative of future results.”

The disclaimer on the frontend for mature content and profanity will be completed in a separate issue.

Use #FAFAFA for the text color and #C05000 for the background color of the banner. See attached mockup:

Image

Area

app (frontend)

Confirmations

  • I searched existing issues and this is not a duplicate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:backendTasks related to general backend functionality or api specificarea:databaseTasks related to the database schema, migrations, or data managementarea:frontendTasks related to frontend (app)status:in-progressThis is actively being worked ontag:enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions