Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] Update end-of-analysis message to include export buttons #73

Open
01painadam opened this issue Jan 3, 2025 · 5 comments
Open

[FE] Update end-of-analysis message to include export buttons #73

01painadam opened this issue Jan 3, 2025 · 5 comments
Assignees

Comments

@01painadam
Copy link
Collaborator

01painadam commented Jan 3, 2025

Goal(s)

When the LLM completes a task, instead of giving a generic closing response “If you have any other questions or need assistance with a different topic, feel free to ask!”, provide a list of specific next steps that are supported e.g. interactions to:

  • [feature] export chart data as csv
  • [feature] export raw alerts as json
  • [false door] subscribe to alerts

Note: requires #70

User Stories & Acceptance Criteria

  • When I am viewing alerts, I want to export the chart or raw alert data, so that I can carry out further analysis offline
    • Given that an analysis can returned correctly, when the chart insight is surfaced to the user, then show an appropriate affordance to download the chart data as csv
    • Given that an analysis can returned correctly, when the alerts are shown on the map, then show an appropriate affordance to download the raw alert data

Risks & Questions

Solution Hints

Future work

@01painadam 01painadam changed the title Update end-of-task message [FE] Update end-of-task message Jan 7, 2025
@yellowcap
Copy link
Collaborator

Let's plan to offer downloads for CSV of the chart data, and geojson of the alerts.

@01painadam 01painadam changed the title [FE] Update end-of-task message [FE] Update end-of-analysis message to include export buttons Jan 9, 2025
@LanesGood
Copy link
Collaborator

Proposed design - same option button styles as previous, but horizontally laid out if real estate allows, with icons to indicate actions:

image

@01painadam
Copy link
Collaborator Author

Loog great @LanesGood with one small adjustment: the csv is for the chart data, while the json is the geojson of the alert locations, right @yellowcap?

Do we need a toast message or similar when the subscribe button is pressed? Since its a false door perhaps we should indicate as such once clicked.

@yellowcap
Copy link
Collaborator

the csv is for the chart data, while the json is the geojson of the alert locations, right @yellowcap?

yes that is correct

@LanesGood
Copy link
Collaborator

LanesGood commented Jan 16, 2025

Discussed with @kamicut

  • automatically include the export button in the chat when right-shaped data is returned
    • only CSV? GeoJSON too?
  • ideally will concentrate on having an always-available "Export" data panel tab under the map, exposed when data is first returned, which will have the ability to get data without needing to include this in the chat response

Proposed "Export" tab

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants