Commit graph

447 commits

Author SHA1 Message Date
Sean Yesmunt 52eb4de7a9 add adstest page to test player ads 2020-10-30 00:20:42 -04:00
Sean Yesmunt 419dd6431e fix exact claim not showing up when copying url 2020-10-30 00:04:59 -04:00
Sean Yesmunt f2c6986a6f show channels + streams as winning claim from search query 2020-10-28 16:28:36 -04:00
jessop 9d4f7dc642 sync reducer stuff
bring tags into app repo

prevent prefset until prefsReady

prefs ready on sign up

prefsReady-desktop
2020-10-27 10:17:11 -04:00
Sean Yesmunt ffdac06b80 fix typo 2020-10-23 15:26:39 -04:00
Sean Yesmunt 82b460f53d add back support button on top page 2020-10-23 15:08:27 -04:00
Sean Yesmunt 6516d9ffa6 only includeSupportAction for not SIMPLE_SITE 2020-10-23 15:08:27 -04:00
Sean Yesmunt 54fa36abc0 bring in lbc/file details for everyone 2020-10-23 15:08:27 -04:00
Sean Yesmunt 1711dc6601 enable top claim on search page for everyone 2020-10-23 15:08:27 -04:00
Sean Yesmunt 295b8cf2e1 refactor floatingUri to allow inline players in comments/markdown 2020-10-21 15:29:29 -04:00
jessop 6284f86026 fix reward rates crash 2020-10-16 00:07:30 -04:00
Sean Yesmunt cfd4e8a05d rc fixes for electron 9 2020-10-15 19:06:47 -04:00
infiinte-persistence 511a746871 Str-context-split: "To" and "From"
## Note from Russian translator
"To/From" in the 'automatic dark mode setting' cannot be re-used for the one in the 'Tip Modal'.

## Change
Wanted to split this into "general" and "time", but I'm guessing it won't satisfy all languages, so we'll just use the usage as the context since there's just 2 instances.
2020-10-14 17:44:44 -04:00
infiinte-persistence 80b4600f60 Str-context-split: "Follow"
## Issue
4192
2020-10-14 17:44:44 -04:00
infiinte-persistence 567316cfbe Support for multiple string context + "About" as initial example.
## Issue
4796 - i18n: Allow support for string overloading (multiple contexts)

## Approach
- Minimal code and process change.
- Handle on a case-by-case basis when reported by translators.
- Split the affected key in the string json by appending the context.
- Translators need to be aware of the new format and not translate context itself. Code is added to detect bad translations and will revert to English.

Sample in json:
  "About --[About section in Help Page]--": "About",
  "About --[tab title in Channel Page]--":  "About",

Sample in client code:
  title={__('About --[About section in Help Page]--')}

- "--[ ]--" was chosen as it's unique enough (unlikely for real strings to use it) and hopefully not that distracting in the client code.
- In the key itself, spaces are allowed after the string (i.e. before '--[') for neatness. It will be trimmed by the system.

## First example
"About" is used in 3 places:
   - Channel Page
   - Help Page
   - Footer (in Odysee branch)

For Russian, the word "About" is "O" and is usually not used standalone, but requires something behind it. A translator said so, and seems to be the case in other sites as well.
   "O xxx"
   "O yyy"

## Other languages
For other languages that are not impacted, they can just clone the same translation for each of the split keys, just like in English.

## Possible enhancement in Transifex
I see that Transifex's API includes a `context` entry. It might be possible to move the context-metadata there during the upload, so translators will never see the "--[]--" messiness (it will be shown as "Context: xxx" in the Transifex GUI).

I'm not sure how to test the Transifex side, so I did not investigate further.
2020-10-14 17:44:44 -04:00
Sean Yesmunt 172e918de5 pass to 2020-10-13 15:31:07 -04:00
Sean Yesmunt 88c86ff447 add help link 2020-10-12 23:21:23 -04:00
Sean Yesmunt 4815aa9ff1 add reward rate + analytics link on channels page 2020-10-12 23:21:23 -04:00
infiinte-persistence 1100a07108 Comment v69 strings and misc. 2020-10-08 10:37:17 -04:00
Sean Yesmunt c1b5280446 move youtube badge to 'channel about' section 2020-10-06 16:30:03 -04:00
ioancole 9d51cee72c Correctly navigate to channel URL 2020-10-05 16:43:29 -04:00
infiinte-persistence ef12914cad Rebranding: 'Publish' --> 'Upload'; Use LBC icon 2020-10-02 10:25:17 -04:00
infiinte-persistence 16b1605a35 Add SETTINGS.ENABLE_PUBLISH_PREVIEW
This option allows users to bypass the "publish preview" modal. Users can disable it by checking "don't show this again" in the modal, and re-enable it in the Settings Page.
2020-10-02 10:25:17 -04:00
Sean Yesmunt a92a3305b1 align FileActions with odysee style 2020-09-30 17:00:18 -04:00
infiinte-persistence 5df4ed2783 String scrub from odysee/release merge
- More missing strings
- Moved strings around to keep related strings together (easier for translators to guess the context)
- Removed translation macro for blank string
- Fix typo for 'Neetwork'
2020-09-30 14:06:11 -04:00
Sean Yesmunt b0d19455c1 add placeholder upvote/downvote buttons on comments 2020-09-29 17:12:32 -04:00
Sean Yesmunt bf9be7c46d keep header on regular discover page 2020-09-29 17:12:32 -04:00
Sean Yesmunt 51d8d85c60 re-enable reposts for SIMPLE_SITE 2020-09-29 17:12:32 -04:00
Sean Yesmunt 6b8a38b894 add spinner to web upload message and fix double card issue 2020-09-29 17:12:32 -04:00
Sean Yesmunt 23f218a568 use backout mode on publish page 2020-09-29 17:12:32 -04:00
Sean Yesmunt 299301b633 make channel/tag follow intro optional 2020-09-29 17:12:32 -04:00
Sean Yesmunt 4e1076e01b make category header clickable 2020-09-29 17:12:32 -04:00
Sean Yesmunt c1e6e90896 large claim-grid header text + optional icon 2020-09-29 17:12:32 -04:00
Sean Yesmunt cc0b1aea65 add backout option for youtube sync and fix scroll reset 2020-09-29 17:12:32 -04:00
Sean Yesmunt ac770518bf remove old syncSettings usage 2020-09-29 17:12:32 -04:00
Sean Yesmunt f547053ebc add yotube sync to initial sign up flow 2020-09-29 17:12:32 -04:00
Sean Yesmunt 295fec0370 copy changes 2020-09-29 17:12:32 -04:00
Sean Yesmunt bc89d774ba add youtube sync to first run 2020-09-29 17:12:32 -04:00
Sean Yesmunt 83a6589cd0 new lbc icon 2020-09-29 17:12:32 -04:00
Sean Yesmunt 5014b1a027 fix notification linking to channel page 2020-09-29 17:12:32 -04:00
Sean Yesmunt 3f32f5a0ca make sure notifications aren't hidden 2020-09-29 17:12:32 -04:00
Sean Yesmunt 14355ed966 fix copy 2020-09-29 17:12:32 -04:00
Sean Yesmunt 1f2fabe81b Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
Sean Yesmunt 7f6ab894d1 create YrblWalletEmpty for generic yrbl with empty wallet message 2020-09-29 17:12:32 -04:00
Sean Yesmunt 391cc76bd8 use consitent style for 'empty wallet' message on pages that require LBC 2020-09-29 17:12:32 -04:00
Sean Yesmunt a5107f075c wip with channel prompts on comments 2020-09-29 17:12:32 -04:00
Sean Yesmunt 87247feb23 copy 2020-09-29 17:12:32 -04:00
Sean Yesmunt 88fac1b30b copy changes 2020-09-29 17:12:32 -04:00
Sean Yesmunt 2dee81b624 Sign In => Log in 2020-09-29 17:12:32 -04:00
Sean Yesmunt 248e578422 new comments 2020-09-29 17:12:32 -04:00
Sean Yesmunt b4106b1a65 fix library page for new ClaimListDiscover styling 2020-09-29 17:12:32 -04:00
Sean Yesmunt 19fb7d7f06 new layout 🕺 2020-09-29 17:12:32 -04:00
jessop 9127266956 get sync password out of signing flow 2020-09-21 14:11:25 -04:00
jessop 3b23f09bed fix sync clean wallet bug
remove previous changes,keep syncpref in wallet, change anon wallet pref key to local

sync choices wip

dont relocate syncenable setting

bump

no prefs on web unauth

bugfix redux bump

pull after sync change

bump
2020-09-21 14:11:25 -04:00
infiinte-persistence 631b069f9a Missing translation in the Discover page. 2020-09-21 11:57:16 -04:00
Sean Yesmunt ccd1cabe04 add option for light background on embeds 2020-09-21 11:38:56 -04:00
jessop 6c4842a111 sync changes 2020-09-10 14:20:02 -04:00
ioancole 055a476d2f Hide search page URI header for invalid channel/stream name 2020-09-10 13:36:33 -04:00
Sean Yesmunt c80b28ade9 Revert "Hiding URIs header for invalid URIs"
This reverts commit 8f407a36d4.
2020-09-10 11:30:55 -04:00
ioancole 8f407a36d4 Hiding URIs header for invalid URIs 2020-09-10 11:08:22 -04:00
Sean Yesmunt 4035c18f8e Publishes => Uploads 2020-08-25 12:25:25 -04:00
Sean Yesmunt 22586c802c revert redirect after signin until we can signin users from verfication token 2020-08-25 12:25:25 -04:00
Sean Yesmunt 9ee4b256fb add mark as seen to notifications 2020-08-21 16:04:27 -04:00
sanabhass 2ae3484363 Support for auto-detection of direction for component with varying content 2020-08-21 11:50:40 -04:00
Sean Yesmunt cf98e65a3f redirect to homepage after signing in 2020-08-21 11:47:41 -04:00
Sean Yesmunt e0e33eb148 additional copy changes 2020-08-21 11:47:41 -04:00
Franco Montenegro cbfed97853 Add app closing behavior setting 2020-08-20 01:16:11 -04:00
Sean Yesmunt 005cf1d52b fix url creation typo 2020-08-19 17:40:12 -04:00
Sean Yesmunt 6ca0796c8a handle google webcache urls 2020-08-19 17:28:08 -04:00
Sean Yesmunt 3b4ac976b6 Revert "full width homepage"
This reverts commit 0018fdaebc.
2020-08-18 12:53:07 -04:00
infiinte-persistence f3362c4e59 Publish: Make 'Channel' setting persistent.
## Issue
Users are annoyed with the constant reset of the 'channel' setting in the Publish page.

## Changes
1. Revert the previous attempt in ff7b4092. The `usePersistedState` method is bad, as it will clash with the Redux value.
2. Implemented the persistence in Redux -- requires "https://github.com/lbryio/lbry-redux/pull/347".
2020-08-18 09:25:57 -04:00
Sean Yesmunt 0018fdaebc full width homepage 2020-08-18 09:25:36 -04:00
Sean Yesmunt 0ec569f020 only redirect on show page if in lbry.tv land
Fixes crash when app is served from webcache.googleusercontent.com
2020-08-17 23:42:16 -04:00
Sean Yesmunt a31f14b016 cleanup 2020-08-11 17:04:14 -04:00
Sean Yesmunt 692862c769 collapsable sidebar initial commit 2020-08-11 17:04:14 -04:00
Sean Yesmunt 80d8eeb4cf move ads in ClaimList behind SHOW_ADS config 2020-08-03 16:16:04 -04:00
Sean Yesmunt e9b7d40456 redirect to claim if entering a valid claim_id in the search bar 2020-08-03 13:58:53 -04:00
jessop c33ce28805 sync settings generally based on navigation and settings paths 2020-07-30 17:05:30 -04:00
Sean Yesmunt 9acbdf9825 group comment notifications and clean up notification style 2020-07-30 16:15:02 -04:00
infiinte-persistence 93d26a0ebb Fix 'Comments' being loaded on Autoplay despite not visible. 2020-07-29 17:56:38 -04:00
infiinte-persistence c1dbb752d8 RecommendedContent: Move WaitUntilOnPage to within the component instead.
This allows `RecommendedContent` to render the Card but with an empty list, so that the area isn't totally blank while waiting for `WaitUntilOnPage` to debounce.
2020-07-29 17:56:38 -04:00
Sean Yesmunt ca89dab45f move claim uri under file/channel details 2020-07-29 13:04:58 -04:00
Sean Yesmunt c9723082fe hide data network settings on web 2020-07-29 00:16:49 -04:00
Sean Yesmunt 0df388280e add search code from lbry-redux 2020-07-27 16:37:36 -04:00
Sean Yesmunt d76ece04bc group similar settings in preparation of tabular settings page 2020-07-27 14:19:18 -04:00
jessop d9bf72a351 all settings constants come from redux
sync settings

backout nav cases and anon preference key

more robust backout header

put notificationSettings under backout bar

review changes
2020-07-27 11:53:14 -04:00
Sean Yesmunt e001906443 hide exact search result for SIMPLE_SITE 2020-07-27 10:48:05 -04:00
Sean Yesmunt 4b6c772adc copy changes 2020-07-27 10:48:05 -04:00
Sean Yesmunt 201417efcf Publish => Upload 2020-07-27 10:48:05 -04:00
infiinte-persistence 4c57cdd99f Block mature content when accessed directly from URL
## Issue:
Fixes 4549 `Mature content + navigating to URLs directly`
_If a user navigates to mature content directly, we currently show the page even if mature content setting is not enabled. With our recent mature content verification setting, we should hide the page until the user turns it on - we can prompt directly on the file page._

## Changes:
1. Show basic info of the claim like URL and Title, so that user knows which page is being blocked.
2. Initially, I had 2 "boxes" -- one for the title and another for the message. It felt a bit messy, so `FileTitle` was augmented to house everything in one box.
2020-07-24 16:59:02 -04:00
infiinte-persistence 2f5beb84fa Fix sluggish Back button when navigation back to channels with lots of comments
## Issue
When navigating back and forth between a File and Channel page, the back-action will be laggy (no response) if the channel contains a lot of comments and is in the midst of resolving them.

## Changes
The "full" fix would be to batch-load comments, as this would improve the performance of fetching both Channel and File comments. For now, this commit focuses on the Back action problem only.

Skip fetching comments by not mounting 'ChannelDiscussion' until the tab is selected. I couldn't find anything in the Reach UI documentation on how to not render inactive `TabPanel`s, so I used the straight-forward state method.
2020-07-24 09:22:35 -04:00
Sean Yesmunt aa092baec4 move claim-grid link to bottom right 2020-07-23 11:16:32 -04:00
Sean Yesmunt 90327a72ed add comments behind a flag 2020-07-23 11:03:00 -04:00
infiinte-persistence 99c1401164 Restore and fix "comment out youtube badge on file page to fix mobile style"
(1) This reverts commit 8641a3ee1c.

(2) Fix floating-player misalignment due to YT badge in mobile by hiding the badge.

At first, the suggestion to truncate the left URI to keep the entire thing single-lined was implemented, but during testing, I realized that the YT badge will take up the entire width anyway (especially on other languages). The URI is more important than the badge, and truncating both of them would be ugly.

Given the preference to not have 2 lines for this, we'll just hide the badge for the mobile case.

For the Channel Page case, let's make it single-line through "4454: URL / top claims overlap" instead. We'll keep this commit/PR limited to fixing the YT badge.
2020-07-20 10:48:32 -04:00
infiinte-persistence 60af367b18 Fix channel file-search not available in mobile
## Issue
Fixes 4524 `[mobile] in channel search not available`

## Changes
There are currently 3 wunderbars: (1) header (2) channel list (3) downloaded list.

The additional `wrapperStyle` in the header made it hard to find a solution that works for all 3, so I split 2 and 3 into `wunderbar__input--inline`.
2020-07-20 10:37:10 -04:00
Sean Yesmunt 8641a3ee1c comment out youtube badge on file page to fix mobile style 2020-07-15 20:00:18 -04:00
infiinte-persistence cba2ccf1cb Show "YT Creator" label in File Page as well.
## Issue
Closes 3964 `Add Youtuber info to file page`

## Changes
(1) Refactor the YT-info query into `YoutubeBadge` component.
(2) For the File Page case, don't show "- last sync <date>" since the date has nothing to do with the file.

## Test
[x] YT Channel page
[x] YT Channel's claim page
[x] Non YT Channel page
[x] Non YT Channel's claim page
[x] No channel (anonymous) claim page
[x] Various RENDER_MODES
2020-07-15 15:27:03 -04:00
Sean Yesmunt 69cfcd81e9 bring in 'blocked' code from lbry-redux take 2 2020-07-15 09:52:08 -04:00
Sean Yesmunt 9c9530c6f3 Revert "bring in comments/blocked code from 'lbry-redux'"
This reverts commit fa7f74f979.
2020-07-14 19:23:25 -04:00
eatdostacos 5869734a15 Remove extra button 2020-07-14 15:58:02 -04:00
eatdostacos b3606d15f7 Small typo correction 2020-07-14 15:58:02 -04:00
eatdostacos 9b10b775cd Add a LBRY status card to help page with links to new FAQ page and status page 2020-07-14 15:58:02 -04:00
Sean Yesmunt fa7f74f979 bring in comments/blocked code from 'lbry-redux' 2020-07-14 15:57:19 -04:00
infiinte-persistence fdcfd3b6fc Add: PasswordResetPage (the real one) 2020-07-08 14:36:04 -04:00
infiinte-persistence 47f600e797 Rename: PasswordResetPage --> PasswordSetPage
There will be an actual "Reset" page coming up next.
2020-07-08 14:36:04 -04:00
infiinte-persistence 1a3669ca76 Patch for "7839bbf2: Fix language-change not applied to all components immediately"
- Missed the "Account Password" card that is used for authenticated case.
- For cards that are only used in Settings, listen to the language change in "select" instead of passing in as a prop. I think this is cleaner.
2020-07-06 09:52:16 -04:00
Sean Yesmunt cfd5d46802 rewards redirect fix for manually approved users 2020-07-03 13:18:28 -04:00
jessopb 64d67026cc
Merge branch 'master' into feat-newChannelCreate 2020-07-03 10:53:16 -04:00
jessop 2315727385 tweaks 2020-07-03 10:32:48 -04:00
jessop 1f32d454db error handling, ux tweaks, apiLogPublish 2020-07-02 18:27:49 -04:00
jessop d8098d8eb1 fix resolve loop 2020-07-02 12:47:36 -04:00
jessop ffa248a353 limit tags, new channel link 2020-07-02 12:18:59 -04:00
infiinte-persistence d51e52444c Allow entering Blocked Page even for 0 blocked channels.
Issue 4447 (item 2)
2020-07-02 10:33:51 -04:00
Sean Yesmunt 259f51abd6 style pass for channel edit
clean up sections and improve navigation handling

cleanup + image upload modal styling
2020-07-01 22:04:23 -04:00
jessop 36f93343f6 new channel creating and editing 2020-07-01 22:01:48 -04:00
infiinte-persistence defbdc1ca2 Fix "Notification" page button being incorrectly disabled by 0 blocked channels.
Issue 4447
2020-07-01 11:21:22 -04:00
infiinte-persistence 3288f235fb Refresh on publish page does not have loading indicator
## Fixes:
4214

## Approach:
`ClaimList` currently only shows the loading indicator if there is a header. We could make the indicator always appear at the top of the list when `loading=true`, but that would be the list jump up and down as the indicator appears/dissapears. I assume that is too distracting and is the reason why it was not made that way in the first place.

Show the indicator in place of the Refresh button while fetching instead.
2020-06-30 10:25:53 -04:00
infiinte-persistence 44ae8a64cd Blocked-Page: Set 'showUnresolvedClaims' so that 'AbandonedChannelPreview' is used instead of regular version.
Issue 3800
2020-06-29 16:05:23 -04:00
infiinte-persistence 192bf12a0e refresh youtube creator status when switching between channels
Issue 3750
2020-06-29 10:19:05 -04:00
infiinte-persistence 7839bbf2a1 Fix language-change not applied to all components immediately.
## Fixes:
3641 Language switch does not take effect right away

## Assessment:
Although `Card`s in the Settings Page are actually being re-rendered, the `actions` within them might not be getting the signal, depending on their props.

## Changes:
(1) Pass the language variable to the `actions`'s props for items that are affected.
(2) Make the Wunderbar listen to language-changes as well (the only component outside of Settings that would need an immediate update).
2020-06-29 09:48:12 -04:00
Sean Yesmunt 41abbcc861 Revert "bring in blocked redux code from lbry-redux"
This reverts commit b9f3146180.
2020-06-23 16:21:40 -04:00
Sean Yesmunt b9f3146180 bring in blocked redux code from lbry-redux 2020-06-23 16:01:20 -04:00
Sean Yesmunt 606a3002ae fix typo 2020-06-22 17:50:20 -04:00
jessop e065c81f88 support channel pending state 2020-06-22 11:27:03 -04:00
eatdostacos 684d0e302c Add three icons to help page 2020-06-22 10:49:21 -04:00
Sean Yesmunt feb7fb8e05 update link on help page 2020-06-22 09:48:35 -04:00
Sean Yesmunt a17610d365 update title when only 1 email address present 2020-06-22 09:45:49 -04:00
Sean Yesmunt b4851e6045 bring in email preferences page from lbry.com 2020-06-22 09:45:49 -04:00
jessopb dbac4aca39
Revert "improve channel update" 2020-06-19 13:10:34 -04:00
jessop 99753f7717 improve channel edit 2020-06-19 12:41:45 -04:00
Sean Yesmunt 7f6c5c544e only add gradient to bottom of channel cover 2020-06-18 12:19:21 -04:00
Sean Yesmunt fa246a7f1f move channel search into ChannelContent component 2020-06-18 12:19:21 -04:00
infiinte-persistence ff7b4092c9 Publish: Make 'Channel' setting persistent.
Per discussion with Tom.
2020-06-16 16:36:23 -04:00
Sean Yesmunt 2066205b8f add user + rewards redux code from lbryinc 2020-06-16 09:56:32 -04:00
Sean Yesmunt 7138fe54bc bring in 'notifications' state from lbry-redux 2020-06-16 09:56:32 -04:00
Sean Yesmunt ca988d38ae fix layout on '/$/report' 2020-06-15 14:11:15 -04:00
Sean Yesmunt 019d1f9176 tip/support marriage 2020-06-15 10:50:01 -04:00
Sean Yesmunt abc7b1298d allow vanity urls in embeds 2020-06-12 17:24:00 -04:00
eatdostacos 4ab751286f Spacing between info sentence and link 2020-06-11 13:04:52 -04:00
infiinte-persistence a461c97962 About: Remove leading dash for app version in Web.
This completes the change in [b12c297a] by handling the Web case.
2020-06-11 12:56:07 -04:00
infiinte-persistence fa6a432c9d Make library view mode [Downloads|Purchases] persistent.
Previously, the mode kept going back to 'Purchases' on every entry.
2020-06-10 10:06:24 -04:00
eatdostacos b12c297a65 Add dash between app version and changelog link 2020-06-08 09:43:44 -04:00
eatdostacos a434002be4 Testing Changelog Button on help page 2020-06-08 09:43:44 -04:00
jessop 91662a9d57 force https thumbs or handle img src error 2020-06-08 09:42:19 -04:00
Sean Yesmunt 2fe2b12ab6 cleanup 2020-06-03 14:16:43 -04:00
Sean Yesmunt 6ca2bfdc34 clean up strings 2020-06-03 14:16:43 -04:00
Sean Yesmunt e7cdd6c13d moonpay 2020-06-03 14:16:43 -04:00
Sean Yesmunt a0ace5ca58 add refresh icon to refresh buttons 2020-06-02 16:10:43 -04:00
Sean Yesmunt 3d352593f3 defer rendering related/comments until user scrolls down 2020-06-01 10:28:13 -04:00
Jeremy Kauffman a3d9555d38 pubish buttons get publish icons 2020-05-31 09:56:33 -04:00