Commit 0924b962 authored by Mab's avatar Mab

feat: simplify bookbuilder

parent 096928e4
......@@ -8,28 +8,24 @@ module.exports = {
},
stages: [
{
title: 'Upload',
type: 'upload',
},
{
title: 'File Prep',
type: 'file_prep',
title: 'Initialisation',
type: 'edit',
},
{
title: 'Edit',
title: 'Premier jet',
type: 'edit',
},
{
title: 'Review',
title: 'Relecture',
type: 'review',
},
{
title: 'Clean Up',
type: 'clean_up',
title: 'Reprise',
type: 'edit',
},
{
title: 'Page Check',
type: 'page_check',
title: 'Validation',
type: 'review',
},
{
title: 'Final',
......@@ -37,24 +33,12 @@ module.exports = {
},
],
divisions: [
{
name: 'Frontmatter',
showNumberBeforeComponents: [],
allowedComponentTypes: ['component'],
defaultComponentType: 'component',
},
{
name: 'Body',
showNumberBeforeComponents: ['chapter'],
allowedComponentTypes: ['chapter', 'part', 'unnumbered'],
allowedComponentTypes: ['chapter'],
defaultComponentType: 'chapter',
},
{
name: 'Backmatter',
showNumberBeforeComponents: [],
allowedComponentTypes: ['component'],
defaultComponentType: 'component',
},
],
lockTrackChangesWhenReviewing: true,
}
......@@ -14,9 +14,7 @@ describe('BookBuilder', () => {
const productionEditorBook = books[0]
cy.visit(`/books/${productionEditorBook.id}/book-builder`)
cy.contains('FRONTMATTER')
cy.contains('BODY')
cy.contains('BACKMATTER')
})
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment