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

Add events for recommendations #1039

Merged

Conversation

zainab-amir
Copy link
Contributor

@zainab-amir zainab-amir commented Aug 20, 2023

Description

Added events for recommendations shown after registration. Event details can be found in the ticket description.

JIRA

VAN-1600

How Has This Been Tested?

  • Tested locally
  • Updated tests

@zainab-amir zainab-amir requested a review from a team as a code owner August 20, 2023 18:09
@zainab-amir zainab-amir force-pushed the zamir/VAN-1600/add_events_for_recommendations branch 2 times, most recently from 78abaef to 04ae5e7 Compare August 20, 2023 18:57
@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

❗ No coverage uploaded for pull request base (recommendations-v2@771c288). Click here to learn what that means.
Patch has no changes to coverable lines.

❗ Current head 68774ca differs from pull request most recent head fbea2ea. Consider uploading reports for the commit fbea2ea to get more accurate results

Additional details and impacted files
@@                  Coverage Diff                  @@
##             recommendations-v2    #1039   +/-   ##
=====================================================
  Coverage                      ?   85.98%           
=====================================================
  Files                         ?      121           
  Lines                         ?     2291           
  Branches                      ?      658           
=====================================================
  Hits                          ?     1970           
  Misses                        ?      310           
  Partials                      ?       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@mubbsharanwar mubbsharanwar left a comment

Choose a reason for hiding this comment

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

Looks good.

import { DEFAULT_REDIRECT_URL } from '../data/constants';

const RecommendationsPage = ({ location }) => {
const { formatMessage } = useIntl();
const registrationResponse = location.state?.registrationResult;
const educationLevel = EDUCATION_LEVEL_MAPPING[location.state?.educationLevel];
const userId = location.state?.userId;
const userId = location.state?.userId || 1234;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to set the default value here for userId?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, this was added for debugging.

@zainab-amir zainab-amir force-pushed the zamir/VAN-1600/add_events_for_recommendations branch from 68774ca to fbea2ea Compare August 21, 2023 06:47
@zainab-amir zainab-amir merged commit b2b0d8c into recommendations-v2 Aug 21, 2023
4 checks passed
@zainab-amir zainab-amir deleted the zamir/VAN-1600/add_events_for_recommendations branch August 21, 2023 07:06
mubbsharanwar added a commit that referenced this pull request Aug 24, 2023
* feat: add events for recommendations (#1039)

* fix: Post registration feedback changes
fix Post registration recommendations background color and label

VAN-1616

---------

Co-authored-by: Zainab Amir <zainab.amir@arbisoft.com>
mubbsharanwar added a commit that referenced this pull request Aug 28, 2023
* feat: add events for recommendations (#1039)

* fix: Post registration feedback changes
fix Post registration recommendations background color and label

VAN-1616

---------

Co-authored-by: Zainab Amir <zainab.amir@arbisoft.com>
zainab-amir added a commit that referenced this pull request Sep 7, 2023
zainab-amir added a commit that referenced this pull request Sep 7, 2023
* feat: add events for recommendations (#1039)

* fix: Post registration feedback changes
fix Post registration recommendations background color and label

VAN-1616

---------

Co-authored-by: Zainab Amir <zainab.amir@arbisoft.com>
zainab-amir added a commit that referenced this pull request Sep 7, 2023
syedsajjadkazmii added a commit that referenced this pull request Sep 8, 2023
* feat: add personalized recommendations (#1024)

* use Algolia for personalized recommendations
* show personalized recommendations to use that have consented
to functional cookies
* update tests

VAN-1599

* Revert "fix: special characters in redirect url getting decoded to space (#1029)" (#1030)

This reverts commit fc62241.

* feat: update recommendations page design (#1036)

VAN-1598

* feat: add events for recommendations (#1039)

* feat: remove static recommendations

---------

Co-authored-by: Syed Sajjad Hussain Shah <52817156+syedsajjadkazmii@users.noreply.github.com>
snglth pushed a commit to Abstract-Tech/community-theme-authn that referenced this pull request Jan 9, 2024
* feat: add personalized recommendations (openedx#1024)

* use Algolia for personalized recommendations
* show personalized recommendations to use that have consented
to functional cookies
* update tests

VAN-1599

* Revert "fix: special characters in redirect url getting decoded to space (openedx#1029)" (openedx#1030)

This reverts commit fc62241.

* feat: update recommendations page design (openedx#1036)

VAN-1598

* feat: add events for recommendations (openedx#1039)

* feat: remove static recommendations

---------

Co-authored-by: Syed Sajjad Hussain Shah <52817156+syedsajjadkazmii@users.noreply.github.com>
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