Skip to content

feature: beanstalk shipments#413

Open
feyyazcigim wants to merge 25 commits intodevelopmentfrom
feature/beanstalk-shipments
Open

feature: beanstalk shipments#413
feyyazcigim wants to merge 25 commits intodevelopmentfrom
feature/beanstalk-shipments

Conversation

@feyyazcigim
Copy link
Contributor

@feyyazcigim feyyazcigim commented Feb 13, 2026

This pull request introduces a new "Beanstalk" page and related UI components, along with several improvements and bug fixes to existing components. The most significant changes are the addition of reusable stat and fertilizer card components, enhancements to the PodLineGraph for better visualization, and improvements to input handling and navigation. These updates improve the modularity, usability, and flexibility of the UI.

New Beanstalk Page and Components:

  • Added a new route /beanstalk with corresponding navigation links in both desktop and mobile navbars, and imported the new Beanstalk page component into the protected layout. [1] [2] [3] [4] [5]
  • Introduced BeanstalkStatField, a reusable stat field component for displaying titles, values, and optional action buttons, to be used in Beanstalk-related stats cards.
  • Added FertilizerCard component for displaying fertilizer items with selection and input controls.

PodLineGraph Visualization Improvements:

  • Enhanced PodLineGraph to allow custom harvestableIndex and podIndex props, and improved plot grouping and axis label intervals to scale dynamically with large pod lines for better visualization. [1] [2] [3] [4] [5]

Input and UI Enhancements:

  • Improved ComboInputField to support hiding the USD value, better handle custom max amounts when base balance is zero, and show custom max amounts in the balance display if applicable. [1] [2] [3] [4] [5]
  • Updated the Button component's hoverTextPrimary style to ensure correct disabled state appearance.
  • Enhanced PintoAssetTransferNotice with a checkbox for recipient address acknowledgment, improving user safety.

Other Changes:

  • Adjusted the BONUS_MULTIPLIER constant in SowOrderV0Fields from 0.1 to 0.05.

github-actions bot and others added 13 commits January 22, 2026 19:29
Fixes #404

Co-authored-by: fr1jo <fr1jo@users.noreply.github.com>
Extract hardcoded field ID value (1n) to BEANSTALK_REPAYMENT_FIELD_ID constant
for better code maintainability and readability.

Co-authored-by: frijo <fr1jo@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-authored-by: frijo <fr1jo@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Add URBDV and SPROUTS token definitions to internalTokens.ts
- Remove hardcoded URBDV_DECIMALS and SPROUTS_DECIMALS constants
- Update useBeanstalkGlobalStats to use token instances for decimals

Co-authored-by: frijo <fr1jo@users.noreply.github.com>
@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for pintomoney ready!

Name Link
🔨 Latest commit 1a36053
🔍 Latest deploy log https://app.netlify.com/projects/pintomoney/deploys/6995473a1dd5a60008b29ef1
😎 Deploy Preview https://deploy-preview-413.preview.pinto.money
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Refactor repayment logic to use event scanning for fertilizer IDs and
direct contract interactions for urBDV and bsFERT transfers. This update
also improves the UI with dynamic pod line grouping, detailed earned
balance displays, and comprehensive batch transfer support.
@feyyazcigim feyyazcigim changed the base branch from main to development February 13, 2026 18:53
Comment on lines 43 to 77
async function fetchFertilizerIds(publicClient: PublicClient): Promise<bigint[]> {
const uniqueIds = new Set<bigint>();

// Scan TransferSingle events
const singleLogs = await publicClient.getLogs({
address: BARN_PAYBACK,
event: transferSingleEvent,
fromBlock: "earliest",
toBlock: "latest",
});

for (const log of singleLogs) {
if (log.args.id !== undefined) {
uniqueIds.add(log.args.id);
}
}

// Scan TransferBatch events
const batchLogs = await publicClient.getLogs({
address: BARN_PAYBACK,
event: transferBatchEvent,
fromBlock: "earliest",
toBlock: "latest",
});

for (const log of batchLogs) {
if (log.args.ids) {
for (const id of log.args.ids) {
uniqueIds.add(id);
}
}
}

return Array.from(uniqueIds).sort((a, b) => (a < b ? -1 : a > b ? 1 : 0));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

is there no way to use the sg for this? fetching this many logs seems inefficient.

Also, can you explain what is going on in this sorting? hard to know at first glance

Copy link
Contributor

Choose a reason for hiding this comment

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

or at least a deployment block, you are querying way too many blocks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It actually makes sorted bigints

@feyyazcigim feyyazcigim requested a review from burr-nim February 16, 2026 10:49
@fr1jo
Copy link
Contributor

fr1jo commented Feb 18, 2026

@claude in Send tokens, send Pods, make My Pods In Line black instead of gray

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Claude finished @fr1jo's task in 50s —— View job


Updated "My Pods In Line" text color

  • Find the "My Pods In Line" text in the codebase
  • Change color from gray to black
  • Commit and push changes

Changed Label in both pod transfer step files to use text-pinto-off-black:

  • src/pages/transfer/actions/pods/StepOne.tsx:151
  • src/pages/transfer/actions/beanstalk-pods/StepOne.tsx:141

The default Label variant uses text-pinto-gray-4; added className="text-pinto-off-black" to override it to black in both locations.
|

Co-authored-by: frijo <fr1jo@users.noreply.github.com>
@fr1jo
Copy link
Contributor

fr1jo commented Feb 18, 2026

@claude Update the text color hierarchy across the dashboard:

Primary values (token amounts, balances): keep #111827 (near-black), semibold
Section headers ("My Beanstalk Silo/Pods/Fertilizer"): #6B7280
Secondary text (percentages, "Earned", "Fertilized" labels): #9CA3AF
Axis labels (pod line numbers): #D1D5DB
Active/clickable actions: keep green
Disabled/unavailable actions (e.g. Claim, Harvest when nothing to claim): gray #9CA3AF

@github-actions
Copy link
Contributor

github-actions bot commented Feb 18, 2026

Claude finished @fr1jo's task in 2m 17s —— View job


Updated text color hierarchy in Beanstalk dashboard

  • Analyze the request
  • Read relevant files to understand current color usage
  • Check Tailwind config for color mappings
  • Update Section headers to #6B7280 (→ text-pinto-gray-6)
  • Update Axis labels to #D1D5DB (→ text-pinto-gray-2)
  • Verify disabled/unavailable actions already use correct gray
  • Commit and push changes

Changes made:

Element Before After Color
Section headers ("My Beanstalk Silo/Pods/Fertilizer") text-pinto-light (#9C9C9C) text-pinto-gray-6 (#6E6E6E) #6B7280
Axis labels (pod line numbers) text-pinto-gray-4 (#9C9C9C) text-pinto-gray-2 (#D9D9D9) #D1D5DB

Already correct (no changes needed):

  • Primary values: use default (near-black) ✓
  • Secondary text ("Earned", "Fertilized", percentages): text-pinto-light (#9C9C9C ≈ #9CA3AF) ✓
  • Active/clickable actions: text-pinto-green-4 (green) ✓
  • Disabled actions: disabled:text-pinto-gray-4 (#9C9C9C ≈ #9CA3AF) ✓

Files changed:

  • src/components/BeanstalkStatField.tsx — section header title color
  • src/components/PodLineGraph.tsx — both harvested and podline axis label colors
    | Branch

- Section headers (My Beanstalk Silo/Pods/Fertilizer): text-pinto-light -> text-pinto-gray-6 (#6E6E6E, approx #6B7280)
- Axis labels (pod line numbers): text-pinto-gray-4 -> text-pinto-gray-2 (#D9D9D9, approx #D1D5DB)
- Disabled/unavailable actions already use disabled:text-pinto-gray-4 (#9C9C9C)
- Secondary text (Earned, Fertilized labels) already use text-pinto-light (#9C9C9C)

Co-authored-by: frijo <fr1jo@users.noreply.github.com>
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.

3 participants