JesusFilm / core

JFP DS Engineering Monorepo
https://docs.core.jesusfilm.org/
19 stars 12 forks source link

feat: add segmind ai as image provider #1851

Closed tataihono closed 1 year ago

tataihono commented 1 year ago

Description

🤖 Generated by Copilot at 38e0e32

This pull request adds a new feature to the journeys admin and the API media apps that allows generating images from text prompts using Segmind models. It introduces new mutation fields and enum types to the GraphQL schemas of the API gateway and the API media, and implements the logic for resolving and querying Segmind data in the API media app. It also adds a new AI tab to the ImageBlockEditor component of the journeys admin app, which renders a text field and a button for entering a prompt and generating an image, and a gallery for displaying the generated images. It updates the TypeScript types and fields for the schemas and the mutation operations, and adds new components and modules for the UI and the Segmind integration.

How should this PR be QA Tested?

Please describe the QA tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

Walkthrough

🤖 Generated by Copilot at 38e0e32

github-actions[bot] commented 1 year ago
Warnings
:warning: :exclamation: Big PR (1049 changes)
:warning: Is this PR related to a Basecamp issue? If so link it via the PR description.

(change count - 1049): Pull Request size seems relatively large. If Pull Request contains multiple changes, split each into separate PR will helps faster, easier review.

Generated by :no_entry_sign: dangerJS against 62b9683143c33b0be53c69506963c7dc8b63c156

stage-branch-merger[bot] commented 1 year ago

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

github-actions[bot] commented 1 year ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys-admin ✅ Ready Visit Preview Wed Sep 13 02:07:57 UTC 2023
codecov[bot] commented 1 year ago

Codecov Report

Merging #1851 (62b9683) into main (cc513f3) will increase coverage by 6.83%. Report is 1 commits behind head on main. The diff coverage is 92.42%.

@@            Coverage Diff             @@
##             main    #1851      +/-   ##
==========================================
+ Coverage   78.68%   85.52%   +6.83%     
==========================================
  Files         425      504      +79     
  Lines        6020     7018     +998     
  Branches      794      917     +123     
==========================================
+ Hits         4737     6002    +1265     
+ Misses        963      696     -267     
  Partials      320      320              
Flag Coverage Δ
apps.api-media 92.30% <88.09%> (?)
apps.journeys 40.03% <ø> (?)
apps.journeys-admin 78.77% <100.00%> (+0.08%) :arrow_up:
apps.watch 76.13% <ø> (?)
libs.journeys.ui 78.50% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
.../src/app/modules/cloudflare/image/image.service.ts 75.00% <0.00%> (ø)
...urneys-admin/src/libs/apolloClient/apolloClient.ts 0.00% <ø> (ø)
apps/api-media/src/app/__generated__/graphql.ts 100.00% <100.00%> (ø)
...-media/src/app/modules/segmind/segmind.resolver.ts 100.00% <100.00%> (ø)
...i-media/src/app/modules/segmind/segmind.service.ts 100.00% <100.00%> (ø)
...ts/Editor/ImageBlockEditor/AIGallery/AIGallery.tsx 100.00% <100.00%> (ø)
...r/ImageBlockEditor/AIGallery/AIPrompt/AIPrompt.tsx 100.00% <100.00%> (ø)
...nents/Editor/ImageBlockEditor/ImageBlockEditor.tsx 60.86% <100.00%> (+1.77%) :arrow_up:

... and 111 files with indirect coverage changes

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

github-actions[bot] commented 1 year ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
journeys ✅ Ready Visit Preview Wed Sep 13 02:08:45 UTC 2023
stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

github-actions[bot] commented 1 year ago

The latest updates on your projects.

Name Status Preview Updated (UTC)
watch ✅ Ready Visit Preview Wed Sep 13 02:10:12 UTC 2023
stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

infracost[bot] commented 1 year ago

💰 Infracost estimate: monthly cost will not change

This comment will be updated when the cost estimate changes.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

stage-branch-merger[bot] commented 1 year ago

Merge conflict attempting to merge this into stage. Please fix manually.

tataihono commented 1 year ago

atlantis plan

jesus-film-bot commented 1 year ago

Ran Plan for 0 projects:

tataihono commented 1 year ago

atlantis plan

jesus-film-bot commented 1 year ago

Ran Plan for 0 projects: