Modal repost #7341

Merged
bradley-ray merged 7 commits from modal-repost into master 2021-12-12 07:03:00 +01:00
bradley-ray commented 2021-12-10 23:01:16 +01:00 (Migrated from github.com)

Fixes

Issue Number: #7255

What is the current behavior?

Currently when the repost button is clicked, a new page is opened in order to repost content. Also would redirect to new channel page if user did not have a channel made.

What is the new behavior?

Now when repost is clicked a pop up appears with the repost information. If user does not have a channel, a notification appears informing them they need to create one along with a link to the /channel/new page.

Other information

PR Checklist

Toggle...

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting)
  • Refactoring (no functional changes)
  • Documentation changes
  • Other - Please describe:

Please check all that apply to this PR using "x":

  • I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
  • I added a line describing my change to CHANGELOG.md
  • I have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below
## Fixes Issue Number: #7255 <!-- Tip: - Add keywords to directly close the Issue when the PR is merged. - Skip the keyword if the Issue contains multiple items. - https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword --> ## What is the current behavior? Currently when the repost button is clicked, a new page is opened in order to repost content. Also would redirect to new channel page if user did not have a channel made. ## What is the new behavior? Now when repost is clicked a pop up appears with the repost information. If user does not have a channel, a notification appears informing them they need to create one along with a link to the /channel/new page. ## Other information <!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. --> ## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> <details><summary>Toggle...</summary> What kind of change does this PR introduce? - [ ] Bugfix - [X] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: Please check all that apply to this PR using "x": - [X] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged) - [ ] I added a line describing my change to CHANGELOG.md - [X] I have checked that this PR does not introduce a breaking change - [ ] This PR introduces breaking changes and I have provided a detailed explanation below </details>
jessopb commented 2021-12-11 00:49:34 +01:00 (Migrated from github.com)

Thanks! I'll take a look soon.

Thanks! I'll take a look soon.
jessopb commented 2021-12-11 03:16:20 +01:00 (Migrated from github.com)

Looks pretty close! The direction makes sense
A few things -
If you yarn lint, it'll show you a few things to fix. (unused vars, a semicolon, etc)
There are a few more places where PAGES.REPOST_NEW is used that should (probably?) use this component.
I know the modal internal spacing generally isn't great, but the channel selector is smushed to the top corner.
image
Maybe give it a Title section like this?
image

Looks pretty close! The direction makes sense A few things - If you yarn lint, it'll show you a few things to fix. (unused vars, a semicolon, etc) There are a few more places where PAGES.REPOST_NEW is used that should (probably?) use this component. I know the modal internal spacing generally isn't great, but the channel selector is smushed to the top corner. ![image](https://user-images.githubusercontent.com/36554050/145660424-f469d9f2-3cfe-40bf-96c4-dea4eef5936b.png) Maybe give it a Title section like this? ![image](https://user-images.githubusercontent.com/36554050/145660438-d0b07e6c-9c8c-406f-ab6a-e0cef11439f3.png)
bradley-ray commented 2021-12-11 18:27:14 +01:00 (Migrated from github.com)

Sounds good. I think given the context of the other PAGES.REPOST_NEW, having repost be a separate page in those instances rather than a modal makes more sense.

Sounds good. I think given the context of the other PAGES.REPOST_NEW, having repost be a separate page in those instances rather than a modal makes more sense.
jessopb commented 2021-12-11 18:32:35 +01:00 (Migrated from github.com)

Alright, that sounds ok.

Alright, that sounds ok.
bradley-ray commented 2021-12-12 01:04:17 +01:00 (Migrated from github.com)

Should be good to go now I think.

Should be good to go now I think.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#7341
No description provided.