Skip to content
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: Remember the open state of the category, Ensure that each View'… #709

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

Przeblysk
Copy link
Contributor

@Przeblysk Przeblysk commented Sep 29, 2024

feat: Remember the open state of the category, Ensure that each View's category is independent
close #602 #668

Copy link

vercel bot commented Sep 29, 2024

@Przeblysk is attempting to deploy a commit to the RSS3 Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

sentry-io bot commented Sep 29, 2024

🔍 Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

📄 File: apps/renderer/src/store/subscription/store.ts

Function Unhandled Issue
morphResponseData TypeError: data is not iterable /Applications/Fol...
Event Count: 5 Affected Users: 10

Did you find this useful? React with a 👍 or 👎

@hyoban
Copy link
Member

hyoban commented Sep 29, 2024

I can no longer see uncategorized feeds

@Przeblysk
Copy link
Contributor Author

I can no longer see uncategorized feeds

😯 I hadn't thought of that I'll revise it.

@Przeblysk
Copy link
Contributor Author

I can no longer see uncategorized feeds

I modified the display judgment, default display when feed is not grouped

https://github.com/RSSNext/Follow/pull/709/files#diff-59cf3a300e3e9c3e38aec7c41c219cfe98504302e861856f9799b1fd8c11b5d8R49

@hyoban
Copy link
Member

hyoban commented Sep 29, 2024

ScreenShot.2024-09-29.14.51.08.mp4

I can't toggle the expanded state of automatic grouping by feed URL.

@Przeblysk
Copy link
Contributor Author

ScreenShot.2024-09-29.14.51.08.mp4
I can't toggle the expanded state of automatic grouping by feed URL.

Okay, I'll fix it.

@Przeblysk
Copy link
Contributor Author

ScreenShot.2024-09-29.14.51.08.mp4
I can't toggle the expanded state of automatic grouping by feed URL.

CleanShot2024-09-29at15.26.27.mp4

I briefly tested it and it seems to be displaying fine

Copy link

vercel bot commented Sep 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
follow ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 29, 2024 9:03am

@hyoban
Copy link
Member

hyoban commented Sep 29, 2024

Should we save the open state to storage?

@Przeblysk
Copy link
Contributor Author

Should we save the open state to storage?

If we want to store in localStorage, do we only read Storage to initialize the Store when the application is ready, and then only update Storage before the application exits?

@hyoban
Copy link
Member

hyoban commented Sep 30, 2024

LGTM. Let's merge it, we may not need to persist the state to storage.

Thanks for your contribution.

@hyoban hyoban merged commit cb2078d into RSSNext:dev Sep 30, 2024
4 of 5 checks passed
@hyoban
Copy link
Member

hyoban commented Sep 30, 2024

After adding a subscription, it does not appear in the list immediately and needs to be refreshed before it can be displayed. Can you help take a look? @Przeblysk

@Przeblysk
Copy link
Contributor Author

After adding a subscription, it does not appear in the list immediately and needs to be refreshed before it can be displayed. Can you help take a look? @Przeblysk

Okay, I'll see what the problem is.

@hyoban
Copy link
Member

hyoban commented Sep 30, 2024

It should be OK after b0a8831. Can you help verify it?

No

@Przeblysk
Copy link
Contributor Author

Przeblysk commented Sep 30, 2024

After adding a subscription, it does not appear in the list immediately and needs to be refreshed before it can be displayed. Can you help take a look? @Przeblysk

https://github.com/Przeblysk/Follow/blob/dev/apps/renderer/src/modules/feed-column/category.tsx#L49

The state of categoryOpenStateData is lagging, causing the Effect of shouldOpen to be executed 2 times. It should probably be explicitly set to the open state instead of using toggle. i'll look into why the value of categoryOpenStateData is old @hyoban

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.

记住 category 的打开和收起状态
2 participants