docs: Update documentation for constraint management feature

- Update ROADMAP.md with constraint management progress
- Update README.md with constraint manager feature
- Update TESTING.md with constraint test coverage (93 total tests)
- Fix linting issues in constraints API and featureConfig
- All 40 unit tests passing

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-08 03:44:45 +00:00
parent 5fb035e29c
commit 42f58b94d7
5 changed files with 67 additions and 9 deletions

View File

@@ -5,7 +5,7 @@ import { getSession } from '@/utils/session';
// Validate identifier format (prevent SQL injection)
function isValidIdentifier(name: string): boolean {
return /^[a-zA-Z_][a-zA-Z0-9_]*$/.test(name);
return /^[a-z_]\w*$/i.test(name);
}
// Validate table exists

View File

@@ -57,7 +57,7 @@ export function getConstraintTypes(): ConstraintType[] {
}
export function getNavItems(): NavItem[] {
return featuresConfig.navItems.filter(item => {
return featuresConfig.navItems.filter((item) => {
const feature = getFeatureById(item.featureId);
return feature && feature.enabled;
});