Skip to content

Commit

Permalink
Add clarification to differentiate between the blog URL and the RSS(f…
Browse files Browse the repository at this point in the history
…eed URL) during sign-up
  • Loading branch information
cychu42 committed Nov 17, 2022
1 parent 3073184 commit 8ce3663
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/web/app/src/components/SignUp/Forms/BlogFeeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ const BlogFeeds = () => {
return (
<RSSFeeds
title="Blog and RSS"
prompt="Enter your blog URL and select the RSS you want to use in Telescope"
prompt="Enter your blog URL and select the RSS you want to use in Telescope.
A blog URL (HTML) should be the root of your blog itself, and Telescope will find the link(s) of blog feed URL (XML) for you to select, such as:"
promptExample1="Blog URL: https://dev.to/user"
promptExample2="Blog feed URL: https://dev.to/feed/user"
buttonText="validate blog"
helperText="Validate your Blog URL"
noFeedsSelected="Please validate your blog URL"
Expand Down
2 changes: 2 additions & 0 deletions src/web/app/src/components/SignUp/Forms/ChannelFeeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ const ChannelFeeds = () => {
<RSSFeeds
title="YouTube and Twitch"
prompt="OPTIONAL: Enter your YouTube and/or Twitch channel"
promptExample1=""
promptExample2=""
buttonText="validate blog"
helperText="Validate your Blog URL"
feeds={{
Expand Down
12 changes: 11 additions & 1 deletion src/web/app/src/components/SignUp/Forms/RSSFeeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ type RSSFeedsFormProps = {
discovered: 'allBlogs' | 'allChannels';
};
prompt: string;
promptExample1: string;
promptExample2: string;
title: string;
buttonText: string;
helperText: string;
Expand All @@ -161,6 +163,8 @@ const RSSFeeds = connect<RSSFeedsFormProps, SignUpForm>(
({
feeds: { selected, discovered },
prompt,
promptExample1,
promptExample2,
title,
buttonText,
helperText,
Expand Down Expand Up @@ -245,7 +249,13 @@ const RSSFeeds = connect<RSSFeedsFormProps, SignUpForm>(
<div className={classes.root}>
<div className={classes.container}>
<h1 className={classes.blogPageTitle}>{title}</h1>
<h2 className={classes.helpText}>{prompt}</h2>
<h2 className={classes.helpText}>
{prompt}
<br />
{promptExample1}
<br />
{promptExample2}
</h2>
<div className={classes.infoContainer}>
<div className={classes.inputsContainer}>
<TextInput
Expand Down

0 comments on commit 8ce3663

Please sign in to comment.