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

Fix missing donkeys in bridge step 2 #2598

Merged
merged 3 commits into from
Dec 26, 2024
Merged

Conversation

bob0005
Copy link
Collaborator

@bob0005 bob0005 commented Dec 26, 2024

Summary by CodeRabbit

  • New Features

    • Enhanced data fetching capabilities by implementing multiple queries for individual realm IDs.
  • Bug Fixes

    • Improved loading and error state management for donkey entities.
  • Refactor

    • Modularized the handling of donkey entities for better clarity and performance.
    • Improved performance of resource updates based on selected donkeys through memoization.
    • Updated the querying strategy for donkey entities to enhance data retrieval efficiency.

Copy link

vercel bot commented Dec 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eternum ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 0:58am
eternum-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 0:58am
eternum-landing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 26, 2024 0:58am

Copy link
Contributor

coderabbitai bot commented Dec 26, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request introduces performance optimizations in two key files: bridge-out-step-2.tsx and useDonkeyArrivals.tsx. The changes focus on implementing a memoized function for resource updates in the first file, enhancing efficiency by maintaining stable references across renders. In the second file, the data-fetching strategy is modified from a single useQuery to multiple useQueries, allowing for more precise retrieval of donkey entities based on realm IDs.

Changes

File Change Summary
landing/src/components/modules/bridge-out-step-2.tsx - Memoized updateResourcesFromSelectedDonkeys using useMemo
- Updated useEffect to include selectedDonkeys as a dependency
- Added import for useMemo
landing/src/hooks/helpers/useDonkeyArrivals.tsx - Replaced single useQuery with useQueries for multiple realm IDs
- Configured individual queries with refetchInterval and staleTime
- Encapsulated result processing in useMemo

Possibly related PRs

  • Refactor deposit resources and entity list components #2243: The changes in the DepositResources component regarding resource handling are related to the updateResourcesFromSelectedDonkeys function in the main PR, as both involve managing resources and state updates.
  • fix realms limit #2583: The modifications in bridge-out-step-2.tsx directly involve the updateResourcesFromSelectedDonkeys function, which is also present in the main PR, indicating a strong connection in terms of functionality and state management.

Suggested reviewers

  • aymericdelab

Poem

🐰 In the land where donkeys roam,
Memoized updates find their home.
Queries dance from realm to realm,
Efficiency now at the helm!
CodeRabbit hops with joy and cheer,
Optimized code, the vision is clear! 🌟


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 41249f8 and 9a79e19.

📒 Files selected for processing (1)
  • landing/src/hooks/helpers/useDonkeyArrivals.tsx (2 hunks)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

mentatbot bot commented Dec 26, 2024

You are out of MentatBot reviews. Your usage will refresh December 30 at 08:00 AM.

Copy link

Failed to generate code suggestions for PR

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
landing/src/hooks/helpers/useDonkeyArrivals.tsx (3)

23-33: Remove or justify commented-out query.

If the single-query approach is deprecated, please remove these lines to reduce clutter. Otherwise, add a comment explaining its future usage.


34-42: Monitor performance overhead for multiple queries.

Using useQueries for each realm ID is granular but could cause latency for large arrays. Consider batching or caching if performance issues arise.


85-90: Refine the query enabled condition.

enabled: !!donkeyEntityIds might evaluate true for an empty array. If you only want to query when there’s at least one ID, use enabled: donkeyEntityIds.length > 0.

landing/src/components/modules/bridge-out-step-2.tsx (1)

127-134: Verify stale closure in debounce.

updateResourcesFromSelectedDonkeys is captured at mount. If that function changes later, it might not be reflected by the debounced function unless you add it to dependencies. Evaluate whether that is a concern.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d668b3e and 6738bb4.

📒 Files selected for processing (2)
  • landing/src/components/modules/bridge-out-step-2.tsx (3 hunks)
  • landing/src/hooks/helpers/useDonkeyArrivals.tsx (2 hunks)
🔇 Additional comments (14)
landing/src/hooks/helpers/useDonkeyArrivals.tsx (10)

3-3: Confirm usage of both useQuery and useQueries.

It’s good to import both if needed, but verify we are optimizing for readability and performance.


12-13: Avoid hard-coding realm ID exclusion.

Filtering out ID 54 might be intentional, but if behavior changes or more IDs need exclusion, consider parametrizing instead of hard-coding.


44-53: Flattening edges looks correct.

The flatten operation is straightforward and likely correct for ensuring a standardized data structure. No issues found.


55-57: Concise state derivation.

Checking loading/error states individually and aggregating them is a solid approach. No improvements needed here.


58-64: Bank position memoization.

Memoizing the bank position is appropriate for performance. Looks fine.


65-79: Validate resource condition for “donkeys at bank.”

Ensuring resource?.resource_types !== "0x0" is good for filtering out empty donkey entities. Just confirm that "0x0" is indeed the correct sentinel value.


80-83: Fluid donkey ID extraction.

Mapping donkey IDs from arrived donkeys is a clean approach.


91-112: Modular donkey info retrieval.

Storing arrival timestamps and resource balances in one function is fine. If this grows more complex, consider a separate helper or sub-hook for clarity.


114-117: Memoizing donkey info.

Using useMemo for donkey info array is logical for performance reasons.


118-126: Return object is well-structured.

Exposing donkey arrivals, donkey infos, bank position, and donkey resources is intuitive and consistent.

landing/src/components/modules/bridge-out-step-2.tsx (4)

9-9: Imports for React hooks are correct.

The useState, useCallback, and useEffect imports are standard and necessary here.


19-38: Custom debounce implementation.

This is a straightforward approach to debouncing calls. The built-in cancel method for cleanup is a good defensive measure.


139-139: Checking donkey arrival time vs. unconditional add.

Logic changed to always add donkeys to newSelected. If that’s the intended behavior, confirm no side effects.


142-147: Cleanup in effect is handled well.

Calling debouncedUpdateResources.cancel() ensures no pending tasks execute on unmount or dependency changes.

Comment on lines +14 to +22
const {
data: entityPositions,
isLoading: isLoadingPositions,
error: positionsError,
} = useQuery({
queryKey: ["entityPositionBank"],
queryFn: () => execute(GET_ENTITY_DISTANCE, { entityIds: [Number(ADMIN_BANK_ENTITY_ID)] }),
});

Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Consider refetch intervals for consistency.

This query for entityPositions doesn’t specify a refetchInterval, whereas donkey queries do. If real-time updates are required, set a consistent interval value.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🔭 Outside diff range comments (1)
landing/src/components/modules/bridge-out-step-2.tsx (1)

Line range hint 110-118: Fix incomplete useEffect implementation

The effect creates a new Set but doesn't use it, and includes an unnecessary dependency.

The effect should update the selected donkeys and trigger the resource update:

 useEffect(() => {
   const newSelected = new Set<bigint>();
   
   donkeyInfos?.forEach((donkey) => {
     if (Number(donkey?.donkeyArrivalTime) * 1000 <= Date.now()) {
       newSelected.add(BigInt(donkey?.donkeyEntityId || 0));
     }
   });
+  setSelectedDonkeys(newSelected);
+  updateResourcesFromSelectedDonkeys(newSelected);
-}, [donkeyInfos, selectedDonkeys]);
+}, [donkeyInfos, updateResourcesFromSelectedDonkeys]);
🧹 Nitpick comments (1)
landing/src/components/modules/bridge-out-step-2.tsx (1)

Line range hint 52-67: Enhance error handling and user feedback

The current error handling only logs to console without providing user feedback.

Consider implementing proper error handling:

 try {
   setIsLoading(true);
   const tx = await bridgeFinishWithdrawFromRealm(donkeyResources, ADMIN_BANK_ENTITY_ID);
   if (tx) {
     setSelectedDonkeys(new Set());
     setSelectedResourceIds([]);
     setSelectedResourceAmounts({});
+    // Add success notification
+    toast.success('Resources successfully withdrawn');
   }
 } catch (e) {
-  console.log(e);
+  console.error('Bridge withdrawal failed:', e);
+  // Add error notification
+  toast.error(
+    e instanceof Error 
+      ? e.message 
+      : 'Failed to withdraw resources. Please try again.'
+  );
 } finally {
   setIsLoading(false);
 }

Don't forget to import the toast notification library of your choice.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6738bb4 and 41249f8.

📒 Files selected for processing (1)
  • landing/src/components/modules/bridge-out-step-2.tsx (3 hunks)
🧰 Additional context used
🪛 Biome (1.9.4)
landing/src/components/modules/bridge-out-step-2.tsx

[error] 100-100: Avoid the use of spread (...) syntax on accumulators.

Spread syntax should be avoided on accumulators (like those in .reduce) because it causes a time complexity of O(n^2).
Consider methods such as .splice or .push instead.

(lint/performance/noAccumulatingSpread)

🔇 Additional comments (1)
landing/src/components/modules/bridge-out-step-2.tsx (1)

9-9: LGTM: Import added for useMemo

The import statement is correctly added to support the new memoization implementation.

Comment on lines +89 to +108
const updateResourcesFromSelectedDonkeys = useMemo(
() => (selectedDonkeyIds: Set<bigint>) => {
const allResources = Array.from(selectedDonkeyIds).flatMap(
(id) =>
donkeyInfos?.find((d) => d?.donkeyEntityId && BigInt(d.donkeyEntityId) === id)?.donkeyResourceBalances || [],
);

setSelectedResourceIds(allResources.map((r) => r.resourceId as never));
setSelectedResourceAmounts(
allResources.reduce(
(acc, r) => ({
...acc,
[r.resourceId]: (acc[r.resourceId] || 0) + r.amount / RESOURCE_PRECISION,
}),
{},
),
);
},
[donkeyInfos, selectedDonkeys],
);
Copy link
Contributor

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Optimize memoization implementation

There are two issues with the current implementation:

  1. The dependency array includes selectedDonkeys but it's not used inside the memoized function.
  2. The memoization benefit is partially negated by creating new objects in every call.

Apply these optimizations:

 const updateResourcesFromSelectedDonkeys = useMemo(
   () => (selectedDonkeyIds: Set<bigint>) => {
     const allResources = Array.from(selectedDonkeyIds).flatMap(
       (id) =>
         donkeyInfos?.find((d) => d?.donkeyEntityId && BigInt(d.donkeyEntityId) === id)?.donkeyResourceBalances || [],
     );

     setSelectedResourceIds(allResources.map((r) => r.resourceId as never));
     setSelectedResourceAmounts(
       allResources.reduce(
         (acc, r) => {
-          return {
-            ...acc,
-            [r.resourceId]: (acc[r.resourceId] || 0) + r.amount / RESOURCE_PRECISION,
-          }
+          acc[r.resourceId] = (acc[r.resourceId] || 0) + r.amount / RESOURCE_PRECISION;
+          return acc;
         },
         {} as { [key: string]: number }
       ),
     );
   },
-  [donkeyInfos, selectedDonkeys],
+  [donkeyInfos],
 );
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const updateResourcesFromSelectedDonkeys = useMemo(
() => (selectedDonkeyIds: Set<bigint>) => {
const allResources = Array.from(selectedDonkeyIds).flatMap(
(id) =>
donkeyInfos?.find((d) => d?.donkeyEntityId && BigInt(d.donkeyEntityId) === id)?.donkeyResourceBalances || [],
);
setSelectedResourceIds(allResources.map((r) => r.resourceId as never));
setSelectedResourceAmounts(
allResources.reduce(
(acc, r) => ({
...acc,
[r.resourceId]: (acc[r.resourceId] || 0) + r.amount / RESOURCE_PRECISION,
}),
{},
),
);
},
[donkeyInfos, selectedDonkeys],
);
const updateResourcesFromSelectedDonkeys = useMemo(
() => (selectedDonkeyIds: Set<bigint>) => {
const allResources = Array.from(selectedDonkeyIds).flatMap(
(id) =>
donkeyInfos?.find((d) => d?.donkeyEntityId && BigInt(d.donkeyEntityId) === id)?.donkeyResourceBalances || [],
);
setSelectedResourceIds(allResources.map((r) => r.resourceId as never));
setSelectedResourceAmounts(
allResources.reduce(
(acc, r) => {
acc[r.resourceId] = (acc[r.resourceId] || 0) + r.amount / RESOURCE_PRECISION;
return acc;
},
{} as { [key: string]: number }
),
);
},
[donkeyInfos],
);
🧰 Tools
🪛 Biome (1.9.4)

[error] 100-100: Avoid the use of spread (...) syntax on accumulators.

Spread syntax should be avoided on accumulators (like those in .reduce) because it causes a time complexity of O(n^2).
Consider methods such as .splice or .push instead.

(lint/performance/noAccumulatingSpread)

@bob0005 bob0005 merged commit 571d472 into next Dec 26, 2024
6 of 12 checks passed
@bob0005 bob0005 deleted the fix/missing-bridge-donkeys branch December 26, 2024 12:55
bob0005 added a commit that referenced this pull request Dec 26, 2024
* Fix missing arrival when sending lords & donkeys (#2594)

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter
credence0x added a commit that referenced this pull request Dec 26, 2024
* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>
credence0x added a commit that referenced this pull request Dec 26, 2024
* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

* im (#2604)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>
edisontim pushed a commit that referenced this pull request Dec 27, 2024
* Merge into main (#2603)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* merge into main (#2605)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

* im (#2604)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* Fix build (#2610)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>
aymericdelab pushed a commit that referenced this pull request Dec 27, 2024
* Merge into main (#2603)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* merge into main (#2605)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

* im (#2604)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* Fix build (#2610)

* filter out donkeys w/ empty balance

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>
aymericdelab added a commit that referenced this pull request Dec 28, 2024
* Fix/donkeys empty balance (#2611)

* Merge into main (#2603)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* merge into main (#2605)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

* im (#2604)

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* Fix build (#2610)

* filter out donkeys w/ empty balance

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>

* add stats resources bridged on empire (#2618)

* add resourcers bridged

* change logo

* remove looping gql calls (#2620)

* remove looping gql calls

* batch queries

---------

Co-authored-by: Credence <[email protected]>
Co-authored-by: Loaf <[email protected]>
Co-authored-by: raschel <[email protected]>
aymericdelab added a commit that referenced this pull request Jan 6, 2025
* Fix/donkeys empty balance (#2611)

* Merge into main (#2603)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

---------




* merge into main (#2605)

* Fix missing arrival when sending lords & donkeys (#2594)

* contracts: fix share points check

* contracts: fix share points check

* Add resource filter for contributions (#2596)

* Add resource filter for contributions

* Change % for specific resource contribution

* Fix missing donkeys in bridge step 2 (#2598)

* Fix missing donkeys in bridge step 2

* fix rerenders

* Remove filter

* Fix registration delay (#2602)

* Fix registration delay

* styling

* Open popup on load

* Add burned donkeys back (#2601)

* im (#2604)

---------




* Fix build (#2610)

* filter out donkeys w/ empty balance

---------




* add stats resources bridged on empire (#2618)

* add resourcers bridged

* change logo

* remove looping gql calls (#2620)

* remove looping gql calls

* batch queries

---------

Co-authored-by: Loaf <[email protected]>
Co-authored-by: Bob <[email protected]>
Co-authored-by: Credence <[email protected]>
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