-
Notifications
You must be signed in to change notification settings - Fork 4
Release/v4 #315
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
base: develop
Are you sure you want to change the base?
Release/v4 #315
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR establishes v4 of the Stott.Security UI by migrating the frontend to Vite and building out modular React components for various security features.
- Added Vite configuration and updated dependencies to support a React + Vite build
- Introduced a suite of new feature modules: Tools (import/export), Response Headers, Permissions Policy, CSP management, CORS settings, and Audit History
- Implemented a central NavigationContainer to route between feature views and display toast notifications
Reviewed Changes
Copilot reviewed 58 out of 59 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Stott.Security.Ui/vite.config.js | Added Vite configuration for React project |
| src/Stott.Security.Ui/src/tools/ExportSettings.jsx | Implemented export settings download logic |
| src/Stott.Security.Ui/src/csp/CspList.jsx | Added CSP policy list view with selection buttons |
| src/Stott.Security.Ui/src/responseheaders/EditHeaderSettings.jsx | Added form for editing general security headers |
| src/Stott.Security.Ui/src/tools/ImportSettings.jsx | Implemented import settings upload and error modal |
Comments suppressed due to low confidence (2)
src/Stott.Security.Ui/src/tools/ExportSettings.jsx:25
- Rename the parameter
buttontoevent(ore) to clarify that it is an event object, and adjustbutton.preventDefault()accordingly.
const getSettings = async button => {
src/Stott.Security.Ui/src/responseheaders/EditHeaderSettings.jsx:6
- The
isXctoHeaderEnabledstate holds a string value ('None','NoSniff', etc.). Consider renaming it toxctoHeaderValueto avoid implying a boolean.
const [isXctoHeaderEnabled, setIsXctoHeaderEnabled] = useState(props.isXctoHeaderEnabled);
| downloadFile({ | ||
| data: JSON.stringify(response.data), | ||
| fileName: 'stott-security-settings.json', | ||
| fileType: 'text/json', |
Copilot
AI
Jul 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the standard MIME type application/json instead of text/json for the downloaded file.
| fileType: 'text/json', | |
| fileType: 'application/json', |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
No description provided.