Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added ownership registration #513

Merged
merged 31 commits into from
Jan 30, 2025
Merged

feat: added ownership registration #513

merged 31 commits into from
Jan 30, 2025

Conversation

Jadapema
Copy link
Member

This PR introduces various improvements and new features, mainly focusing on ownership registration, asset management, and video enhancements. Key updates include:

Temporary "Register Ownership" Section: A temporary section for ownership registration has been added for Mihail.
Ownership Registration features:

Validates whether an asset is already registered.
Registers the asset and uploads it to Lens.
Supports adding multiple assets, separated by commas.
Video Subtitles Handling: Added support for subtitle management in videos.
Asset Ownership ABI: Included the ABI for asset ownership operations.

cswni and others added 30 commits January 8, 2025 14:16
- Updated `subscribe-to-unlock-card.tsx` to include a free trial button.
- Integrated neon effect using `RainbowEffect` and `NeonPaper` for styling.
- Added `handleTrial` function to manage button's loading state with a 2-second timeout.
- Refactored UI structure with additional styling adjustments for layout consistency.
- Updated "subscribe-to-unlock-card.tsx" to replace the MUI LoadingButton with a custom StyledBoxGradient component for enhanced styling.
- Introduced a new StyledBoxGradient component with a gradient animation and clean design to improve UI interactivity and consistency.
- Removed redundant styles from LoadingButton and applied them to StyledBoxGradient for better reusability.
- **src/sections/studio/index.tsx**: Created the main Studio section containing layout and structure.
- **src/pages/dashboard/studio.tsx**: Added Studio feature with access control and replaced the "Coming Soon" placeholder for authorized users.
- **src/sections/components/studio-process.tsx**: Developed new StudioProcess component to manage content publishing flow and UI.
- **src/sections/components/studio-process-modal.tsx**: Added modal to handle content submission.
- **src/assets/illustrations/process.svg**: Added a new illustration for the Studio process.
- **src/components/subscribe-to-unlock-card.tsx**: Adjusted gradient styling for consistency.
- Introduced `MarketingView` component in `src/sections/marketing/index.tsx`, incorporating grid and stack layouts.
- Created reusable `MarketingProcessModal` in `src/sections/marketing/components/marketing-process-modal.tsx` for handling marketing dialogs.
- Added `marketing.svg` illustration to `src/assets/illustrations` for visual enhancements.
# Conflicts:
#	src/config/abi/LedgerVault.json
#	src/hooks/use-authorize-policy.ts
#	src/hooks/use-get-active-licenses.ts
#	src/hooks/use-metamask.ts
#	src/hooks/use-subscribe.ts
#	src/pages/dashboard/marketing.tsx
#	src/pages/dashboard/studio.tsx
#	src/sections/finance/components/finance-deposit-from-metamask.tsx
#	src/sections/finance/components/finance-deposit.tsx
#	src/sections/finance/components/finance-quick-transfer.tsx
#	src/sections/finance/components/finance-withdraw-from-metamask.tsx
- Added `src/assets/illustrations/ownership.svg` file.
  This SVG includes various gradients, styles, and graphical
  elements intended for UI/UX or branding purposes.
- Updated `StudioPublishModalProps` to `ModalProps` in `src/components/modal.tsx`.
- Updated corresponding type reference in the Modal component to improve readability and maintain concise naming conventions.
- Introduced `MarketingProcessContentModal` in `marketing-process-content-modal.tsx` for handling campaign forms with Formik.
- Simplified `MarketingProcess` in `marketing-process.tsx` by utilizing `MarketingProcessContentModal` and restructured the UI with `ProcessSectionCard`.
- Improved modularity and readability by separating UI concerns and form handling logic into distinct components.
- Replaced custom layout and style logic with `ProcessSectionCard` for the main interface in `ownership-process.tsx`.
- Streamlined modal implementation by switching to `OwnershipProcessModal`.
- Cleaned up unused imports and redundant styles, improving maintainability.
- Simplified JSX structure and removed verbose comments while preserving functionality.
- Introduced a new `ProcessIllustrationCard` functional component in `src/components/process-illustration-card.tsx`.
- Utilized `Stack` from MUI for responsive layout and styling.
- Integrated custom `Image` component to display illustrations with props for `src` and `alt`.
- Introduced `ProcessSectionCard` in `src/components/process-section-card.tsx`.
- The component provides a versatile section card with a title, description, button, and illustration.
- Utilizes Material-UI components, custom hooks, and gradient styles for a responsive, visually appealing layout.
- Replaced verbose JSX structure in `studio-process.tsx` with the streamlined `ProcessSectionCard` component for better reusability and readability.
- Removed unnecessary imports such as `useResponsive` and `useTheme` to clean up the code.
- Simplified modal integration and updated descriptive text for more concise display logic.
@Jadapema Jadapema requested a review from geolffreym January 30, 2025 22:03
@Jadapema Jadapema self-assigned this Jan 30, 2025
@@ -81,7 +88,7 @@ export const VideoPlayer: FC<VideoPlayerProps> = ({ src, titleMovie, onBack, sho
enableDateRangeMetadataCues: false,
enableMetadataCues: false,
enableID3MetadataCues: false,
enableWebVTT: false, // TODO change when subtitles needed
enableWebVTT: true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happen of the movie has not subs?

@geolffreym geolffreym merged commit 2a52a1d into next Jan 30, 2025
2 of 6 checks passed
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.

3 participants