Skip to content

Bounties merge#86

Open
Felipe-Tabares wants to merge 4 commits intomainfrom
bounties-merge
Open

Bounties merge#86
Felipe-Tabares wants to merge 4 commits intomainfrom
bounties-merge

Conversation

@Felipe-Tabares
Copy link
Collaborator

@Felipe-Tabares Felipe-Tabares commented Jan 14, 2026

Resumen de cambios

Sistema de Super Admin:

  • Nuevo modal para gestionar wallets admin (agregar/eliminar)
  • Autenticación JWT con firma de wallet (EIP-191)
  • Roles diferenciados: Admin y Super Admin
  • Hook useAdmin para manejo de sesiones

Mejoras UX en edición de bounties:

  • Selector de tokens en modal de edición (USDC, UVD, AVAX, POL, SOL, ETH, Custom)
  • Modal de confirmación personalizado para eliminar bounties (reemplaza window.confirm)
  • URLs clickeables en descripciones y submissions con protección XSS

Traducciones i18n:

  • Claves de admin completas en 4 idiomas (en/es/fr/pt)
  • Agregadas: common.save, common.confirm, confirm_delete_title, custom_token_label

Archivos nuevos:

  • src/components/AdminWalletsModal.js
  • src/hooks/useAdmin.js
  • src/utils/linkify.js

Archivos modificados:

  • src/pages/Bounties.js - Lógica de admin y modales mejorados
  • src/components/BountyForm.js - Selector de tokens
  • src/services/api.js - Endpoints de admin
  • src/i18n/*.json - Traducciones

- Add wallet section keys (voting_panel, connect_wallet, select_provider,
  supported_wallets, connecting, network, etc.) to en.json and es.json
- Add complete voting section to en.json and es.json
- Add bountyCreation.wrong_network_title and wrong_network_message
- Add bountyDetails.error_duplicate_submission

These keys were present in pt.json and fr.json but missing in en.json
and es.json, causing raw key names to display in the UI.
- Add AdminWalletsModal for managing admin wallets
- Add useAdmin hook for admin authentication with JWT
- Add linkify utility for clickable URLs with XSS protection
- Add token selector dropdown in BountyForm (USDC, UVD, AVAX, etc.)
- Add complete i18n translations for admin section (en/es/pt/fr)
- Fix ESLint warnings in SubmissionList and AdminWalletsModal
- Improve WalletConnect with EIP-6963 provider detection
- Add token selector dropdown to edit bounty modal (same as create form)
- Replace window.confirm with custom styled confirmation modal
- Add common.save and confirm_delete_title i18n keys (en/es/fr/pt)
- Parse existing reward to pre-select correct token when editing
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

Comments