Skip to content

Commit

Permalink
Set fetchCollectionMembers limit (#555)
Browse files Browse the repository at this point in the history
* Set fetchCollectionMembers limit

* larger height

* max-h?

* feat: [SC-26100] ♻️ Remove automatic seed generation from NameGraph SDK

* fix: 🐛 Update Ui rendering in Collection Details page for collection names box size

* Add changeset

---------

Co-authored-by: FrancoAguzzi <[email protected]>
Co-authored-by: lightwalker.eth <[email protected]>
  • Loading branch information
3 people authored Jan 20, 2025
1 parent 03e3f0a commit 23ce8d7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-ties-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@namehash/namegraph-sdk": patch
---

default seed for scrambleCollectionTokens
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ export const ExploreCollectionPage = ({ id }: { id: string }) => {
setLoadingCollectionMembers(true);
fetchCollectionMembers(id, {
offset: (params.page - 1) * navigationConfig.itemsPerPage,
limit: navigationConfig.itemsPerPage,
})
.then((res) => {
if (res) {
Expand Down Expand Up @@ -313,7 +314,7 @@ export const ExploreCollectionPage = ({ id }: { id: string }) => {
<div className="w-full">
<div className="w-full mb-8">
<div className="w-full flex flex-col space-y-4 p-3 rounded-xl border border-gray-200">
<div className="w-full h-[517px] flex flex-col justify-start">
<div className="w-full h-[877px] flex flex-col justify-start">
<div className="h-full">
{/* Collection Count and Sort */}
<div className="max-w-[756px] w-full flex flex-col md:flex-row md:items-center md:justify-between space-y-4 md:space-y-0 mb-5">
Expand Down
6 changes: 2 additions & 4 deletions packages/namegraph-sdk/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,7 @@ export class NameGraph {
},
): Promise<NameGraphSuggestion[]> {
const max_sample_size = 5;
const random_seed = Number(Number(Math.random() * 10).toFixed(0));
const seed = options?.seed || random_seed;
const seed = options?.seed;

const payload = {
collection_id,
Expand Down Expand Up @@ -158,8 +157,7 @@ export class NameGraph {
const method = options?.method || default_method;
const n_top_members = 25;
const max_suggestions = 10;
const random_seed = Number(Number(Math.random() * 10).toFixed(0));
const seed = options?.seed || random_seed;
const seed = options?.seed;

const payload = {
collection_id,
Expand Down

0 comments on commit 23ce8d7

Please sign in to comment.