Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The first two tabs have no label and are empty #49

Open
kopitek8 opened this issue Sep 26, 2024 · 2 comments
Open

The first two tabs have no label and are empty #49

kopitek8 opened this issue Sep 26, 2024 · 2 comments

Comments

@kopitek8
Copy link
Collaborator

kopitek8 commented Sep 26, 2024

Steps to replicate

  1. Go to the projects page and select 'Test Validate with customOptions MapSwipe4Web' project
  2. Click the contribute button
  3. The first two tabs of the modal are empty

Screenshot

Image

Issue Link

https://mapswipe-web.dev.togglecorp.com/#/en/projects/-NoCd4Rq43e6-pTYL-x_

@ofr1tz
Copy link
Collaborator

ofr1tz commented Sep 26, 2024

The tab titles are based on information page titles in tutorials created with the Manager Dashboard. The screenshot shows a tutorial on the MapSwipe dev instance that apparently has information pages with empty title entries.

However, the Manager Dashboard requires a title to be defined -- thus, there should not be any information pages with empty titles on the MapSwipe production instance.

@tnagorra
Copy link

tnagorra commented Oct 7, 2024

The format of the data for this tutorial is not correct. @frozenhelium do we have any reason for this?

The schema for the information pages during tutorial creation is:

export type InformationPages = {
    pageNumber: number; // we need to re-calculate this
    title: string;
    blocks: {
        blockNumber: number;
        blockType: BlockType;
        textDescription?: string;
        imageFile?: File;
    }[];
}[];

But the informationPages field in the tutorial is the following:

  "informationPages": [
    [
      {
        "blockNumber": 1,
        "blockType": "image",
        "image": "https://firebasestorage.googleapis.com/v0/b/dev-mapswipe.appspot.com/o/tutorialImages%2F1686557907649-block-image-1-1.png?alt=media&token=6dc65488-a364-47d5-9223-f1fa7ca2cf5f"
      },
      {
        "blockNumber": 2,
        "blockType": "text",
        "textDescription": "this is 1"
      },
      {
        "blockNumber": 3,
        "blockType": "image",
        "image": "https://firebasestorage.googleapis.com/v0/b/dev-mapswipe.appspot.com/o/tutorialImages%2F1686557907649-block-image-3-2.png?alt=media&token=2210814b-9d5b-4255-81b0-3dc026432871"
      },
      {
        "blockNumber": 4,
        "blockType": "text",
        "textDescription": "this is 2"
      }
    ],
    [
      {
        "blockNumber": 1,
        "blockType": "image",
        "image": "https://firebasestorage.googleapis.com/v0/b/dev-mapswipe.appspot.com/o/tutorialImages%2F1686557907649-block-image-1-2.png?alt=media&token=c4f468bc-7f80-4481-bf33-f7f3a7341998"
      },
      {
        "blockNumber": 2,
        "blockType": "text",
        "textDescription": "2 2"
      }
    ]
  ],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

3 participants