Redesign folder-view category/item cards to eportfolio layout with dropdown actions#101
Closed
Copilot wants to merge 3 commits into
Closed
Redesign folder-view category/item cards to eportfolio layout with dropdown actions#101Copilot wants to merge 3 commits into
Copilot wants to merge 3 commits into
Conversation
Copilot
AI
changed the title
[WIP] Redesign category and item cards to match new eportfolio design
Redesign folder-view category/item cards to eportfolio layout with dropdown actions
Jun 1, 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.
This updates
view_items.phpfolder-mode card rendering to match the new eportfolio card structure, moving actions into a Bootstrap 5 3-dot menu and relocating metadata to card footers. Flat-mode rendering is explicitly preserved and routed through the existing template path to avoid behavior drift.Folder-mode rendering split (no flat-mode regression)
$foldermodetoblock_exaport_artefact_list_item()andblock_exaport_artefact_template_bootstrap_card().block_exaport_artefact_list_item(..., $layout == 'folder')now gates the redesigned markup to folder mode only.Category card redesign (
block_exaport_category_template_bootstrap_card)card-top(dropdown area),card-body position-relative+h5.card-title+a.stretched-link,data-pinned="true"), has no edit/delete controls, and retains navigation behavior.excomdos_tile,excomdos_tile_category,id-N) and filter attrs.Artefact card redesign in folder mode
excomdos_tile,excomdos_tile_item,id-N,data-item-name,data-category-ids,data-item-date).Action menu consolidation
block_exaport_render_card_dropdown($viewurl, $editurl, $deleteurl).get_string('view'),get_string('edit'),get_string('delete').Styling
css/view_items.css:.card-eportfolio,.card-top,.card-title,.card-body,.card-footer.eportfolio-card-moredropdown toggle styling.eportfolio-date,.eportfolio-comment-count,.col-card-folder .card-eportfolioOriginal prompt
Redesign: Category and item cards to match new eportfolio card design
Goal
Redesign the Bootstrap card templates for categories (folders) and items (artefacts) in
view_items.phpto match the new card design. The reference HTML structure is provided below.Reference HTML for the TARGET design (
eportfolio_cards.php)Folder card:
Item (artefact) card:
Current state HTML (for reference)
The current rendered HTML for existing tiles (
exaport_view_items.php) uses:col mb-4>card h-100 excomdos_tile excomdos_tile_category id-Nfor folderscol mb-4 exaport-flat-item>card h-100 excomdos_tile excomdos_tile_item id-Nfor itemscard-headerinsideexcomdos_tileeditspancard-bodycard-extitle exomdos_tiletitlecard-footerSpecific changes required
1. Edit and delete → move into 3-dot dropdown menu
excomdos_tileeditspan from the card headereportfolio-card-morewithfa-ellipsis-verticaltoggle$item->userid == $USER->id/$type == 'mine')data-bs-toggle="dropdown"(Bootstrap 5 syntax, already present in Moodle 4+)2. Card structure changes — categories (folders)
card-header+card-body(big icon) +card-extitlelayoutcard-top d-flex justify-content-end→ contains the 3-dot dropdown (only if editable)card-body position-relative→ containsh5.card-title>a.stretched-linkwith small folder icon + category namecard-footer→ empty for now (sharing not implemented yet); can be omitted if emptyexcomdos_tile,excomdos_tile_category,id-N, drag-drop classes on the inner card divdata-pinned,data-item-nameon the outer col wrapper3. Card structure changes — items (artefacts)
card-header(type icon + edit icons) +card-body(thumbnail) +card-extitle(title) +card-footer(date) layoutThis pull request was created from Copilot chat.