Skip to content

Placeholder pages#220

Open
chanabyte wants to merge 17 commits intomainfrom
placeholder-pages
Open

Placeholder pages#220
chanabyte wants to merge 17 commits intomainfrom
placeholder-pages

Conversation

@chanabyte
Copy link
Copy Markdown
Collaborator

No description provided.

@v-patel v-patel marked this pull request as ready for review March 26, 2026 22:23
monday.setDate(today.getDate() - dayOffset)
const mondayStr = monday.toISOString().split('T')[0]

const getCalculatedDate = (weekStartStr: string, dayName: string): string => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file still relevant? A lot of the logic here is duplicated elsewhere in the project.
Ex. getCalculatedDate is in the useAdmin composable...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chanabyte any updates for this one?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not yet.. im working on optimizing it!

Comment on lines +40 to +42
{ id: Date.now(), type: 'video', text: '', textEs: '', reference: '', referenceEs: '', url: '' },
{ id: Date.now() + 1, type: 'text', text: '', textEs: '', reference: '', referenceEs: '', url: '' },
{ id: Date.now() + 2, type: 'mcq', text: '', textEs: '', reference: '', referenceEs: '', url: '',
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Placeholder right? ids shouldn't be generated like this.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the default questions that are always going to be there when they open up the builder tab. should i use the uuid library instead to generate the ids? or should i just make an increment everytime it is called?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just use addQuestion function here instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants