Skip to content

feat: show file size limits where applicable#884

Open
amycatgirl wants to merge 1 commit intostoatchat:mainfrom
amycatgirl:feat/show-file-size-limits
Open

feat: show file size limits where applicable#884
amycatgirl wants to merge 1 commit intostoatchat:mainfrom
amycatgirl:feat/show-file-size-limits

Conversation

@amycatgirl
Copy link
Copy Markdown
Contributor

Should clear up some confusion about what the file size limits are across the app. Obviously, the app needs a way to get this from the backend (ideally via the root endpoint), but for now this shall suffice.

@chrishultin
Copy link
Copy Markdown
Contributor

Can we update this to pull the limits from the configuration? stoatchat/stoatchat#644 will expose that information, and stoatchat/javascript-client-sdk#127 loads the configuration.

@amycatgirl
Copy link
Copy Markdown
Contributor Author

Sure! I would be glad to do so once both PRs are merged.

@amycatgirl
Copy link
Copy Markdown
Contributor Author

Seems like both PRs were merged, so I'll work on integrating that work into my branch

hopefully i don't get caught in conflict resolution hell again

@amycatgirl amycatgirl force-pushed the feat/show-file-size-limits branch from 50b6f0f to 509391d Compare March 19, 2026 17:49
@amycatgirl amycatgirl requested a review from a team as a code owner March 19, 2026 17:49
@amycatgirl
Copy link
Copy Markdown
Contributor Author

hmm, i see that there isn't a type for the newly added limits field in the instance's configuration.

which means that the typescript linter/compiler will absolutely yell at me for trying to use it

should I make a PR to add said types?

@amycatgirl
Copy link
Copy Markdown
Contributor Author

also the ci bot ruined my branch again!!
how shameless...

@chrishultin
Copy link
Copy Markdown
Contributor

chrishultin commented Mar 19, 2026 via email

@amycatgirl
Copy link
Copy Markdown
Contributor Author

ah, it seems that the API types are autogenerated, and according to the latest commit, it does include the limits field inside of features

im not sure if i have to point the client sdk to the latest commit though

Signed-off-by: Amy <amy+git@amogus.cloud>
@amycatgirl amycatgirl force-pushed the feat/show-file-size-limits branch from 9bd5f34 to aebb390 Compare March 29, 2026 14:21
@amycatgirl amycatgirl requested a review from a team as a code owner March 29, 2026 14:21
Copy link
Copy Markdown
Contributor

@chrishultin chrishultin left a comment

Choose a reason for hiding this comment

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

This appears to still have hardcoded size limits - I thought the intent was to pull those dynamically?

@amycatgirl
Copy link
Copy Markdown
Contributor Author

yes, i was waiting on the js sdk submodule getting bumped because otherwise typescript complains about the features.limits object inside of client.configuration not existing

all i did was pull in changes from main

@amycatgirl
Copy link
Copy Markdown
Contributor Author

"js sdk submodule getting bumped"

more specifically, the stoat-api package inside of the sdk, as that contains the types generated from the OpenAPI schema

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