1
1
import React , { useState , useCallback } from 'react' ;
2
- import { Container , Paper , Box , Typography , Link as MuiLink , Snackbar , IconButton , Accordion , AccordionSummary , AccordionDetails , Divider , Button } from '@mui/material' ;
2
+ import { Container , Paper , Box , Typography , Link as MuiLink , Snackbar , IconButton , Accordion , AccordionSummary , AccordionDetails , Button } from '@mui/material' ;
3
3
import { ThemeProvider } from '@mui/material/styles' ;
4
4
import ExpandMoreIcon from '@mui/icons-material/ExpandMore' ;
5
5
import CloseIcon from '@mui/icons-material/Close' ;
@@ -46,10 +46,15 @@ const App: React.FC = () => {
46
46
< ThemeProvider theme = { theme } >
47
47
< Container className = "container" maxWidth = "lg" >
48
48
< Paper className = "paper" elevation = { 3 } >
49
- < Box className = "header" display = "flex" justifyContent = "space-between" alignItems = "center" >
50
- < Typography className = "title" variant = "h4" component = "h1" >
51
- Codebase Context Editor
52
- </ Typography >
49
+ < Box className = "header" display = "flex" justifyContent = "space-between" alignItems = "flex-start" mb = { 4 } >
50
+ < Box >
51
+ < Typography className = "title" variant = "h4" component = "h1" gutterBottom >
52
+ Codebase Context Suite
53
+ </ Typography >
54
+ < Typography variant = "subtitle1" >
55
+ A comprehensive tool for managing codebase context, generating prompts, and enhancing development workflows.
56
+ </ Typography >
57
+ </ Box >
53
58
< Box display = "flex" alignItems = "center" >
54
59
< Button
55
60
onClick = { ( ) => setSpecModalOpen ( true ) }
@@ -65,50 +70,50 @@ const App: React.FC = () => {
65
70
</ Box >
66
71
</ Box >
67
72
68
- < Divider sx = { { my : 3 } } />
69
-
70
73
< NavTabs value = { selectedTab } onChange = { handleTabChange } />
71
74
72
- { selectedTab === 0 && (
73
- < Box >
74
- < Typography variant = "h5" sx = { { mb : 2 } } > Coding Assistant Prompts</ Typography >
75
- < Accordion defaultExpanded >
76
- < AccordionSummary expandIcon = { < ExpandMoreIcon /> } >
77
- < Typography > Claude-dev Prompt</ Typography >
78
- </ AccordionSummary >
79
- < AccordionDetails >
80
- < PromptViewer
81
- title = "CLAUDE-DEV Prompt"
82
- subtitle = "CLAUDE-DEV-PROMPT.md"
83
- explanation = { codingAssistantPrompts [ 'claude-dev' ] ?. explanation || '' }
84
- content = { codingAssistantPrompts [ 'claude-dev' ] ?. content || '' }
85
- onCopy = { ( ) => handleCopy ( codingAssistantPrompts [ 'claude-dev' ] ?. content || '' ) }
86
- />
87
- </ AccordionDetails >
88
- </ Accordion >
89
- { /* Add other coding assistant prompts here if needed */ }
90
- </ Box >
91
- ) }
75
+ < Box mt = { 2 } >
76
+ { selectedTab === 0 && (
77
+ < Box >
78
+ < Typography variant = "h5" sx = { { mb : 2 } } > Coding Assistant Prompts</ Typography >
79
+ < Accordion defaultExpanded >
80
+ < AccordionSummary expandIcon = { < ExpandMoreIcon /> } >
81
+ < Typography > Claude-dev Prompt</ Typography >
82
+ </ AccordionSummary >
83
+ < AccordionDetails >
84
+ < PromptViewer
85
+ title = "CLAUDE-DEV Prompt"
86
+ subtitle = "CLAUDE-DEV-PROMPT.md"
87
+ explanation = { codingAssistantPrompts [ 'claude-dev' ] ?. explanation || '' }
88
+ content = { codingAssistantPrompts [ 'claude-dev' ] ?. content || '' }
89
+ onCopy = { ( ) => handleCopy ( codingAssistantPrompts [ 'claude-dev' ] ?. content || '' ) }
90
+ />
91
+ </ AccordionDetails >
92
+ </ Accordion >
93
+ { /* Add other coding assistant prompts here if needed */ }
94
+ </ Box >
95
+ ) }
92
96
93
- { selectedTab === 1 && (
94
- < Box >
95
- < Typography variant = "h5" sx = { { mb : 2 } } > Generate Context Files</ Typography >
96
- < PromptViewer
97
- title = "Generate Context Prompt"
98
- subtitle = "GENERATE-CONTEXT-PROMPT.md"
99
- explanation = { generateContextPrompt . explanation }
100
- content = { generateContextPrompt . content }
101
- onCopy = { ( ) => handleCopy ( generateContextPrompt . content ) }
102
- />
103
- </ Box >
104
- ) }
97
+ { selectedTab === 1 && (
98
+ < Box >
99
+ < Typography variant = "h5" sx = { { mb : 2 } } > Generate Context Files</ Typography >
100
+ < PromptViewer
101
+ title = "Generate Context Prompt"
102
+ subtitle = "GENERATE-CONTEXT-PROMPT.md"
103
+ explanation = { generateContextPrompt . explanation }
104
+ content = { generateContextPrompt . content }
105
+ onCopy = { ( ) => handleCopy ( generateContextPrompt . content ) }
106
+ />
107
+ </ Box >
108
+ ) }
105
109
106
- { selectedTab === 2 && (
107
- < Box >
108
- < Typography variant = "h5" sx = { { mb : 2 } } > Manual Context Form</ Typography >
109
- < ContextForm onSubmit = { handleContextFormSubmit } />
110
- </ Box >
111
- ) }
110
+ { selectedTab === 2 && (
111
+ < Box >
112
+ < Typography variant = "h5" sx = { { mb : 2 } } > Manual Context Form</ Typography >
113
+ < ContextForm onSubmit = { handleContextFormSubmit } />
114
+ </ Box >
115
+ ) }
116
+ </ Box >
112
117
</ Paper >
113
118
114
119
< SpecificationModal
0 commit comments