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

fix: improve report push notification on click #17710

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mayuran-deriv
Copy link
Contributor

@mayuran-deriv mayuran-deriv commented Dec 3, 2024

When clicking on the Reports link, the page redirects to reports/positions. However, the redirection does not carry the correct trade type. For example, if the user clicks on a Reports link associated with Accumulators, the page still redirects to reports/positions with the default trade type set to Options. This results in an error message stating "No contract positions", which can be misleading for the user.
Expected Behavior:
The redirection to reports/positions should reflect the context of the selected trade type. For instance:
If the user clicks on a Reports link for Accumulators, the reports/positions page should display Accumulators as the selected trade type and load relevant contract positions (if available).
Similarly, if the user clicks on a link associated with Multipliers, the page should display Multipliers as the selected trade type.

Copy link

vercel bot commented Dec 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
deriv-app ✅ Ready (Inspect) Visit Preview Dec 3, 2024 10:12am

@mayuran-deriv mayuran-deriv changed the title fix: improve report fix: improve report on click Dec 3, 2024
@mayuran-deriv mayuran-deriv changed the title fix: improve report on click fix: improve report push notification on click Dec 3, 2024
Copy link
Contributor

github-actions bot commented Dec 3, 2024

A production App ID was automatically generated for this PR. (log)

Click here to copy & paste above information.
- **PR**: [https://github.com/deriv-com/deriv-app/pull/17710](https://github.com/deriv-com/deriv-app/pull/17710)
- **URLs**:
    - **w/ App ID + Server**: https://deriv-app-git-fork-mayuran-deriv-mayuran-improvereportclick.binary.sx?qa_server=red.derivws.com&app_id=31531
    - **Original**: https://deriv-app-git-fork-mayuran-deriv-mayuran-improvereportclick.binary.sx
- **App ID**: `31531`

Copy link
Contributor

github-actions bot commented Dec 3, 2024

🚨 Lighthouse report for the changes in this PR:

Category Score
🔺 Performance 28
🟧 Accessibility 70
🟢 Best practices 92
🟧 SEO 77
🟧 PWA 78

Lighthouse ran with https://deriv-app-git-fork-mayuran-deriv-mayuran-improvereportclick.binary.sx/

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.

2 participants