New repost flow #5167

Merged
jessopb merged 3 commits from repostFromSearchRebase into master 2020-12-16 16:32:30 +01:00
jessopb commented 2020-12-11 15:54:09 +01:00 (Migrated from github.com)

rebased version

rebased version
neb-b (Migrated from github.com) reviewed 2020-12-11 15:54:09 +01:00
neb-b (Migrated from github.com) requested changes 2020-12-11 17:27:33 +01:00
neb-b (Migrated from github.com) commented 2020-12-11 17:06:46 +01:00

Unused strings need to be cleaned up

Unused strings need to be cleaned up
neb-b (Migrated from github.com) commented 2020-12-11 17:27:03 +01:00

Lets make these into their own components. claimPreview/internal/{mature-contnet, ...}

Lets make these into their own components. `claimPreview/internal/{mature-contnet, ...}`
neb-b (Migrated from github.com) commented 2020-12-11 17:24:06 +01:00

comment

comment
neb-b (Migrated from github.com) commented 2020-12-11 17:24:27 +01:00

I think this should be Support instead of Stake

I think this should be `Support` instead of `Stake`
neb-b (Migrated from github.com) commented 2020-12-11 17:24:53 +01:00

Move this somewhere inside the card or remove

Move this somewhere inside the card or remove
neb-b (Migrated from github.com) commented 2020-12-11 17:23:37 +01:00

You shouldn't need this comment

You shouldn't need this comment
neb-b (Migrated from github.com) commented 2020-12-11 17:23:44 +01:00

extra comment

extra comment
neb-b (Migrated from github.com) commented 2020-12-11 17:23:18 +01:00

I'm not sure what this comment means

I'm not sure what this comment means
@ -51,33 +60,68 @@ export default function SearchTopClaim(props: Props) {
}
neb-b (Migrated from github.com) commented 2020-12-11 17:22:18 +01:00

Please use className="empty empty--centered" if we aren't using classnames or a js variable in the classname

Please use `className="empty empty--centered"` if we aren't using `classnames` or a js variable in the classname
neb-b (Migrated from github.com) commented 2020-12-11 17:18:05 +01:00

Wrap this with <div className={classnames({"card--disabled": balance === 0 })}

Wrap this with `<div className={classnames({"card--disabled": balance === 0 })}`
neb-b (Migrated from github.com) commented 2020-12-11 17:19:07 +01:00

You don't need to check for resolveUri since it will always exist

You don't need to check for `resolveUri` since it will always exist
neb-b (Migrated from github.com) commented 2020-12-11 17:20:52 +01:00

I think this can just be from and to so the URL is more readable

I think this can just be `from` and `to` so the URL is more readable
neb-b (Migrated from github.com) commented 2020-12-11 17:17:17 +01:00

Not needed now but something I've been thinking about for a while is changing isSearching to return true if the lighthouse call hasn't returned yet or if the results from lighthouse aren't done resolving.

just FYI, should help with some UI flashing issues

Not needed now but something I've been thinking about for a while is changing `isSearching` to return `true` if the lighthouse call hasn't returned yet _or_ if the results from lighthouse aren't done resolving. just FYI, should help with some UI flashing issues
neb-b (Migrated from github.com) commented 2020-12-11 17:15:55 +01:00

I don't think you need this lint comment

I don't think you need this lint comment
@ -24,2 +27,4 @@
name={channelActive ? `@${queryName}` : queryName}
defaultFreshness={FRESH_ALL}
defaultOrderBy={ORDER_BY_TOP}
meta={
neb-b (Migrated from github.com) commented 2020-12-11 17:10:21 +01:00

Looking at the queryName line above... I think you can just do name={name}?

Looking at the `queryName` line above... I think you can just do `name={name}`?
@ -26,0 +31,4 @@
<I18nMessage
tokens={{
repost: (
<Button
neb-b (Migrated from github.com) commented 2020-12-11 17:12:06 +01:00

This doesn't need to be a new style. You can keep the header prop as it was, and pass the action text in with the meta prop.

https://github.com/lbryio/lbry-desktop/blob/master/ui/page/channelsFollowing/view.jsx#L35

This doesn't need to be a new style. You can keep the `header` prop as it was, and pass the action text in with the `meta` prop. https://github.com/lbryio/lbry-desktop/blob/master/ui/page/channelsFollowing/view.jsx#L35
neb-b (Migrated from github.com) commented 2020-12-11 17:15:23 +01:00

meta={<I18nMessage>...

`meta={<I18nMessage>...`
@ -97,11 +104,13 @@ export const makeSelectWinningUriForQuery = (query: string) => {
neb-b (Migrated from github.com) commented 2020-12-11 17:09:05 +01:00

This should only return pendingClaimUrl if it's effective amount is greater than claim1 and claim2

This should only return `pendingClaimUrl` if it's effective amount is greater than `claim1` and `claim2`
neb-b (Migrated from github.com) commented 2020-12-11 17:14:47 +01:00

This shouldn't be needed if you bring the help text into the card on the repost page (or remove it)

This shouldn't be needed if you bring the help text into the card on the repost page (or remove it)
@ -135,2 +152,3 @@
width: 5rem;
min-height: 5rem;
width: 8rem;
}
neb-b (Migrated from github.com) commented 2020-12-11 17:13:55 +01:00

Generally, I have been trying to follow this pattern

.class {
	style: value;

	&:psuedo {
		style: value;
	}

	@media (...) {
		style: value;
	}
}

Generally, I have been trying to follow this pattern ``` .class { style: value; &:psuedo { style: value; } @media (...) { style: value; } } ```
@ -97,3 +97,15 @@
}
}
}
.claim-search__menu-group--between {
neb-b (Migrated from github.com) commented 2020-12-11 17:12:21 +01:00

This shouldn't be needed if you use the meta prop

This shouldn't be needed if you use the `meta` prop
jessopb (Migrated from github.com) reviewed 2020-12-11 17:32:01 +01:00
jessopb (Migrated from github.com) commented 2020-12-11 17:32:01 +01:00

It was "Deposit"..

It was "Deposit"..
jessopb (Migrated from github.com) reviewed 2020-12-11 19:30:13 +01:00
@ -24,2 +27,4 @@
name={channelActive ? `@${queryName}` : queryName}
defaultFreshness={FRESH_ALL}
defaultOrderBy={ORDER_BY_TOP}
meta={
jessopb (Migrated from github.com) commented 2020-12-11 19:30:13 +01:00

Tried it, can't do it - it doesn't switch what claimListDiscover searches that way.

Tried it, can't do it - it doesn't switch what claimListDiscover searches that way.
jessopb (Migrated from github.com) reviewed 2020-12-11 22:26:17 +01:00
@ -97,11 +104,13 @@ export const makeSelectWinningUriForQuery = (query: string) => {
jessopb (Migrated from github.com) commented 2020-12-11 22:26:16 +01:00

refactored to return the claim. was simpler than I thought.

refactored to return the claim. was simpler than I thought.
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#5167
No description provided.