Merge pull request #89 from Andre-Diamond:development
Development
Development
- Removed "recharts" from dependencies in package.json. - Updated various dependencies in package-lock.json to their latest versions, including @babel/runtime, @eslint/config-array, and others. - Commented out console.log in DataContext.tsx to reduce unnecessary logging.
- Added conditional checks to multiple GitHub Actions workflows to ensure they only run for the 'MeshJS/governance' repository. - Updated workflows: update-cardano-dashboard-data, update-cd-drep-data, update-cd-drep-metadata, update-committee-data, update-spo-data, and update-spo-locations.
- Added support for a new 'committee' vote type in VotingChart, allowing for committee-specific voting data representation. - Updated VotingChart to handle committee vote properties and percentages, improving data accuracy. - Refactored ConstitutionalCommittee to include loading and error states, enhancing user experience during data fetching. - Integrated CommitteeMemberVoteChart into ConstitutionalCommittee for better visualization of committee voting activity. - Introduced date-fns library for improved date handling across components.
Development
- Added support for multiple IPFS gateways to improve content availability during fetching. - Implemented a retry mechanism in the fetchWithRetry function to handle transient errors effectively. - Updated fetchCurrentEpoch and fetchMetaJson functions to utilize the new fetching logic, enhancing robustness in metadata retrieval.
Development
- Streamlined URL cleaning by removing trailing colons and slashes before fetching. - Improved error logging to display the cleaned URL, enhancing visibility into fetching issues. - Simplified the fetching process for IPFS URLs by directly using the ipfs.io gateway.
Development
- Implemented a retry mechanism in the fetchMetaJson function to handle transient errors during metadata retrieval. - Added support for multiple IPFS gateways to improve resource availability when fetching IPFS content. - Enhanced error logging for better visibility into fetching issues, including specific handling for 404 and 504 status codes.
Development
- Simplified URL processing by removing unnecessary cleaning steps, directly using the provided URL for fetching. - Updated error logging to reflect the original URL, improving clarity in error messages during metadata retrieval.
Development
- Updated the fetchMetaJson function to trim whitespace and remove trailing slashes in addition to colons, improving URL handling. - Added logging to display the cleaned URL before fetching, enhancing error visibility during metadata retrieval.
Development
- Updated the fetchMetaJson function to remove trailing colons from URLs before processing. - Enhanced error logging to reflect the cleaned URL, improving clarity in error messages during metadata fetching.
Development
- Introduced a new function to fetch the current epoch from the Koios API, enhancing the committee data update logic. - Updated the committee data processing to filter active and recently expired members based on the current epoch. - Improved logging to provide better visibility into the fetching and processing of committee information. - Flattened the enriched committee data structure before updating Supabase, ensuring accurate data representation.
- Added optional fields for committee members and votes to include metadata and committee names. - Introduced a new function to fetch metadata JSON from URLs, specifically handling IPFS links. - Updated the committee data update logic to process and include metadata for votes, improving data richness and context. - Enhanced error handling during metadata fetching to ensure robustness in data retrieval.
Development
- Introduced a tooltip reference to manage tooltip creation and cleanup more effectively. - Removed redundant tooltip creation logic, ensuring a single tooltip instance is used. - Enhanced the cleanup process to remove the tooltip from the DOM when the component unmounts, improving resource management.
- Replaced hardcoded color values in ProposalTimelineChart with dynamic theme colors for better consistency. - Introduced a new function to retrieve theme colors from CSS variables, enhancing visual coherence. - Updated SPOTable to include sorting by 'name' field, improving data organization. - Adjusted tooltip and chart styles in VotingChart for better readability and user experience. - Modified CSS styles across various components to improve layout and spacing.
Development
- Changed heading level in DRepDelegationTreemap for better semantic structure. - Enhanced opacity and background styles in NetworkTotalsChart legend items for improved visibility. - Updated CSS variables and fallback colors in ProposalTypeChart for better color management. - Removed unnecessary subtitle in DRepActivity page for cleaner layout. - Refactored button styles across various components to use new color variables for consistency. - Improved overall styling in multiple components to align with the new theme system, enhancing visual coherence.