Skip to content

Feat(dashboard): allow users to add comments to a chart #377

@chrismclarke

Description

@chrismclarke

Is your feature request related to a problem? Please describe.
Some of the climate charts contain data with inconsistencies that will likely need manual review. It would be useful if users in the app could

Describe the solution you'd like
Add a button on the climate view so that when a chart it displayed a user can "mark for review". Ideally it should open a prompt that allows the user to add a message/comment.
Image

Likely this should be stored as a new comments column in the database on the climate_summary_rainfall table, which could store multiple feedback entries as json array e.g.

ALTER TABLE public.climate_summary_rainfall
ADD COLUMN comments jsonb[] NOT NULL default '{}';

Image

The comment itself should ideally include the station_id chart_name, date_created and created_by to track the author of the comment.

Additional context
Some additional functionality that might be nice (but isn't essential)

  • Add a new screen to the climate dashboard to display all comments
  • Add a way to mark a comment as resolved
  • Add a dropdown to the site page to make it easier to swap to different sites (like in the app)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions