ampp
ampp4mo ago

Change on functions page

new dashboard bug? If i click functions, every file is expanded-defaulting to open and not remembering a closed state. at nearly 400 functions its a long list..
11 Replies
ari
ari4mo ago
Heya, we did change the behavior on the functions page to have the first level of folders unfolded by default. I’ll take a look at making sure we don’t unfold too many folders/functions this week
ampp
amppOP4mo ago
Yeah it appears to unfold 3 layers deep for me which is my deepest items if i close everything its 27 items.. almost a full page on my dashboard monitor 😅
ari
ari4mo ago
Ah hm, it shouldn’t be unfolding all of the levels so something sounds wrong there! We’ll get it sorted. In the meantime, is the search bar at the top working for you to find your functions?
ampp
amppOP4mo ago
Yep, its all good otherwise 🙂
ari
ari4mo ago
Awesome glad you’re not blocked and thanks for reporting. We’ll update here when the improvements are released
ampp
amppOP4mo ago
On a side note would it be possible to get the source package file size visible for each project on the dashboard somewhere.
ari
ari4mo ago
That seems like a fine idea - what's your use case for wanting to see that info?
ampp
amppOP4mo ago
Troubleshooting, I've been back and forth with support a lot on this project performance issue for a week. They said my source file was unusually large, and id like to keep track of it as i add or remove imports. I'm fairly sure some of the imports were still getting pulled in and it might actually help me find a bug, if i can reproduce. Waiting to hear if i reduced the bundled size.
ari
ari4mo ago
Got it thanks, I shared the idea with some folks on the team (we'd need to surface some information up to the dashboard to get this to work) Do you use VScode? I'm a fan of the "Import Cost" extension which gives you a hint about how big your node modules imports are
ampp
amppOP4mo ago
I'm not sure if Import cost is exactly useful, i'm playing around with it. I assume values don't stack per file right, so importing v from convex/values is 2.9k gzip for the whole convex folder. I get no info on stripe and clerk. Support said my file was 35mb.. nothing i can imagine gets me to that number. I had run the bundle analyzer stuff a while back and had nothing abnormal at all. So in the last week i removed openai and faker.js but left clerk/backend and stripe. However openai didnt improve bundling speed but removing faker.js did, i recall open ai taking a few seconds before. It wasn't until we moved the convex folder out to the mono-repo on a whim did my bundle speed drop in half I'm waiting to get the new source package size info on your side, but it appears moving the folder is better then a reinstall for clearing out some phantom import data or something my convex folder is 1.2mb uncompressed text so now on its only this { "@clerk/backend": "^1.13.9", "@twillo component": "^0.1.2", // not imported "@workflow component": "^0.1.2", // not imported "convex": "^1.16.4", "convex-ents": "^0.11.0", "convex-helpers": "^0.1.59", "convex-test": "^0.0.24", "cron-parser": "^4.9.0", "stripe": "^15.12.0", "svix": "^1.37.0" } and the folder move that resulted in bundling speed going from 13s to 7s got rid of 250-350ms on query speed for mysteriously malperforming simple one row request queries.
ari
ari3mo ago
Ah got it, i don't know enough about how we bundle at the moment to comment on where import cost would help. I'd lean on the support thread to continue getting help The UI change is shipped - only the first level of files should be expanded by default now. I know that this can still make the list overflow if you have a lot of folders, so we'll look into making it more convenient in the future

Did you find this page helpful?