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

Issue 2096/error handling for notes upload #2204

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

Jrende
Copy link
Collaborator

@Jrende Jrende commented Sep 28, 2024

Description

This PR makes it so you get an error message when trying to upload a too long journey note, instead of just annihilating your hard-written text.

Screenshots

Screen Shot 2024-09-28 at 17 44 45

Changes

  • When the POST request to save a note fails, an error message is show. We don't know exactly why this happens, but we provide a helpful note.

Related issues

Resolves #2096

Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

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

Awesome work! I've tried to preview build to confirm that it works, and I've reviewed the code which looks mostly very good. I don't love how many components are involved though, so I'm wondering if it would make sense to keep the state within ZUITimeline. But I can totally be convinced otherwise!

I would like to change the text of the error message though. 👇

src/zui/ZUITimeline/l10n/messageIds.ts Outdated Show resolved Hide resolved
src/zui/ZUITimeline/index.tsx Outdated Show resolved Hide resolved
Copy link
Member

@richardolsson richardolsson left a comment

Choose a reason for hiding this comment

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

I appreciate it! Great work on this. 👏

@richardolsson richardolsson merged commit 38b14a1 into main Sep 30, 2024
6 checks passed
@richardolsson richardolsson deleted the issue-2096/error-handling-for-notes-upload branch September 30, 2024 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Journey Instance Notes Fail to be added if long
3 participants