appwrite / console

The Console that makes Appwrite tick from the browser 🖥
https://appwrite.io
BSD 3-Clause "New" or "Revised" License
325 stars 138 forks source link

🐛 Bug Report: Collections sub-navigation only shows 25 #1359

Open Ricolo53 opened 1 week ago

Ricolo53 commented 1 week ago

👟 Reproduction steps

By default, 25 documents are returned, which is fine, but the panel on the left only displays 25 collections, so you have to go back to the listing page, search for the collection you want to go to, and click on it. Or have a pagnination in this panel?

This code call this function without limit queries

👍 Expected behavior

Since the left-hand panel is sorted alphabetically, I think it would be interesting to have all the collections here.

👎 Actual Behavior

Only 25, sorted in descending order of creation

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

🏢 Have you read the Code of Conduct?

stnguyen90 commented 6 days ago

@Ricolo53 thanks for creating this issue! 🙏🏼

You're definitely on the right track. The sub navigation only returns 25 because that's the default limit. The related code that fetches the collections for the sub-navigation, however, is here:

https://github.com/appwrite/console/blob/ffb9e2d36c9e960b21597a052688c658093bf8e1/src/routes/(console)/project-%5Bproject%5D/databases/database-%5Bdatabase%5D/collection-%5Bcollection%5D/%2Blayout.ts#L15

I'll make sure the team knows about this.