Fix code quality violations and enhance ROUTE-EXISTS-01 rule

Implement JQHTML function cache ID system and fix bundle compilation
Implement underscore prefix for system tables
Fix JS syntax linter to support decorators and grant exception to Task system
SPA: Update planning docs and wishlists with remaining features
SPA: Document Navigation API abandonment and future enhancements
Implement SPA browser integration with History API (Phase 1)
Convert contacts view page to SPA action
Convert clients pages to SPA actions and document conversion procedure
SPA: Merge GET parameters and update documentation
Implement SPA route URL generation in JavaScript and PHP
Implement SPA bootstrap controller architecture
Add SPA routing manual page (rsx:man spa)
Add SPA routing documentation to CLAUDE.md
Phase 4 Complete: Client-side SPA routing implementation
Update get_routes() consumers for unified route structure
Complete SPA Phase 3: PHP-side route type detection and is_spa flag
Restore unified routes structure and Manifest_Query class
Refactor route indexing and add SPA infrastructure
Phase 3 Complete: SPA route registration in manifest
Implement SPA Phase 2: Extract router code and test decorators
Rename Jqhtml_Component to Component and complete SPA foundation setup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-19 17:48:15 +00:00
parent 77b4d10af8
commit 9ebcc359ae
4360 changed files with 37751 additions and 18578 deletions

View File

@@ -369,7 +369,7 @@ function handle_definition_service($data) {
break;
case 'jqhtml_class':
// Search for JavaScript class extending Jqhtml_Component
// Search for JavaScript class extending Component
foreach ($manifest['jqhtml']['components'] ?? [] as $component) {
if ($component['name'] === $identifier && isset($component['js_file'])) {
$result = [
@@ -840,7 +840,7 @@ function try_resolve_js_class($identifier, $method_name, $files) {
if (file_exists($absolute_path)) {
$content = file_get_contents($absolute_path);
// Check for JavaScript class (not specifically Jqhtml_Component)
// Check for JavaScript class (not specifically Component)
if (preg_match('/class\s+' . preg_quote($identifier, '/') . '\s+extends\s+([A-Za-z_][A-Za-z0-9_]*)/', $content, $matches)) {
$lines = explode("\n", $content);
$line_number = 1;
@@ -872,7 +872,7 @@ function try_resolve_js_class($identifier, $method_name, $files) {
*
* Note: This resolver does NOT check inheritance chains. It's a simple file lookup.
* VS Code extension should use js_is_subclass_of() RPC to determine if a class
* is actually a Jqhtml_Component before choosing this resolver type.
* is actually a Component before choosing this resolver type.
*/
function try_resolve_jqhtml_class($identifier, $method_name, $files) {
// Load manifest to get js_classes index
@@ -1055,7 +1055,7 @@ function try_resolve_jqhtml_method($identifier, $method_name, $files) {
if (file_exists($absolute_path)) {
$content = file_get_contents($absolute_path);
if (preg_match('/class\s+' . preg_quote($identifier, '/') . '\s+extends\s+[A-Za-z_]*Jqhtml_Component/', $content)) {
if (preg_match('/class\s+' . preg_quote($identifier, '/') . '\s+extends\s+[A-Za-z_]*Component/', $content)) {
$lines = explode("\n", $content);
$line_number = 1;
$in_class = false;
@@ -1114,11 +1114,11 @@ function try_resolve_jqhtml_method($identifier, $method_name, $files) {
*
* 2. js_class - JavaScript class files (*.js, not .jqhtml)
* - Searches for JS classes with extends clause
* - Does NOT require extending Jqhtml_Component
* - Does NOT require extending Component
* - Returns: file path, line number, extends
*
* 3. jqhtml_class - jqhtml component JavaScript files (*.js)
* - Searches for classes extending Jqhtml_Component
* - Searches for classes extending Component
* - Returns: file path, line number
*
* 4. view - Blade view templates (*.blade.php)
@@ -1135,7 +1135,7 @@ function try_resolve_jqhtml_method($identifier, $method_name, $files) {
*
* 7. jqhtml_class_method - Methods in jqhtml component classes
* - Requires both identifier and method parameters
* - Searches within Jqhtml_Component subclasses
* - Searches within Component subclasses
* - Returns: file path, method line number
*
* CSV TYPE LISTS: