Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • rbi-whitelabel-cms

    • Task 1—Create Feature Account Updated Agreements page

      • path: rbi-whitelabel-cms/schemas/features/documents/

        Code Block
        languagetypescript
        export default {
          title: 'Feature Account Updated Agreements',
          name: 'featureAccountUpdatedAgreements',
          type: 'document',
        
          /**
           * Prevent creation or deletion of featureAccountUpdatedAgreements documents.
           * See deskStructure.js to find singleton instance.
           * https://www.sanity.io/docs/structure-builder-typical-use-cases#singletons-and-one-of-documents-c22ce054acba
           */
          __experimental_actions: ['update', 'publish', 'create'],
          __experimental_search: [],
          fields: [
            {
              title: 'Update Agreement Text',
              name: 'updateAgreementText',
              type: 'localeBlockContent',
              validation: (Rule: any) => Rule.required(),
            },
            {
              title: 'Marketing Communication Text',
              name: 'marketingCommunicationText',
              type: 'localeStringlocaleBlockContent',
              validation: (Rule: any) => Rule.required(),
            },
          ],
          preview: {
            prepare: () => ({ title: 'Feature Account Updated Agreements' }),
          },
        };
      • On file: rbi-whitelabel-cms/desk-structure/marketing-content.ts, we will add the page created previously:

        Code Block
        languagetypescript
        S.listItem()
        .title('Feature Account Updated Agreements')
        .child(
          S.document()
            .schemaType('featureAccountUpdatedAgreements')
            .documentId('feature-account-updated-agreements'),
        ),
  • intl-whitelabel-cms

    • Task 2—Duplicate all changes on rbi-whitelabel-cms repository

  • intl-whitelabel-app

    • Task 3—Create a feature flag

      Code Block
      enable-acceptance-agreements-description-from-sanity
    • Task 4—

...