Skip to content

Feature/extend blob buy suins - #24

Merged
UyLeQuoc merged 4 commits into
mainfrom
feature/extend-blob-buy-suins
Dec 23, 2025
Merged

Feature/extend blob buy suins#24
UyLeQuoc merged 4 commits into
mainfrom
feature/extend-blob-buy-suins

Conversation

@UyLeQuoc

Copy link
Copy Markdown
Collaborator

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:

  • Added an ExtendTimeDialog component with supporting CSS for extending the storage duration of published sites. This includes dialog presentation, form handling, and loading states. [1] [2] [3]
  • Integrated the "Extend Time" option into the PublishMenu, allowing users to open the dialog from the publish dropdown. [1] [2]
  • Updated the PublishButton and useSitePublishing hook to support the new onExtendedBlobs callback and related dialog logic. [1] [2]

Publish Menu and Modal Refactoring:

  • Refactored the PublishMenu to 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]
  • Updated the PublishModal to support the new extend time logic, including new state for tracking epochs and pending extensions. [1] [2] [3] [4]

Dependency Updates:

  • Added @cetusprotocol/aggregator-sdk, bn.js, and their types to packages/site-builder-react/package.json to support new blockchain-related functionality.

Minor UI and Code Cleanups:

  • Improved formatting and clarity in PublishSection.tsx for 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.

- 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.
@UyLeQuoc
UyLeQuoc merged commit 1b396fc into main Dec 23, 2025
@UyLeQuoc
UyLeQuoc deleted the feature/extend-blob-buy-suins branch December 23, 2025 03:55
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