Skip to content

Conversation

@Pierre-Auguste-UL
Copy link
Contributor

Problem

A user wants to be able to modify their list of sources by adding a new one or removing an existing one.

Solution

A user should be able to reply to one of the curator's emails with simple instructions like “remove XXX” or “add YYY” to delete or add a source to their personalized list.

The service should recognize when the user refers only to the domain name of a source (e.g., “remove Hacker News” should remove https://news.ycombinator.com/).

For additions, if the user does not provide an RSS feed link, the service should search a database of sources for the associated RSS feed. If it cannot find one, it should respond by asking the user to provide an explicit RSS link.

For any new RSS feed, the service should determine a label that will help future users discover it (e.g., https://news.ycombinator.com/ → "Hacker News").

Finally, the service should confirm the success of the operation by sending an email to the user with their updated preferences.

How To Test

See how to test it.

Comment on lines 14 to 17
const [subscriptionMessage, setSubscriptionMessage] = useState('');
const [subscriptionError, setSubscriptionError] = useState(false);
const [emailMessage, setEmailMessage] = useState('');
const [emailError, setEmailError] = useState(false);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit-pick: Can you merge this into a single state ?

You should probably use a form library for this BTW, e.g.: https://tanstack.com/form/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants