Skip to content

feat: add customizable to more blocks#8664

Open
edmonday wants to merge 3 commits intomainfrom
edmondshen/tm2-2-backend
Open

feat: add customizable to more blocks#8664
edmonday wants to merge 3 commits intomainfrom
edmondshen/tm2-2-backend

Conversation

@edmonday
Copy link
Contributor

@edmonday edmonday commented Jan 30, 2026

Summary by CodeRabbit

  • New Features
    • Image and video blocks now support a customizable flag
    • Chat, link, email, and phone actions now support a customizable flag
    • Customizable flags can be set when creating or updating blocks and actions

✏️ Tip: You can customize this high-level summary in your review settings.

@edmonday edmonday requested a review from jaco-brink January 30, 2026 03:45
@edmonday edmonday self-assigned this Jan 30, 2026
@linear
Copy link

linear bot commented Jan 30, 2026

TM2-2 Backend

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 30, 2026

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • apis/api-journeys/src/__generated__/graphql.ts is excluded by !**/__generated__/**
  • libs/shared/gql/src/__generated__/graphql-env.d.ts is excluded by !**/__generated__/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Walkthrough

Adds a new customizable Boolean field to multiple block and action types across GraphQL schemas, TypeScript implementations, and the database layer. The field extends ImageBlock, VideoBlock, ChatAction, LinkAction, EmailAction, and PhoneAction types, along with their corresponding input variants and underlying database model.

Changes

Cohort / File(s) Summary
API Gateway Schema
apis/api-gateway/schema.graphql
Added customizable: Boolean field to ImageBlock and VideoBlock types and their create/update input variants.
API Journeys Modern Schema
apis/api-journeys-modern/schema.graphql
Added customizable: Boolean field to ImageBlock, VideoBlock, ChatAction, LinkAction, EmailAction, and PhoneAction types and their corresponding input types.
API Journeys Modern TypeScript Block Implementations
apis/api-journeys-modern/src/schema/block/image/image.ts, apis/api-journeys-modern/src/schema/block/image/inputs/imageBlockCreateInput.ts, apis/api-journeys-modern/src/schema/block/image/inputs/imageBlockUpdateInput.ts, apis/api-journeys-modern/src/schema/block/video/video.ts, apis/api-journeys-modern/src/schema/block/video/inputs/videoBlockCreateInput.ts, apis/api-journeys-modern/src/schema/block/video/inputs/videoBlockUpdateInput.ts
Implemented customizable field as optional boolean in ImageBlock and VideoBlock GraphQL object definitions and their input types.
API Journeys Schema
apis/api-journeys/schema.graphql
Added customizable: Boolean @shareable`` field to ImageBlock and VideoBlock types and their create/update input variants.
API Journeys GraphQL Modules
apis/api-journeys/src/app/modules/block/image/image.graphql, apis/api-journeys/src/app/modules/block/video/video.graphql
Added customizable: Boolean @shareable`` field to ImageBlock and VideoBlock types and their input variants.
Database Layer
libs/prisma/journeys/db/migrations/20260130020659_20260130020657/migration.sql, libs/prisma/journeys/db/schema.prisma
Added new optional customizable: Boolean? column to the Block table via migration and updated Prisma schema model.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Suggested reviewers

  • mikeallisonJS
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: adding a customizable field to multiple block types (ImageBlock, VideoBlock) and action types across the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch edmondshen/tm2-2-backend

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@nx-cloud
Copy link

nx-cloud bot commented Jan 30, 2026

View your CI Pipeline Execution ↗ for commit f6169ae

Command Status Duration Result
nx run journeys-admin-e2e:e2e ✅ Succeeded 32s View ↗
nx run watch-e2e:e2e ✅ Succeeded 28s View ↗
nx run resources-e2e:e2e ✅ Succeeded 26s View ↗
nx run journeys-e2e:e2e ✅ Succeeded 25s View ↗
nx run short-links-e2e:e2e ✅ Succeeded 6s View ↗
nx run videos-admin-e2e:e2e ✅ Succeeded 4s View ↗
nx run player-e2e:e2e ✅ Succeeded 3s View ↗
nx run-many --target=vercel-alias --projects=jo... ✅ Succeeded 2s View ↗
Additional runs (20) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-02-02 03:06:54 UTC

@nx-cloud
Copy link

nx-cloud bot commented Jan 30, 2026

View your CI Pipeline Execution ↗ for commit d391ddd

Command Status Duration Result
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 5s View ↗
nx run-many --target=deploy --projects=short-links ✅ Succeeded 54s View ↗
nx run-many --target=deploy --projects=player ✅ Succeeded 54s View ↗
nx run-many --target=vercel-alias --projects=jo... ✅ Succeeded 2s View ↗
nx run-many --target=upload-sourcemaps --projec... ✅ Succeeded 7s View ↗
nx run-many --target=deploy --projects=journeys ✅ Succeeded 44s View ↗

☁️ Nx Cloud last updated this comment at 2026-01-30 03:50:42 UTC

@github-actions github-actions bot temporarily deployed to Preview - short-links January 30, 2026 03:48 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin January 30, 2026 03:48 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys January 30, 2026 03:48 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources January 30, 2026 03:48 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin January 30, 2026 03:48 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready journeys preview Mon Feb 2 16:02:01 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
player ✅ Ready player preview Mon Feb 2 16:02:13 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
short-links ✅ Ready short-links preview Mon Feb 2 16:02:44 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
videos-admin ✅ Ready videos-admin preview Mon Feb 2 16:02:54 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready watch preview Mon Feb 2 16:03:20 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
resources ✅ Ready resources preview Mon Feb 2 16:03:13 NZDT 2026

@github-actions
Copy link
Contributor

github-actions bot commented Jan 30, 2026

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready journeys-admin preview Mon Feb 2 16:03:51 NZDT 2026

@stage-branch-merger
Copy link

I see you added the "on stage" label, I'll get this merged to the stage branch!

@edmonday edmonday changed the title feat: add customizable to image and video feat: add customizable to more blocks Feb 2, 2026
@github-actions github-actions bot requested a deployment to Preview - journeys-admin February 2, 2026 02:56 Pending
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 2, 2026 02:56 Inactive
@github-actions github-actions bot requested a deployment to Preview - resources February 2, 2026 02:56 Pending
@github-actions github-actions bot temporarily deployed to Preview - short-links February 2, 2026 02:56 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 2, 2026 02:56 Inactive
@github-actions github-actions bot temporarily deployed to Preview - short-links February 2, 2026 03:00 Inactive
@github-actions github-actions bot temporarily deployed to Preview - resources February 2, 2026 03:00 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys February 2, 2026 03:00 Inactive
@github-actions github-actions bot temporarily deployed to Preview - journeys-admin February 2, 2026 03:00 Inactive
@github-actions github-actions bot temporarily deployed to Preview - videos-admin February 2, 2026 03:00 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant