Skip to content

feat: implement property virtual tours (#334)#526

Merged
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
Richardkingz2019:feature/virtual-tours-334
May 28, 2026
Merged

feat: implement property virtual tours (#334)#526
nanaf6203-bit merged 2 commits into
MettaChain:mainfrom
Richardkingz2019:feature/virtual-tours-334

Conversation

@Richardkingz2019
Copy link
Copy Markdown
Contributor

Summary

Implements property virtual tours as requested in issue #334.

Changes

  • Prisma schema: Added virtualTourUrl and videoUrl as optional String? fields to the Property model with snake_case column mapping
  • Migration: prisma/migrations/20260527000000_add_virtual_tour_fields/migration.sql — adds virtual_tour_url and video_url columns to the properties table
  • DTOs: Added virtualTourUrl and videoUrl to both CreatePropertyDto and UpdatePropertyDto with @IsOptional() and @IsUrl() validation
  • GraphQL model: Added nullable virtualTourUrl and videoUrl fields to the Property ObjectType

Acceptance Criteria

  • ✅ Tour URL field with URL validation
  • ✅ Video URL field with URL validation
  • ✅ Both fields optional (nullable)
  • ✅ Displayed in property details (via findOne which returns all fields)

Closes #334

- Add virtualTourUrl and videoUrl optional fields to Property model
- Add migration to add virtual_tour_url and video_url columns
- Update CreatePropertyDto and UpdatePropertyDto with @isurl() validation
- Update Property GraphQL ObjectType with new nullable fields
@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 27, 2026

@Richardkingz2019 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@nanaf6203-bit
Copy link
Copy Markdown
Contributor

@Richardkingz2019 Thanks for contributing, you did well, and you followed the description.
Thats good.

@nanaf6203-bit
Copy link
Copy Markdown
Contributor

@Richardkingz2019 please resolve conflicts

@nanaf6203-bit nanaf6203-bit merged commit 992759d into MettaChain:main May 28, 2026
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.

Implement Property Virtual Tours

2 participants