...
Configuration of service modes (intl-whitelabel-cms)
Should create a new feature in Marketing Content / Features/ Feature QR Code Refill Drinks
Should create settings to service mode. (pick-up, diner, etc)
Should create two new field time to Bottom Sheets and Recente Order in minutes.
Should to be create a new feature in Marketing Content / Features/ Feature QR Code Refill Drinks / List of storesShould create a new field items to set restaurants.Should create settings to service mode.Should create two new field time to Bottom Sheets and Recente Order by service mode in minutes.
We can follow our solution like the feature menu:
/schemas/features/documents/menu.tsx
Create a new document in the
features/documents
for our new QR Code documentAdd the new document into the schema and in other places (like the menu one)
Create a new object to be used as a reference and render the Service Modes
Example of a document that uses an object reference: https://github.com/rbilabs/intl-sanity-shared-schemas/blob/main/src/schemas/menu/objects/add-on-section-option.ts
Example of the object for service mode: https://github.com/rbilabs/intl-sanity-shared-schemas/blob/main/src/schemas/menu/objects/add-on-section-service-modes.ts
Intl Whitelabel APP
Task 1 - Create a Feature Flag
...
Update Graphql (intl-whitelabel-graphql)
Example of graphql query:
src/queries/sanity/feature-menu.graphql
Example of a query that have the service mode structure that we’ll need:
src/queries/sanity/fragments/add-on-section.graphql
We’ll need to create a new fragment for our service modes fragment like this example:
src/queries/sanity/fragments/add-on-section-service-modes.graphql
DOD-LIKE
Codegen should not be broken and
apollo:generate
command should work without problem after add the new graphql files
...