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

Fix tagline issue #1209

Merged
merged 1 commit into from
Mar 15, 2024
Merged

Conversation

micahmo
Copy link
Member

@micahmo micahmo commented Mar 15, 2024

Pull Request Description

This PR fixes the first issue mentioned in #961 by extracting the tagline selection logic out of the TagLine widget so that a new one is not chosen every time the widget builds. The cache has also been removed, so that a tagline is only chosen once initially, and then again when a refresh occurs.

Issue Being Fixed

Issue Number: #961

Screenshots / Recordings

See #961 for the before video.

qemu-system-x86_64_9BQMBnCJhI.mp4

Checklist

  • Did you update CHANGELOG.md?
  • Did you use localized strings where applicable?
  • Did you add semanticLabels where applicable for accessibility?

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

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

LGTM! I believe there was another issue where non-logged in accounts were not able to see Taglines? I think that is a different issue than this but wanted to bring it back up.

I think it's a result of us using context.read<AuthBloc>().state.getSiteResponse which is only filled in when logged in, but I could be wrong about that.

@hjiangsu hjiangsu merged commit 81800b0 into thunder-app:develop Mar 15, 2024
1 check passed
@micahmo
Copy link
Member Author

micahmo commented Mar 15, 2024

I believe there was another issue where non-logged in accounts were not able to see Taglines? I think that is a different issue than this but wanted to bring it back up.

I think it's a result of us using context.read<AuthBloc>().state.getSiteResponse which is only filled in when logged in, but I could be wrong about that.

That would make sense! It would explain why they keep working when switching to an anonymous instance (because getSiteResponse might not get cleared out), but they stop working when you restart.

I can try to look at that when I get a chance.

@micahmo micahmo deleted the feature/fix-taglines branch March 15, 2024 18:08
@micahmo micahmo mentioned this pull request Mar 20, 2024
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