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

Change size #4957

Merged
merged 8 commits into from
Aug 22, 2024
Merged

Change size #4957

merged 8 commits into from
Aug 22, 2024

Conversation

haileyok
Copy link
Contributor

No description provided.

Copy link

render bot commented Aug 19, 2024

Copy link

github-actions bot commented Aug 19, 2024

Old size New size Diff
7.13 MB 7.13 MB 0 B (0.00%)

@haileyok haileyok force-pushed the hailey/tweak-max-size branch from 1ee8e91 to ba6b2c2 Compare August 19, 2024 18:42
@haileyok haileyok marked this pull request as ready for review August 19, 2024 18:47
@haileyok haileyok force-pushed the hailey/tweak-max-size branch from f78b71d to 62519f7 Compare August 19, 2024 18:57
const {currentAccount} = useSession()
const {data, refetch, isError} = useListMembersQuery(listUri, 50)
const {data, refetch, isError} = useAllListMembersQuery(listUri)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

not using pagination because we need to be able to reverse the entire set of profiles

} catch (e) {
setIsProcessing(false)
Toast.show(_(msg`An error occurred while trying to follow all`), 'xmark')
logger.error('Failed to get list members for starter pack', {
Copy link
Contributor

Choose a reason for hiding this comment

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

This toast seems to refer to a different error? 🤔

Copy link
Contributor Author

@haileyok haileyok Aug 20, 2024

Choose a reason for hiding this comment

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

This is all part of the same Follow all action for the user. We just want to log a different error message to Sentry. (User doesn't need to know the difference here)

Copy link
Contributor

Choose a reason for hiding this comment

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

Oops, sorry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

all good, appreciate you looking over it!! ❤️

@@ -73,7 +74,7 @@ function reducer(state: State, action: Action): State {
updatedState = {...state, description: action.description}
break
case 'AddProfile':
if (state.profiles.length >= 51) {
if (state.profiles.length > STARTER_PACK_MAX_SIZE) {
Toast.show(
msg`You may only add up to 50 profiles`.message ?? '',
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be feasible to amend this toast to refer to the STARTER_PACK_MAX_SIZE?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nice, thanks!

Comment on lines +96 to +97
if (state.feeds.length >= 3) {
Toast.show(msg`You may only add up to 3 feeds`.message ?? '', 'info')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was wrong...fixed it

@haileyok haileyok merged commit 61f0be7 into main Aug 22, 2024
6 checks passed
@haileyok haileyok deleted the hailey/tweak-max-size branch August 22, 2024 02:35
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.

3 participants