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

FS-123 Add report download #51

Merged
merged 1 commit into from
Dec 12, 2024
Merged

FS-123 Add report download #51

merged 1 commit into from
Dec 12, 2024

Conversation

mic-smith
Copy link
Collaborator

Description

Allow the generated report to be downloaded as markdown.

image

Changelog

  • Store report in redis and clear on new chat
  • Add download button component (extension to existing button)
  • Add endpoint to allow the report to be downloaded as markdown

@mic-smith mic-smith force-pushed the FS-123/download-report branch from 2dc1992 to d4efd9d Compare December 10, 2024 14:26
final_result = get_report(id)
if final_result is None:
return JSONResponse(status_code=404, content=f"Message with id {id} not found")
headers = {'Content-Disposition': 'attachment; filename="report.md"'}
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to generate this filename, once we have the company name stored with the report.

Copy link
Collaborator

@dianaPrahoveanu-SL dianaPrahoveanu-SL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, nice work!

@mic-smith mic-smith merged commit a8d76c8 into main Dec 12, 2024
4 checks passed
@mic-smith mic-smith deleted the FS-123/download-report branch December 12, 2024 16:49
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

Successfully merging this pull request may close these issues.

3 participants