Issue-178 Add draft mode for IDE
resolves #178 Initially the UI forced users to create a "part" before they got access to the ide, now we're letting users go straight to hacking in the ide and saving can come later. Better at getting users to the code earlier
This commit is contained in:
18
web/src/pages/DraftPartPage/DraftPartPage.js
Normal file
18
web/src/pages/DraftPartPage/DraftPartPage.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import MainLayout from 'src/layouts/MainLayout'
|
||||
import IdeCascadeStudio from 'src/components/IdeCascadeStudio'
|
||||
import Seo from 'src/components/Seo/Seo'
|
||||
|
||||
const DraftPartPage = () => {
|
||||
return (
|
||||
<MainLayout shouldRemoveFooterInIde>
|
||||
<Seo
|
||||
title="draft part"
|
||||
description="black slate to hack on a new part"
|
||||
lang="en-US"
|
||||
/>
|
||||
<IdeCascadeStudio />
|
||||
</MainLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default DraftPartPage
|
||||
7
web/src/pages/DraftPartPage/DraftPartPage.stories.js
Normal file
7
web/src/pages/DraftPartPage/DraftPartPage.stories.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import DraftPartPage from './DraftPartPage'
|
||||
|
||||
export const generated = () => {
|
||||
return <DraftPartPage />
|
||||
}
|
||||
|
||||
export default { title: 'Pages/DraftPartPage' }
|
||||
11
web/src/pages/DraftPartPage/DraftPartPage.test.js
Normal file
11
web/src/pages/DraftPartPage/DraftPartPage.test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { render } from '@redwoodjs/testing'
|
||||
|
||||
import DraftPartPage from './DraftPartPage'
|
||||
|
||||
describe('DraftPartPage', () => {
|
||||
it('renders successfully', () => {
|
||||
expect(() => {
|
||||
render(<DraftPartPage />)
|
||||
}).not.toThrow()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user