Add release date field #5514

Closed
Ruk33 wants to merge 4 commits from 2328-allow-to-set-release-date into master
Ruk33 commented 2021-02-11 15:15:04 +01:00 (Migrated from github.com)

PR Checklist

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 have checked that this PR does not introduce a breaking change
  • This PR introduces breaking changes and I have provided a detailed explanation below

PR Type

What kind of change does this PR introduce?

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

Fixes

Issue Number: https://github.com/lbryio/lbry-desktop/issues/2328

What is the current behavior?

The release date is assigned automatically.

What is the new behavior?

The user can pick a release date.

image

image

image

image

Other information

NOTE

This PR requires https://github.com/lbryio/lbry-redux/pull/381 (change in lbry redux)

## PR Checklist <!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" --> 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) - [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 ## PR Type What kind of change does this PR introduce? - [ ] Bugfix - [x] Feature - [ ] Code style update (formatting) - [ ] Refactoring (no functional changes) - [ ] Documentation changes - [ ] Other - Please describe: ## Fixes Issue Number: https://github.com/lbryio/lbry-desktop/issues/2328 ## What is the current behavior? The release date is assigned automatically. ## What is the new behavior? The user can pick a release date. ![image](https://user-images.githubusercontent.com/1719111/107647976-8938f580-6c5a-11eb-85bb-2aa1162b9a48.png) ![image](https://user-images.githubusercontent.com/1719111/107647995-90600380-6c5a-11eb-8789-b22aefdedbf1.png) ![image](https://user-images.githubusercontent.com/1719111/107648038-9eae1f80-6c5a-11eb-9987-bce46b707c6a.png) ![image](https://user-images.githubusercontent.com/1719111/107648427-13815980-6c5b-11eb-9e9c-bfbbf1c1d1ab.png) ## Other information ### NOTE This PR requires https://github.com/lbryio/lbry-redux/pull/381 (change in lbry redux)
neb-b (Migrated from github.com) reviewed 2021-02-11 15:15:04 +01:00
infinite-persistence (Migrated from github.com) reviewed 2021-02-11 15:15:04 +01:00
neb-b (Migrated from github.com) requested changes 2021-02-15 19:21:18 +01:00
neb-b (Migrated from github.com) left a comment

Thanks for the PR! I think this should live under the "advanced" section. Inside of the advanced section. You should also be able to specify the time, not just the date.

Thanks for the PR! I think this should live under the "advanced" section. Inside of the advanced section. You should also be able to specify the time, not just the date.
Ruk33 commented 2021-02-19 15:12:09 +01:00 (Migrated from github.com)

Hello @seanyesmunt , you mean additional?

image

image

I can't find the advanced section you are referring.

Regards.

Hello @seanyesmunt , you mean additional? ![image](https://user-images.githubusercontent.com/1719111/108514931-418e1b80-72a3-11eb-86bb-1427219e94e9.png) ![image](https://user-images.githubusercontent.com/1719111/108514943-46eb6600-72a3-11eb-9806-f7a18e7f7884.png) I can't find the advanced section you are referring. Regards.
Ruk33 commented 2021-02-19 15:50:15 +01:00 (Migrated from github.com)

@seanyesmunt is this better?

image

image

@seanyesmunt is this better? ![image](https://user-images.githubusercontent.com/1719111/108519640-98e2ba80-72a8-11eb-8050-e7326bf71188.png) ![image](https://user-images.githubusercontent.com/1719111/108519668-a009c880-72a8-11eb-8a5e-4ba8510dfeab.png)
neb-b commented 2021-02-24 17:20:08 +01:00 (Migrated from github.com)

@Ruk33 sorry I missed your latest changes! I'll test these out today

@Ruk33 sorry I missed your latest changes! I'll test these out today
kauffj commented 2021-02-24 18:32:54 +01:00 (Migrated from github.com)

@seanyesmunt or @Ruk33 is it possible to make the year a select? This request is not a blocker

@seanyesmunt or @Ruk33 is it possible to make the year a select? This request is not a blocker
neb-b (Migrated from github.com) reviewed 2021-02-24 19:06:19 +01:00
@ -462,0 +471,4 @@
.form-field-date-picker {
margin-bottom: var(--spacing-l);
}
neb-b (Migrated from github.com) commented 2021-02-24 19:06:19 +01:00

Somewhere the icon color needs to be set. Right now it's always black, which is too dark when the dark theme is selected

Somewhere the icon color needs to be set. Right now it's always black, which is too dark when the dark theme is selected
Ruk33 (Migrated from github.com) reviewed 2021-02-24 20:24:54 +01:00
@ -462,0 +471,4 @@
.form-field-date-picker {
margin-bottom: var(--spacing-l);
}
Ruk33 (Migrated from github.com) commented 2021-02-24 20:24:53 +01:00

Ah good catch, thanks @seanyesmunt will check it out.

Ah good catch, thanks @seanyesmunt will check it out.
Ruk33 commented 2021-02-24 20:25:32 +01:00 (Migrated from github.com)

@seanyesmunt or @Ruk33 is it possible to make the year a select? This request is not a blocker

Hello @kauffj , you mean to add a separate select just for the year?

> @seanyesmunt or @Ruk33 is it possible to make the year a select? This request is not a blocker Hello @kauffj , you mean to add a separate select just for the year?
Ruk33 (Migrated from github.com) reviewed 2021-02-24 20:38:54 +01:00
@ -462,0 +471,4 @@
.form-field-date-picker {
margin-bottom: var(--spacing-l);
}
Ruk33 (Migrated from github.com) commented 2021-02-24 20:38:54 +01:00

How about something like this

image

And hover (my mouse is on X)

image

And dark

image

How about something like this ![image](https://user-images.githubusercontent.com/1719111/109055968-9c1de200-76be-11eb-8f54-a44424eb9d66.png) And hover (my mouse is on X) ![image](https://user-images.githubusercontent.com/1719111/109055997-a4761d00-76be-11eb-9506-4751605c38d5.png) And dark ![image](https://user-images.githubusercontent.com/1719111/109056106-c66f9f80-76be-11eb-95dc-7c34cfae5157.png)
neb-b (Migrated from github.com) reviewed 2021-02-25 20:47:37 +01:00
@ -462,0 +471,4 @@
.form-field-date-picker {
margin-bottom: var(--spacing-l);
}
neb-b (Migrated from github.com) commented 2021-02-25 20:47:37 +01:00

The buttons should be white. Just like the text

The buttons should be white. Just like the text
Ruk33 (Migrated from github.com) reviewed 2021-03-01 18:30:20 +01:00
@ -462,0 +471,4 @@
.form-field-date-picker {
margin-bottom: var(--spacing-l);
}
Ruk33 (Migrated from github.com) commented 2021-03-01 18:30:20 +01:00

Hello @seanyesmunt , sorry it took me this long, here are the changes:

Dark mode
image

Light mode
image

I'm not sure though if implementing it using

[theme='dark'] {
    ...
}

is correct or a pattern you guys use since I haven't seen it (only in dark.scss). Please let me know if I should change it. Thanks!

Hello @seanyesmunt , sorry it took me this long, here are the changes: Dark mode ![image](https://user-images.githubusercontent.com/1719111/109534782-77e54b00-7a9a-11eb-9883-9d6937f00183.png) Light mode ![image](https://user-images.githubusercontent.com/1719111/109534819-80d61c80-7a9a-11eb-822f-2326678a42c1.png) I'm not sure though if implementing it using ``` [theme='dark'] { ... } ``` is correct or a pattern you guys use since I haven't seen it (only in `dark.scss`). Please let me know if I should change it. Thanks!
neb-b commented 2021-03-01 20:25:11 +01:00 (Migrated from github.com)

@Ruk33 Sorry this has taken so long. I will merge this sometime this week. Thank you for all of the work.

@Ruk33 Sorry this has taken so long. I will merge this sometime this week. Thank you for all of the work.
neb-b commented 2021-03-05 22:06:40 +01:00 (Migrated from github.com)

I made a few changes but am seeing a bug where the date is wrong when you go to edit a claim

I made a few changes but am seeing a bug where the date is wrong when you go to edit a claim
neb-b commented 2021-03-19 16:11:32 +01:00 (Migrated from github.com)

@Ruk33 This one is really close! It would be great to get in.

@Ruk33 This one is really close! It would be great to get in.
Ruk33 commented 2021-03-24 15:41:58 +01:00 (Migrated from github.com)

Hello @seanyesmunt thanks for the follow-up. I will continue working on it.

Hello @seanyesmunt thanks for the follow-up. I will continue working on it.
tzarebczan commented 2021-03-31 22:18:58 +02:00 (Migrated from github.com)

@Ruk33 let us know when this is ready for review again!

@Ruk33 let us know when this is ready for review again!
tzarebczan commented 2021-04-07 18:03:19 +02:00 (Migrated from github.com)

@Ruk33 won't have the bandwidth to pick this back up. I think the last bug was not re-populating the date in the edit flow.

@Ruk33 won't have the bandwidth to pick this back up. I think the last bug was not re-populating the date in the edit flow.
kauffj commented 2021-04-26 21:15:27 +02:00 (Migrated from github.com)

@infinite-persistence can you get this over the finish line?

@infinite-persistence can you get this over the finish line?
kauffj commented 2021-04-26 21:17:27 +02:00 (Migrated from github.com)

This needs additional help text that shows when the release date is set in the future. Text is: "Setting a future timestamp does not guarantee your content is inaccessible". Assign PR to me to re-work text before shipping.

This needs additional help text that shows when the release date is set in the future. Text is: "Setting a future timestamp does not guarantee your content is inaccessible". Assign PR to me to re-work text before shipping.
infinite-persistence commented 2021-05-11 10:06:12 +02:00 (Migrated from github.com)

Move

`Move` - Moving this to #6049

Pull request closed

Sign in to join this conversation.
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#5514
No description provided.