giseldo/neodataset huggingface dataset:
Paywall/Exclusive content for Minds/Plus and PAY

- [x] Backend of existing paywall to be extended to show previews  (https://www.php.net/manual/en/imagick.blurimage.php)
- [x] New lockscreen component
- [x] Display tiername top right of preview
- [x] Remove the 'paywall preview' section of Settings, b/c people won't be able to customize it anymore
- [x] Display differently for different media types
- [x] fix: 'showSubmittedInfo' is displaying regardless of payment being made
- [x] investigate why activityService.isPaywall$ isn't working for vids/blogs
- [x] apply min height to <m-activity__content> on status posts
- [x] make it feature flaggable(?)
- [x] show paywall badge on top of nsfw wall
- [x] handle vertical centering of paywall message for posts with text
- [x] consider read mores
- [x] use old one on blog pages/media pages/media modal
- [x] make an Observable - service.showPaywallBadge$
- [x] show blurry galaxy thumb for gifs for now

## Mockups
https://design.minds.com/hosted/web/michael/front%23107-plus/#artboard7

https://design.minds.com/hosted/web/michael/front%23-plus-and-membership-tier/
https://design.minds.com/hosted/web/michael/front%23107-plus/#artboard15

## Endpoint
- [ ] `api/v3/wire/paywall/unlock/:guid`
- [ ] `fs/v1/thumbnail` to provide a blur if exclusive

## Paywall info in entities
### `paywall`
Should be `true` or `false`, depending if the entity (activity or object) has `wire_threshold` set.

### `wire_threshold`
It will be `null` if the entity is not paywalled, or can be a JavaScript object with the following properties:
- `type`: *<string>* `'money'` for USD and `'tokens'` for Minds Tokens
- `min`: *<number>* The minimum amount of `type` that the viewing user should have wired in the last 30 days to the owner in order to see the object's content.
- `support_tier`: *<string>* URN for the Support Tier this entity needs to be unlocked. e.g.: `urn:support-tier:100000000123/789789789789789`.

In the future, only `support_tier` will be populated, as the original structure only supports a single currency.

Story points: 1.0
Popover notification should be inside the grid of the new UI

<!---
Please read this!

Before opening a new issue, make sure to search for keywords in the issues
filtered by the "T - Bug" label and verify the issue you're about to submit isn't a duplicate.
--->

### Summary

The popover notifications are right aligned on the new UI. 

### Steps to reproduce

Trigger a notification

### Platform information 

All platforms


### Relevant logs and/or screenshots

![20200512_145717](/uploads/5f9d1ff8742c74e26d7109e291b1cd5e/20200512_145717.jpg)

### Possible fixes

If `.m-theme__2020` align with grid.

Story points: 1.0
YouTube migrator bugs

- [ ] Transfer all videos button broken
- [ ] Auto-import checkbox broken
- [ ] 0 queued, 0 transferring headers do not update 
- [ ] Need a live x% complete next to 'transferring'
- [ ] Fix thumbnail issues
- [ ] Need some sort of prompt to let user know that we will automatically take 10/day and that they can walk away
- [x] Invalid date on Transferred tab
- [ ] Fix newsfeed posts to reflect youtube upload date
- [ ] Implement alternative authentication option for adding link to youtube description

Story points: 1.0
"Pin" option is appearing for posts that aren't mine (Canary)

<!---
Please read this!

Before opening a new issue, make sure to search for keywords in the issues
filtered by the "T - Bug" label and verify the issue you're about to submit isn't a duplicate.
--->

### Summary

Options to pin and unpin are always appearing in new activities

### Steps to reproduce

Click on the post menu

### Platform information 

All

### What is the current *bug* behavior?

Options to pin and unpin are always appearing in new activities

### What is the expected *correct* behavior?

It should only appear for the owner if it was posted in a channel, and for group owners and moderators if it was posted in a group

(What you should see instead)

### Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

### Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Story points: 1.0
Clicking comments icon should do the same as 'view x comments'

If I click the link 'View 2 comments', I am shown the comments.  If I click the comment icon instead, I *should* be shown the comments but instead the 'View 2 comments' link disappears. The two should behave interchangeably

![image](/uploads/6217be1cbbd0b31425b999e43c7509eb/image.png)

Story points: 1.0
Various activity icon issues

* [x]  All of these should be the same color
![image](/uploads/e99b201ab2f7f429e3b659fdaee0066d/image.png)
* [x]  When you toggle the 'E', there is no visual indication of whether it is selected. It should be a slightly darker color when selected.
![image](/uploads/a92139fa95188b8c99c1b88c115935e7/image.png)
* [x]  These icons should be moved down a bit so they fit in the box
![image](/uploads/31ca243a4cb5851215950f583277088b/image.png)
* [x]  The attachment icon should be either the image or the paperclip, not both
* [x] The close ribbon caret icon is feeling claustrophobic (may revert fix #2863)

![image](/uploads/82db26c4c3e4f3e934d4c1c15253d468/image.png)

Story points: 1.0
Hide the boost rotator if no results from backend

Steps to replicate:

1. Create a new account
2. Switch to Canary mode
3. Go to newsfeed and see screenshot

![Screen_Shot_2020-05-07_at_1.13.27_PM](/uploads/81cbd0322f27d3df015b5a94bd32dc55/Screen_Shot_2020-05-07_at_1.13.27_PM.png)

I imagine that this is what a new user would see when they sign up once we flip the switch on Canary so this needs to be fixed. There should just be no blank space. 

Also, sidebar boost are showing. These should be hidden for new users using the same logic as the newsfeed boosts

Story points: 1.0
Signup/login modal and checkbox is not aligned when Canary superstructure is in place

Misaligned:

![Screen_Shot_2020-05-07_at_12.24.24_PM](/uploads/596166b5f9dc5ec10da0b1fde96c27b5/Screen_Shot_2020-05-07_at_12.24.24_PM.png)

Story points: 1.0
Direct user to set up their wallet if they aren't set up for SendWyre

<!---
Please read this!

Before opening a new issue, make sure to search for keywords in the issues
filtered by the "T - Bug" label and verify the issue you're about to submit isn't a duplicate.
--->

### Summary

If a user has no wallet, it redirects with no address.

### Steps to reproduce

1. Log in with no wallet, or try without logging in.
2. Go to /token
3. Hit buy ETH
4. Hit buy
5. Observe no ETH address

### Platform information 

Cross-platform web

### What is the current *bug* behavior?

Allows users to purchase with no wallet 

### What is the expected *correct* behavior?

Should direct users to make a wallet or account

### Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)

### Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Story points: 1.0
Remaining youtube issues

Little tweaks remaining on youtube importer. 

* [x] remove dummy counts data
* [x] enable transfer status counts
* [x] spinner on loading video list (instead of notice)
* [x] setup modal doesn't work
* [x] Remove 'nothing more to load' when no more data or first response result length is less than limit
* [x] Fix broken DELETE endpoints
* [x] account disconnect not working



Story points: 8.0
Toast notification disappears too quickly with long contents

I got this error and the notification faded out after 3s and the duration is too short to read all of this text. 

![image](/uploads/f00014ba6830d193d184fd8bb9270322/image.png)

But the duration is fine when there is less text. Possible solutions: 
- don't allow disappearance if you are hovering over the notification
- optional input/param for duration on a toast-by-toast basis
- extend the notifications time if the content has a certain qty of characters

Story points: 1.0
Wallet cash 'Remove bank' account link isn't functional

### Summary

Looks like you can't remove your only bank account from wallet/cash 

### Steps to reproduce

Add a bank account to wallet/cash and try to remove it

### What is the current *bug* behavior?

You see an error notice 
### What is the expected *correct* behavior?

You should either be able to remove your bank account, or the 'remove' link should not be visible when you have only one bank account. For multiple bank accounts, it seems like there will have to be a way to reset the 'default_for_currency' param if you want to remove your default bank account.

### Relevant logs and/or screenshots

![image](/uploads/88812568bdc920caf512f7e99f02a8e7/image.png)

### Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

/label ~"T \- Bug" ~"S \- Triage:new" 


Story points: 1.0
Modal overlay on first connect from youtube, but no modal

<!---
Please read this!

Before opening a new issue, make sure to search for keywords in the issues
filtered by the "T - Bug" label and verify the issue you're about to submit isn't a duplicate.
--->

### Summary

(Summarize the bug encountered concisely)

### Steps to reproduce

(How one can reproduce the issue - this is very important)

### Platform information 

Chrome

### What is the current *bug* behavior?

Dark overlay, looks like it should be a modal that is not there

### What is the expected *correct* behavior?

A modal?

### Relevant logs and/or screenshots

![Screenshot_2020-05-01_at_15.46.46](/uploads/b7630f2e6a33f650491bf697b8077e68/Screenshot_2020-05-01_at_15.46.46.png)

### Possible fixes

:shrug:

Story points: 1.0
Add post scheduler to the new composer

### Scheduler
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard8

### Drop down when the user clicks the arrow
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard18

### Small scheduler
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard21

### Light mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

- [x] Drop down schedule post should open the scheduler control
- [x] implement the date picker and time picker in user's local time
- [x] implement small version 
- [x] light mode
- [x] dark mode
- [ ] ~~unit tests~~ will do later
- [ ] ~~e2e tests~~ will do later
- [x] responsive design
- [x] point MR epic-compose-25 branch

Story points: 5.0
Add video metadata functionality to composer

When the user uploads / edits a video, we have some video specific chrome to overlay

If we can safely overlay these controls over plyr, overlay them. Else, swap out the player for the cover image in edit mode.

###  Uploading state
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard2

### Uploaded video
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard3 

### Cover selector
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard4

### Cover selector with custom image 
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard5

### Light mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

- [x] When the user clicks upload, allow them to upload a video
- [x] Note the subtle blue progress bar for uploading state
- [ ] When the video is uploaded / edited, show the overlay chrome and video controls
- [x] X deletes the attached video
- [ ] Change cover photo opens the image picker where users can upload a thumbnail or change to one of the composer images
- [ ] Owners / admins can upload / delete new cover photos
- [ ] When a video has been transcoded, allow the owners / admins to select from thumbnails
- [ ] light mode
- [ ] dark mode
- [ ] unit tests
- [ ] e2e tests
- [ ] responsive design
- [x] point MR epic-compose-25 branch

Story points: 16.0
Add a video / image uploader to the new composer

The upload button on the new composer should allow the uploading of images and videos (Like our existing paper clip)

### Uploading 
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard2

### Landscape
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard6

### Portrait
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard7

### Small mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard20

### Light mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

- [x] Constrain the height of the image to the composer modal, do not resize the outer box. Do shrink the text down
- [x] upload the image to our existing image endpoints
- [x] prepare on our video endpoint and upload the video to S3 with the signed URL returned by server
- [ ] ~~apply any selected NSFW or tags~~ out of scope, done at activity saving stage
- [x] show the preview in the composer above the text entry and title
- [x] allow deletion and removal of the image/video by the x button
- [ ] ~~the x button should be available in the edit mode of existing posts~~ This will be tackled in a edit-dedicated card
- [x] the x button should delete the attachement from the server
- [x] uploading an image should enable the add title button
- [x] light mode
- [x] dark mode
- [x] unit tests
- [ ] ~~e2e tests~~ e2e for this will be written at the end of epic
- [x] responsive design
- [x] point MR epic-compose-25 branch

Story points: 6.0
Add a title button to composer modal for videos and images

When a user has uploaded a video or an image, enable the plus button on the composer modal

### Adding a title
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard2

### Light mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

- [x] Allow owners/moderators to add and edit titles to media and images
- [x] Clicking the title + button should allow adding a title
- [x] Where we display the images and videos on the existing UI, add the title to the top
- [x] light mode
- [x] dark mode
- [x] unit tests
- [ ] ~~e2e tests~~ will do at the end of development due to some remaining changes that belong to other cards
- [x] responsive design
- [x] point MR epic-compose-25 branch

---

# Notes

Note: Message area will be below the (+) Title action as writing text will make both things overlap.
![image](/uploads/5be6162151cc01cccaee3271796e2016/image.png)

Story points: 8.0
Composer bottom bar

Implement the bottom bar on the new composer modal

This is just for the buttons and the interaction, the individual buttons will be addressed in specific cards

### Composer layout
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard0

### Small mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard20

### Light mode
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

- [x] Image button
- [x] Image button (small mode)
- [x] NSFW button
- [x] NSFW button (small mode)
- [x] Monetize button 
- [x] Monetize button (small mode)
- [x] Tag button
- [x] Tag button (small mode)
- [x] Post button (drop down)
- [x] Schedule button (drop down)
- [x] light mode
- [x] dark mode
- [x] unit tests
- [x] e2e tests
- [x] responsive design
- [x] point MR epic-compose-25 branch

Story points: 4.0
Compose top bar


Implement the meatball menu on the top right on the new composer modal

Owners and admins should be able to toggle the option. 

~~Non owners and non admins should see the menus as read only with what is currently selected. They should see the top level text "Visibility" and "License" replaced with the currently selected option~~

Owner/admin needs to be able to toggle licensing just like on the current blogs editor. 

Owner/admin needs to be able to toggle visibility like the old media viewer


### Mobile licensing look and feel
https://design.minds.com/hosted/mobile/michael/mobile%231687-composer/#artboard17

### Drop down menu
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard16

### Light mode reference
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

- [x] Clicking the meatball menu should display the toolbar
- [x] ~~Bring over the existing meatball menu so we can have existing functionality~~ Created a new dropdown component with mobile support
- [x] Put the two new toggles on the top
- [x] Port the reusable/stacking dropdown component to Post dropdown menu (Schedule post)
- [x] ~~Admins and owners should be able to interact with the meatball menu~~ Not applicable because Composer is meant to owners and admins
- [x] ~~None owners should only see read only information~~ Not applicable because Composer is meant to owners and admins
- [x] light mode
- [x] dark mode
- [x] unit tests
- [x] e2e tests
- [x] responsive design
- [x] point MR epic-compose-25 branch

Story points: 6.0
Deleting Posts requires reset to see

Assigning this to @eiennohi because he's a wizard at state issues.
### Summary

Deleting a post requires a reset to see

### Steps to reproduce

1. Delete a post
2. Post is still there until you refresh


### What is the current *bug* behavior?

Deleting a post requires a reset

### What is the expected *correct* behavior?

Post should be removed when it is deleted 

### Relevant logs and/or screenshots

![delete_post](/uploads/4b12bba12184956e87b2ebd3f3ce2b67/delete_post.mp4)

![image](/uploads/d39ecdd7bfcf4bdc08b793184bc5dde3/image.png)

- [ ] Make sure we don't need to reload to remove posts from newsfeed, discovery and groups

Story points: 4.0
Compose pop up window

When a user focuses on the newsfeed poster, display the new compose modal as an overlay

Dark mode (main ui)
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard0

Light mode (reference)
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard17

Small mode (design should shrink until the smallest cut off and then implement this)
https://design.minds.com/hosted/web/michael/front%231280-composer/#artboard20

- [x] setup a new feature flag called "compose" and make it unleash-able
- [x] when a user focuses the activity poster control on the current ui, open the modal
- [x] light mode
- [x] dark mode
- [x] unit tests
- [x] e2e tests
- [x] responsive design
- [x] point MR epic-compose-25 branch

This is just a card for setting up the overall composer modal and getting the interaction perfect and working in all browser. Individual features will be in separate cards

Story points: 8.0
NSFW in modal pager

We should not show NSFW media in the media modals if the user does not have "show mature content" selected in their settings.

We should be passing this through as a parameter to the endpoint to avoid data wastage.

- [] If the user allows NSFW content, allow it in the the modal pager
- [] If the user does not allow NSFW content, filter out NSFW content

Story points: 6.0
Make sure the new wallet functions with SSR

Using the new rules defined by Mark, make sure the wallet functions when the SSR is merged in

Checked & fixed: 
* [x]  setTimeout
* [x]  setInterval
* [x]  rxjs timer
* [x]  window.Minds
* [x]  window.___ (other)
* [x]  document.___
* [x]  storage
* [x]  cookies
* [x]  page title
 
!686 

Story points: 2.0
Create a wallet feature flag to direct to the new wallet

In the router, /wallet needs to route to the appropriate component

- [x] Create a feature flag called "wallet-redesign"
- [x] If true, load the new wallet components
- [x] If false, load the old wallet

If you have any questions, talk to Marce

## Testing
- feature flag is 'wallet-upgrade'
- see router config resets at the end of `wallet.module.ts`

there's some definite hackiness here.

!686 

Story points: 2.0
Token / currency balance live code

- [ ] Setup a stripe test account and link it to your local so we can develop the actual data calls
- [ ] Uncomment your service code
- [ ] Wire up the the token with the api call
- [ ] Setup the secrets on the review site via helm charts
- [ ] unit tests
- [ ] end 2 tests

Adding an extra day for Olivia to learn end to end tests

Story points: 14.0
TypeError: Cannot read property 'next' of undefined

Sentry Issue: [FRONT-3F4](https://sentry.io/organizations/minds-inc/issues/1471250728/?referrer=gitlab_integration)

```
TypeError: Cannot read property 'next' of undefined
  at apply (./src/app/services/sockets.ts:73:19)
...
(12 additional frame(s) were not displayed)
```

Story points: 4.0
Onboarding channels not showing the number of subscribers

![image](/uploads/64a14c87acb67511c10ab13134185354/image.png)

On firefox, the list of channels isn't showing the number of subscribers on walrus

It's making this call:

https://walrus.minds.com/api/v2/feeds/global/top/channels?hashtags=&period=1y&all=&query=&nsfw=&sync=1&limit=150&as_activities=1&export_user_counts=1&from_timestamp=

And I don't see any subscriber count in the data modal coming back from the api


Also, I noticed two things when we load both the groups and the subscribers. Now, there is a couple of second delay where we display "No results" and then replace it with the list of groups and channels. This should be a loading spinner until we are sure we get a response back

Also, it looks like we're calling the URL twice (might be related to the above). In my console, I got two of these:
https://walrus.minds.com/api/v2/feeds/global/top/channels?hashtags=&period=1y&all=&query=&nsfw=&sync=1&limit=150&as_activities=1&export_user_counts=1&from_timestamp=

- [x] Display the number of subscribers
- [x] Make sure we're only calling the feed urls once
- [x] Display a spinner instead of no results > actual results

Story points: 4.0
Implement better arrows for modal pager

* Controls (`left arrow`, `right arrow` and `close button`) are always visible. Show the left/right arrows will demonstrate that there is more content, without necessarily needing to hover over the content
* Controls are at 60% opacity by default. On Hover this increases to `100%`. Feel free to use any animation which may enhance things.
* The position of the arrows have been moved.
* Pressing escape on the keyboard should close the modal also.

Let me know if you've any questions at all.

https://gitlab.com/minds/front/uploads/95533eb32d3589daebb604c46e9ff831/modal-arrows.png

Story points: 4.0
Onboarding groups tooltip do not overlap email banner on mobile

<!---
Please read this!

Before opening a new issue, make sure to search for keywords in the issues
filtered by the "T - Bug" label and verify the issue you're about to submit isn't a duplicate.
--->

### Summary

Onboarding groups tooltip do not overlap email banner on mobile as they should. (see image below)

### Steps to reproduce

1. Go on mobile or resize browser window
2. Make a new account
3. hover over the help and support group

### Platform information 

Cross-platform replicated Chromium / Ubuntu 19.04.

### What is the current *bug* behavior?

Tooltip is cut off by banner

### What is the expected *correct* behavior?

It should show over the top of the banner, or not activate if the banner takes precedence.

### Relevant logs and/or screenshots

![image](/uploads/b7c604fef897b88873c0b433d581d068/image.png)

### Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Story points: 2.0