Skip to content

perf(governance): fix #236 proposal list layout shift and #239 lucide tree shaking#259

Open
Dopezapha wants to merge 1 commit into
StellarFlow-Network:mainfrom
Dopezapha:perf/fix-236-239-governance-lucide
Open

perf(governance): fix #236 proposal list layout shift and #239 lucide tree shaking#259
Dopezapha wants to merge 1 commit into
StellarFlow-Network:mainfrom
Dopezapha:perf/fix-236-239-governance-lucide

Conversation

@Dopezapha
Copy link
Copy Markdown
Contributor

Closes #236
Closes #239

PR Description

This PR closes frontend performance work for #236 and #239 on the four admin feature pages (governance, contracts, staking, consumers).

#236 — Eliminating layout shift on active proposal lists
Governance proposal cards previously risked cumulative layout shift when addresses were shortened during render, when active ballots showed a ledger countdown row that archived ballots did not, and when tab filters changed visible items without a reserved list surface. The list now pre-allocates vertical space for the full proposal stack, uses fixed card heights with overflow clipping, pre-computes shortened proposer addresses at module load, reserves a ledger countdown slot on every card (hidden when not active), and filters proposals by tab via useMemo while keeping the outer list container height stable.

#239 — Streamlining Lucide icon imports via tree shaking
The four pages no longer import from the lucide-react barrel. Each icon is pulled from lucide-react/dist/esm/icons/<name>, and unused icons were removed from governance and contracts so production bundles do not retain dead icon modules.

Why it matters: Reviewers and users on the governance flow see stable card geometry during hydration and live ledger ticks, and production builds avoid pulling the full Lucide namespace on these high-traffic admin routes.

Scope: Frontend-only. No backend, contract, or env changes.

Changed

…ow-Network#239 lucide direct imports

Co-authored-by: Cursor <cursoragent@cursor.com>
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@Dopezapha Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

📂 Perf | Streamlining Lucide Icon Imports via Tree Shaking 🛡️ Perf | Eliminating Layout Shift on Active Proposal Lists

1 participant