Fix category chip tooltips always visible; earlier fade-out; variable name collision#102
Draft
Copilot wants to merge 25 commits into
Draft
Fix category chip tooltips always visible; earlier fade-out; variable name collision#102Copilot wants to merge 25 commits into
Copilot wants to merge 25 commits into
Conversation
Copilot
AI
changed the title
[WIP] Rewrite Bootstrap card templates for categories and items
Redesign folder/category cards and folder-mode item cards to match new ePortfolio card spec
Jun 1, 2026
…lates in view_items.php
Copilot
AI
changed the title
Redesign folder/category cards and folder-mode item cards to match new ePortfolio card spec
refactor: replace PHP string-concat card rendering with Mustache templates in view_items.php
Jun 1, 2026
Copilot
AI
changed the title
refactor: replace PHP string-concat card rendering with Mustache templates in view_items.php
Use FA6 Free-only icons; inline fixed icons in mustache templates
Jun 2, 2026
This reverts commit f31b421.
Copilot stopped work on behalf of
richardwolfmayr due to an error
June 2, 2026 10:26
Copilot
AI
changed the title
Use FA6 Free-only icons; inline fixed icons in mustache templates
Fix inconsistent card-footer height between category and item tiles
Jun 2, 2026
Copilot
AI
changed the title
Fix inconsistent card-footer height between category and item tiles
Refactor bootstrap card rendering into Moodle output classes; move utility functions to lib
Jun 2, 2026
This reverts commit ce58941.
Copilot
AI
changed the title
Unify artefact/category card design and enforce consistent tile height
Unify card design across folder/flat views with fixed height and separate text/chips zones
Jun 2, 2026
Copilot
AI
changed the title
Unify card design across folder/flat views with fixed height and separate text/chips zones
Show item categories as badges in shared_item.php detail view
Jun 2, 2026
Copilot
AI
changed the title
Show item categories as badges in shared_item.php detail view
Show categories on item detail page; trim badge labels to leaf segment
Jun 2, 2026
Copilot
AI
changed the title
Show categories on item detail page; trim badge labels to leaf segment
Category badges: show last segment only, Bootstrap tooltip on hover, fix cursor
Jun 2, 2026
Copilot
AI
changed the title
Category badges: show last segment only, Bootstrap tooltip on hover, fix cursor
Fix closure overwritten by its own return value in category badge loop
Jun 2, 2026
Copilot
AI
changed the title
Fix closure overwritten by its own return value in category badge loop
Fix category chip tooltip visibility and fade-out clipping cue
Jun 2, 2026
Copilot
AI
changed the title
Fix category chip tooltip visibility and fade-out clipping cue
Fix category chip tooltips always visible; earlier fade-out; variable name collision
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three related fixes to category badge/chip rendering in item cards.
Variable name collision (
lib/externlib.php)$fullpathwas both the closure and the loop variable — overwriting the closure on the first iteration caused a "call to undefined function" error on subsequent rows. Renamed the result to$label.Tooltips always shown (
lib/externlib.php,view_items.php)Tooltip attributes (
data-bs-toggle,data-bs-placement,data-bs-title) were only added whencount($parts) > 1, so root-level categories showed no hover info. Removed the guard — tooltips are now unconditional.Earlier fade-out (
css/eportfolio-cards.css)The right-edge fade mask started at
85%, leaving little visible signal that chips were being clipped. Moved to70%for a more prominent cue.Original prompt
Redesign: Category and item cards to match the new eportfolio card design
Overview
Rewrite the Bootstrap card templates for categories (folders) and items (artefacts) in
view_items.phpto exactly match the new card design as defined in the reference HTML and CSS files below. Also add the CSS fromeportfolio-style.cssinto the plugin's CSS and load it.Reference design files
CSS —
eportfolio-style.css(to be saved ascss/eportfolio-cards.cssin the repo)Reference HTML — folder card (
card-folder.php)