lbry-desktop/ui/constants
infinite-persistence 34368760de Fill in remaining Recsys fields
## Issue
6366 Recsys Evaluation Telemetry

The recommended list from lighthouse is obtained from `makeSelectRecommendedContentForUri`. This list is further tweaked by the GUI (e.g. move autoplay next item to top, remove blocked content, etc.). Recsys wants the final recommendation list and the clicked index (in exact order), so we need pass these info to the videojs recsys plugin somehow. Also, Recsys wants a recommendation list ID as well as the parent (referrer) ID, we so need to track the clicks and navigation.

## General Approach
- It seems easiest to just spew back the final (displayed) list and all the required info to Redux, and the recsys plugin (or anyone else in the future) can grab it.
- Try to touch few files as possible. The dirty work should all reside in `<RecommendedContent>` only.

## Changes
- `ClaimPreview`: add optional parameters to store an ID of the container that it is in (for this case, it is `ClaimList`) as well as the index within the container.
  - When clicked, we store the container ID in the navigation history `state` object.
    - For general cases, anyone can check this state from  `history.location.state` to know which container referred/navigated to the current page. For the recsys use case, we can use this as the `parentUUID`.
- `ClaimList`: just relay `onClick` and set IDs.
- `RecommendedContent`: now handles the uuid generation (for both parent and child) and stores the data in Redux.
2021-08-03 09:34:36 -04:00
..
action_types.js Fill in remaining Recsys fields 2021-08-03 09:34:36 -04:00
claim.js update invalid symbols 2020-08-11 11:30:23 -04:00
claim_search.js wip 2021-06-08 13:25:52 -04:00
classnames.js Revert lazy-loading videojs 2021-07-06 17:04:16 +08:00
collections.js wip 2021-06-08 13:25:52 -04:00
comment.js Restore comment pagination 2021-07-16 10:54:12 -04:00
email.js simpler email regex 2019-11-18 14:50:29 -05:00
file_render_modes.js Enable PDF Viewer in App 2021-01-28 10:21:35 -05:00
form-field.js some recon (#6532) 2021-07-18 13:06:52 -04:00
icons.js music icon, fix lint 2021-07-22 17:31:46 -04:00
language-migrations.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
languages.js i18n: Added missing state handling for RTL languages (#6275) 2021-07-16 13:51:08 -04:00
licenses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
livestream.js livestream api constant rename 2021-07-28 16:51:11 -04:00
modal_types.js Add confirmation on comment removal 2021-07-30 10:24:04 -04:00
moonpay.js moonpay 2020-06-03 14:16:43 -04:00
navigation.js Fill in remaining Recsys fields 2021-08-03 09:34:36 -04:00
notifications.js Skin fiat-tip notification 2021-07-08 11:21:58 +08:00
pages.js Stripe 2 2021-07-17 13:19:33 -04:00
publish_types.js livestream related publish fixes 2021-04-22 10:59:03 -04:00
reactions.js creator only like reactions 2020-10-27 12:27:30 -04:00
report_content.js Rick constants 2021-04-21 10:49:31 -04:00
search.js Search: infinite scroll 2021-04-07 12:08:17 -04:00
searchable_languages.js claim-search by language 2020-10-29 15:20:18 -04:00
settings.js Add 24-hour clock setting. 2021-04-06 13:00:10 -04:00
subscriptions.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
supported_browser_languages.js Restore lost languages (#5972) 2021-04-28 20:27:04 -04:00
supported_languages.js i18n: Added missing state handling for RTL languages (#6275) 2021-07-16 13:51:08 -04:00
supported_sub_languages.js support brazilian portugese 2021-04-16 11:16:25 -04:00
tags.js review changes 2021-02-04 20:55:36 -05:00
themes.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
thumbnail_upload_statuses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
token.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
transaction_types.js fix: double confirmation on channel updates 2020-04-06 14:11:24 -04:00
user.js wip 2021-06-08 13:25:52 -04:00