-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat] Home feed configuration #301
Comments
hey @melMass could you help me understand the options of the first feed we're looking to let users choose? would love to help on this improvement! |
Hey @caaatisgood thanks a lot for the proposal, that would be great. For now let's go with option 1: use the browser local storage! Here are the rough steps, don't hesitate to ask questions:
|
Hey @melMass thank you so much for the walkthrough. Very very useful! Just wanted to make sure that I understand the whole user flow and edge cases here. What we want to achieveGive users the option to choose their preferred default feed (or How we could achieveFollow 1, 2 you mentioned above. And then, this is the main part I'd like to confirm, in
If the above is the case. Then we'll also need to make sure the users are able to still navigate to
Okay if we're still on the same page til this point. I suggest that we keep a boolean state such as useEffect(() => {
// note that states are all from `Zustand`
if (hasVisitedRootPage) {
return
}
// we set `hasVisitedRootPage` to `true` here
if (!startFeed || startFeed === '/') {
return
}
navigate(startFeed)
}, [/* ... */]) This would make sure that only the first LMK if it makes sense :) |
Almost but I don't think redirection is a good idea, and it could be much simpler overall. This line here: Line 79 in e18769a
Uses the |
ah right, utilizing the |
Hey @melMass, apologies for the delay. Changes are nearly done. But I'm stuck on adding a commit with this 🔍 Finding changed files since git revision a43083cc.
/Users/xxxxx/.npm/_npx/15f9efe159c89f49/node_modules/pretty-quick/dist/isSupportedExtension.js:12
..._prettier.resolveConfig.sync(file, {
^
TypeError: _prettier.resolveConfig.sync is not a function
at /Users/xxxxx/.npm/_npx/15f9efe159c89f49/node_modules/pretty-quick/dist/isSupportedExtension.js:12:30
at Array.filter (<anonymous>)
at _default (/Users/xxxxx/.npm/_npx/15f9efe159c89f49/node_modules/pretty-quick/dist/index.js:53:157)
at Object.<anonymous> (/Users/xxxxx/.npm/_npx/15f9efe159c89f49/node_modules/pretty-quick/bin/pretty-quick.js:17:27)
at Module._compile (node:internal/modules/cjs/loader:1198:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
at Module.load (node:internal/modules/cjs/loader:1076:32)
at Function.Module._load (node:internal/modules/cjs/loader:911:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47
husky - pre-commit hook exited with code 1 (error) I've tried to install |
quick demo on what i got so far Kapture.2023-08-08.at.22.26.18.mp4 |
No pressure at all, take the time you need! We will then resolve the merge from you PR easily, but it should let you commit and format the code properly |
Make home feed customizable via configs teia-community#301
And merged! Thanks again @caaatisgood |
Describe the problem
I want to choose the first feed I'm welcomed with on teia.art
Describe the solution you'd like
Probably just added there as a local setting for now:
https://teia.art/settings
Alternatives considered
Whatever we might choose for a better option (IPNS was mentioned, "hijacking" the subjkt json etc...)
Additional context
🫶
The text was updated successfully, but these errors were encountered: