fix(import): show success message and propagate server error to UI#874
Open
behdadmansouri wants to merge 1 commit into
Open
fix(import): show success message and propagate server error to UI#874behdadmansouri wants to merge 1 commit into
behdadmansouri wants to merge 1 commit into
Conversation
Previously the import UI showed nothing on success (the null response was silent) and displayed only a generic fallback message on failure regardless of what the server reported. - Add a dismissible success alert shown after a successful import - Extract the server error message from the response body and display it; fall back to the generic message if no structured error is present - Add import_success flag to data() to drive the new success alert Fixes ActivityWatch/activitywatch#394 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes ActivityWatch/activitywatch#394
{"message": "..."}error) and display it directly to the userimport_successflag todata()Test plan