Skip to content

Fix graph navigation validation, update hamburger menu, and restructure header layout - #298

Merged
makr-code merged 5 commits into
developfrom
copilot/fix-graph-navigation-loading
Jan 8, 2026
Merged

makr-code merged 5 commits into
developfrom
copilot/fix-graph-navigation-loading

Conversation

Copilot AI commented Jan 8, 2026 •

Copy link
Copy Markdown
Contributor

The WordPress Themis theme had a ReferenceError preventing graph navigation from loading due to an undefined validation function, and the hamburger menu was displaying a burger emoji instead of the standard three-line icon. Additionally, the header layout has been restructured based on feedback.

Changes

Graph Navigation

  • Added isValidWordPressData() function in graph-navigation.js to validate WordPress graph data structure before processing
  • Validates presence of nodes and links arrays with proper type checking
  • Uses != null for ID validation to handle 0 and other falsy values correctly
  • Falls back to menu-based graph when validation fails
function isValidWordPressData(data) {
    if (!data || typeof data !== 'object') return false;
    if (!data.nodes || !Array.isArray(data.nodes)) return false;
    if (!data.links || !Array.isArray(data.links)) return false;
    if (data.nodes.length === 0) return false;
    
    return data.nodes.every(node => 
        node.id != null && 
        typeof node.label === 'string' && 
        typeof node.type === 'string'
    );
}

Hamburger Menu

  • Changed icon in header.php from 🍔 to ☰ (U+2630)
  • Hidden hamburger menu - Removed from header and set display: none in CSS (now optional)

Header Layout Restructuring

  • Main Navigation: Right-aligned using justify-content: flex-end and margin-left: auto
  • Graph Navigation Button: Repositioned from top-right to top-left (left: 20px instead of right: 20px)
  • Button is now inserted at the beginning of the header instead of after the site branding

These layout changes improve the visual hierarchy and user experience by placing the graph navigation prominently on the left while keeping the main menu accessible on the right.

Original prompt

wordpress themis theme funktioniert das laden der graph navigation nicht. Und das Hamburger icon soll das 3 striche symbol sein.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 3 commits January 8, 2026 20:51
- Add missing isValidWordPressData function to validate WordPress graph data
- Change hamburger icon from burger emoji 🍔 to three-line symbol ☰
- Properly validate nodes and links arrays before processing
- Ensure each node has required properties (id, label, type)

Co-authored-by: makr-code <[email protected]>
- Check for undefined and null explicitly instead of truthy values
- Ensure label is a string type, not just truthy
- Handle cases where node ID might be 0 or empty string

Co-authored-by: makr-code <[email protected]>
- Use != null to check for both undefined and null more concisely
- Improves code readability while maintaining same functionality

Co-authored-by: makr-code <[email protected]>
Copilot AI changed the title [WIP] Fix graph navigation loading issues in Themis theme Fix missing validation function and hamburger icon in WordPress theme Jan 8, 2026
Copilot AI requested a review from makr-code January 8, 2026 20:56
@makr-code

Copy link
Copy Markdown
Owner

@copilot Das hamburger menu optional machen und ausblenden. Das Hauptmenue rechtsbündig anzeigen. Das graphmenubutton ganz links anzeigen

- Remove hamburger menu from header.php (hidden/optional)
- Set hamburger menu CSS to display: none
- Right-align main navigation with flex-end and margin-left: auto
- Move graph navigation button from right to left (top: 20px, left: 20px)
- Insert graph button at beginning of header-inner instead of after branding

Co-authored-by: makr-code <[email protected]>

Copilot AI commented Jan 8, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Das hamburger menu optional machen und ausblenden. Das Hauptmenue rechtsbündig anzeigen. Das graphmenubutton ganz links anzeigen

Erledigt in Commit 42396ed:

✅ Hamburger-Menü ausgeblendet (display: none, optional)
✅ Hauptmenü rechtsbündig (flex-end, margin-left: auto)
✅ Graph-Button ganz links positioniert (left: 20px statt right: 20px)

Das Hamburger-Menü wurde aus header.php entfernt und im CSS versteckt. Das Hauptmenü ist jetzt rechtsbündig ausgerichtet, und der Graph-Navigations-Button erscheint ganz links oben.

Copilot AI changed the title Fix missing validation function and hamburger icon in WordPress theme Fix graph navigation validation, update hamburger menu, and restructure header layout Jan 8, 2026
@makr-code
makr-code marked this pull request as ready for review January 8, 2026 21:05
@makr-code
makr-code merged commit 05415e2 into develop Jan 8, 2026
@makr-code makr-code added this to the v1.0.2 milestone Mar 11, 2026
Copilot AI added a commit that referenced this pull request May 19, 2026
…back MODIFY, HTTP/2 RAII, Voice JWT auth

Stub #302 (CRITICAL): VoiceApiHandler now accepts optional AuthMiddleware;
validateBearerToken() delegates to auth_->authorize(token,"voice:access").
Stub #280 (HIGH): RopeApiHandler::requireAccess() enforces scope-based RBAC
via AuthMiddleware::extractBearerToken + auth_->authorize, HTTP 403 on deny.
Stub #297 (MEDIUM): applyPluginValidation() signature changed to non-const ref;
MODIFY case applies modified_comment/modified_metadata before persisting.
Stub #298 (MEDIUM): Http2Session ResponseBuffer promoted to named struct in header;
response_buffers_ map with shared_ptr replaces all raw new/delete calls.
Security Hardening Epic marked COMPLETE in src/ROADMAP.md.
Tests: test_stub_remediation_297_298_280_302.cpp + CMakeLists entry.

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/9caa5bd2-9ad9-4aa7-b5e2-2aefedef1209

Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request May 20, 2026
…302, #308-311 (10 stubs)

- #290: DistributedTrainer::AllReduceCpuFn injection API; allreduce_cpu() delegates to injected fn, falls back to local-scale for world_size=1
- #291: AdaptiveShardRouter::NlpContextFn injection API; prepareQueryContext() delegates to NLP provider, falls back to keyword patterns
- #296: FeedbackStore::SpamKeywordsProviderFn (static setSpamKeywordsProvider); getSpamKeywords() uses provider when set
- #297: FeedbackStore::applyPluginValidation() (non-const FeedbackEntry&); MODIFY path applies modified_comment/modified_metadata
- #298: Http2Session RAII ResponseBuffer via shared_ptr + response_buffers_ map; no more raw new/delete; sendResponse+sendServerPush+onStreamCloseCallback updated
- #302: VoiceApiHandler::TokenValidatorFn (static setTokenValidatorFn); validateBearerToken() delegates to injected JWT validator
- #308: VoiceAssistant::deleteSession() hard-delete (throws out_of_range if not found); handleDeleteSession() returns HTTP 404 on not-found
- #309: GPUMemoryManager::NvmlTemperatureFn (static setNvmlTemperatureFn); CUDA updateGPUHealth() queries injected fn
- #310: AutoRebalancer::signOperation() all UNSIGNED fallbacks replaced with std::runtime_error (fail-closed)
- #311: PaxosStatePersistence::persistAccept() ConsensusLogEntry populated with index/term/data JSON

Agent-Logs-Url: https://github.com/makr-code/ThemisDB/sessions/138b1d85-2afa-4f88-ba0a-761fe11a5fbd

Co-authored-by: makr-code <[email protected]>
Copilot AI added a commit that referenced this pull request May 20, 2026
- Add RerouteSerializeFn tests (stub #252)
- AstVisitorFn bridge: TensorAwareQueryOptimizer (stub #275)
- ExactSimilarityFn bridge: TensorFingerprintGraph (stub #276)
- [[deprecated]] attribute: ggmlCorePtrs (stub #277)
- RpcPhase2Fn bridge: DistributedTransactionManager (stub #279)
- AuthorizeFn bridge: RopeApiHandler RBAC (stub #280)
- HttpPostFn bridge: AIPluginGenerator (stub #282)
- HTToTTFn bridge: HTTrain (stub #286)
- ModelPathProviderFn bridge: LoRATrainingService (stub #289)
- AllReduceCpuFn bridge: DistributedTrainer (stub #290)
- NlpContextFn bridge: AdaptiveShardRouter (stub #291)
- StringArrayFn bridge: PropertyGraphManager (stub #292)
- SchemaInspectorFn/SchemaValidatorFn: ImportApiHandler (stub #294)
- Lz4CompressFn/Lz4DecompressFn: SecureTransportClient (stub #295)
- SpamKeywordsProviderFn: FeedbackStore (stub #296)
- MODIFY path fix: FeedbackStore validateWithPlugin (stub #297)
- shared_ptr ResponseBuffer RAII: Http2Session (stub #298)
- ModelPathProviderFn: ThemisHelpLoRA Config (stub #299)
- IngestExternalFileFn: BackupManager (stub #300)
- StatsQueryFn: RopeApiHandler (stub #307)
- Update STUB_INVENTORY.md: 272->292 resolved, 44->24 active

Co-authored-by: Copilot <[email protected]>

Co-authored-by: makr-code <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants