Feature/extend blob buy suins - #24
Merged
Merged
Conversation
- Removed the truncateUrl function and replaced it with direct usage of the first associated domain URL. - Updated the display logic for the live site link to handle cases with and without associated domains. - Cleaned up the PublishModal warning message for clarity.
- Replaced Button components with DropdownMenu.Item for site actions. - Improved handling of domain links and publish actions within the dropdown menu. - Ensured consistent styling using the button utility from Button.css.
… extension - Added functionality to register SuiNS domains and extend blob storage duration. - Introduced new components for domain registration and time extension dialogs. - Updated PublishMenu to include options for extending time and managing domains. - Enhanced site metadata handling to support SuiNS URLs and epochs. - Improved user experience with loading states and error handling during transactions.
…/extend-blob-buy-suins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "Extend Time" feature to the site publishing workflow, allowing users to extend the storage duration of their published sites. It also refactors the publish menu and related UI for improved clarity and maintainability, and adds dependencies to support new functionality.
Extend Time Feature and UI Enhancements:
ExtendTimeDialogcomponent with supporting CSS for extending the storage duration of published sites. This includes dialog presentation, form handling, and loading states. [1] [2] [3]PublishMenu, allowing users to open the dialog from the publish dropdown. [1] [2]PublishButtonanduseSitePublishinghook to support the newonExtendedBlobscallback and related dialog logic. [1] [2]Publish Menu and Modal Refactoring:
PublishMenuto use store-driven state for SuiNS URLs, improved handling of associated domains, and streamlined the UI for visiting sites and linking SuiNS. [1] [2] [3] [4] [5]PublishModalto support the new extend time logic, including new state for tracking epochs and pending extensions. [1] [2] [3] [4]Dependency Updates:
@cetusprotocol/aggregator-sdk,bn.js, and their types topackages/site-builder-react/package.jsonto support new blockchain-related functionality.Minor UI and Code Cleanups:
PublishSection.tsxfor sponsor configuration fields.These changes collectively enhance the publishing experience, provide users with more control over their site's storage duration, and improve code maintainability.