mirror of
https://github.com/johndoe6345789/postgres.git
synced 2026-04-24 13:55:00 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user