Framework updates
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -111,6 +111,73 @@ class Constants
|
||||
'DATETIME' => 'M j, Y g:i A'
|
||||
];
|
||||
|
||||
/**
|
||||
* Generic operation/action verbs used in CRUD patterns
|
||||
*
|
||||
* These are common verbs developers use for actions performed ON modules/features.
|
||||
* Used by code quality rules to detect when renaming files would create
|
||||
* proliferation of identical generic filenames (e.g., many "edit_action.js" files).
|
||||
*/
|
||||
public const GENERIC_OPERATIONS = [
|
||||
// Core CRUD
|
||||
'create', 'read', 'update', 'delete',
|
||||
'add', 'view', 'edit', 'remove',
|
||||
'new', 'show', 'modify', 'destroy',
|
||||
|
||||
// List/Browse
|
||||
'list', 'index', 'browse', 'search', 'find', 'filter', 'query',
|
||||
|
||||
// Data retrieval
|
||||
'get', 'fetch', 'load', 'retrieve', 'pull', 'lookup',
|
||||
|
||||
// Data persistence
|
||||
'save', 'store', 'persist', 'write', 'put', 'insert',
|
||||
'post', 'submit', 'send', 'push',
|
||||
|
||||
// File operations
|
||||
'upload', 'download', 'import', 'export', 'attach',
|
||||
|
||||
// Sync/Refresh
|
||||
'sync', 'refresh', 'reload', 'reset',
|
||||
|
||||
// Detail views
|
||||
'details', 'detail', 'info', 'summary', 'overview', 'single', 'item',
|
||||
|
||||
// Form operations
|
||||
'form', 'input', 'enter', 'wizard', 'step',
|
||||
|
||||
// Batch operations
|
||||
'bulk', 'batch', 'mass', 'multi', 'all',
|
||||
|
||||
// State changes
|
||||
'archive', 'restore', 'recover', 'trash',
|
||||
'activate', 'deactivate', 'enable', 'disable',
|
||||
'publish', 'unpublish', 'draft',
|
||||
'approve', 'reject', 'review', 'pending',
|
||||
'lock', 'unlock', 'freeze',
|
||||
'open', 'close', 'complete', 'finish',
|
||||
'start', 'stop', 'pause', 'resume', 'cancel',
|
||||
|
||||
// Auth actions
|
||||
'login', 'logout', 'signin', 'signout', 'auth',
|
||||
'register', 'signup', 'join',
|
||||
'invite', 'accept', 'confirm', 'verify',
|
||||
|
||||
// Processing
|
||||
'process', 'handle', 'execute', 'run',
|
||||
'convert', 'transform', 'parse', 'generate',
|
||||
'check', 'test', 'validate',
|
||||
|
||||
// Communication actions
|
||||
'notify', 'alert', 'email', 'message',
|
||||
|
||||
// Selection/Movement
|
||||
'select', 'pick', 'choose', 'assign', 'move', 'copy', 'clone',
|
||||
|
||||
// Output
|
||||
'preview', 'print', 'report',
|
||||
];
|
||||
|
||||
// Additional constants can be added here as needed:
|
||||
// const MIME_TYPES = [...];
|
||||
// const COUNTRY_CODES = [...];
|
||||
|
||||
Reference in New Issue
Block a user