Skip to content

fix: toast now disappears on mobile when clicked on view button.#1072

Merged
coodos merged 1 commit into
mainfrom
fix/viewBtnMobileDismissToast
Jul 8, 2026
Merged

fix: toast now disappears on mobile when clicked on view button.#1072
coodos merged 1 commit into
mainfrom
fix/viewBtnMobileDismissToast

Conversation

@Sahil2004

@Sahil2004 Sahil2004 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Description of change

Toast fixed for not dismissing when view button clicked on mobile.

Issue Number

Closes #1046

Type of change

  • Fix (a change which fixes an issue)

How the change has been tested

Manually.

Change checklist

  • I have ensured that the CI Checks pass locally
  • I have removed any unnecessary logic
  • My code is well documented
  • I have signed my commits
  • My code follows the pattern of the application
  • I have self reviewed my code

Summary by CodeRabbit

  • Bug Fixes
    • Improved the success notification shown after sending a Blab so the View link now closes that specific message when clicked.
    • Simplified the toast behavior for this confirmation message, keeping the experience cleaner and more consistent.

@Sahil2004 Sahil2004 self-assigned this Jul 7, 2026
@Sahil2004 Sahil2004 requested a review from coodos as a code owner July 7, 2026 07:13
@coderabbitai

coderabbitai Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d9b91441-9973-452d-b90c-e741c03fc1d9

📥 Commits

Reviewing files that changed from the base of the PR and between c6f8c3e and b341ee3.

📒 Files selected for processing (1)
  • platforms/blabsy/client/src/components/input/input.tsx

📝 Walkthrough

Walkthrough

The sendTweet function's success toast now captures the returned toast identifier and dismisses that toast when the "View" link is clicked. The previous explicit toast duration configuration was removed from the toast.success call.

Changes

Toast Dismiss Fix

Layer / File(s) Summary
Dismiss success toast on View click
platforms/blabsy/client/src/components/input/input.tsx
Captures the toast id from toast.success and calls toast.dismiss(toastId) when the "View" link is clicked; removes the prior explicit duration: 6000 option.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

Suggested reviewers: coodos

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main fix: dismissing the toast when View is clicked on mobile.
Description check ✅ Passed The description includes the required sections: change summary, issue number, type, testing, and checklist.
Linked Issues check ✅ Passed The change dismisses the success toast on View click, matching the linked issue's expected behavior.
Out of Scope Changes check ✅ Passed The diff is narrowly scoped to the toast dismissal fix and does not introduce unrelated changes.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/viewBtnMobileDismissToast

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

platforms/blabsy/client/src/components/input/input.tsx

Oops! Something went wrong! :(

ESLint: 8.57.1

ESLint couldn't determine the plugin "@typescript-eslint" uniquely.

Please remove the "plugins" setting from either config or remove either plugin installation.

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coodos coodos merged commit bf2aa75 into main Jul 8, 2026
4 checks passed
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.

Blabsy: "Your Blab was sent" success toast persists on screen after viewing

2 participants