Skip to content

fix: Deduplicate lite DAO cards when full DAO exists#948

Open
EightRice wants to merge 3 commits intomasterfrom
fix/dedup-lite-dao-cards
Open

fix: Deduplicate lite DAO cards when full DAO exists#948
EightRice wants to merge 3 commits intomasterfrom
fix/dedup-lite-dao-cards

Conversation

@EightRice
Copy link
Copy Markdown
Collaborator

Summary

  • Filters out lite DAO cards from the explorer list when they have a daoContract field matching a full (on-chain) DAO address
  • The full DAO page already displays off-chain polls, so showing a separate lite card is redundant and causes navigation confusion

Changes

  • src/services/services/types.ts — added daoContract?: string to DAOListItem and Community interfaces
  • src/services/services/lite/lite-services.ts — pass daoContract through in getLiteDAOs mapping
  • src/services/services/dao/hooks/useAllDAOs.ts — filter lite DAOs whose daoContract matches a full DAO address

Test plan

  • Verify on Netlify deploy preview that full DAOs still appear in the explorer
  • Verify standalone lite DAOs (no matching full DAO) still appear
  • Verify duplicate lite cards for full DAOs are no longer shown
  • Verify off-chain polls are still accessible from the full DAO page

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 29, 2026

Deploy Preview for tezos-homebase ready!

Name Link
🔨 Latest commit 58fe63a
🔍 Latest deploy log https://app.netlify.com/projects/tezos-homebase/deploys/69c9179780f14a000846c54a
😎 Deploy Preview https://deploy-preview-948--tezos-homebase.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 26 (🟢 up 1 from production)
Accessibility: 91 (no change from production)
Best Practices: 83 (no change from production)
SEO: 92 (no change from production)
PWA: 70 (no change from production)
View the detailed breakdown and full score reports

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

Filter out lite DAOs from the explorer list when they have a
daoContract field matching a full (on-chain) DAO address, since
the full DAO page already shows off-chain polls.
@EightRice EightRice force-pushed the fix/dedup-lite-dao-cards branch from 06448b3 to 2c17aea Compare March 29, 2026 11:02
When a user reaches an off-chain poll from a full DAO page, the
"back to community" button now returns to the full DAO instead
of the lite DAO community page.
The previous navigation fix didn't work because daoId was never passed
from the full DAO proposals page through ProposalsList to
ProposalTableRow, so route state.daoId was always undefined.
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.

1 participant