fix history and better click on row #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
click not good to view
when we click on a row we should go to
the view of slides
history of slides
Implementation Spec for Issue #3 — "fix history and better click on row"
Objective
Two separate UX improvements to the HeroSlides dashboard:
Requirements
#decks-tbody tr) should callviewDeck(path)(switch to Slides tab and load that deck), notopenPresentation(path).Files to Modify
crates/hero_slides_ui/static/js/dashboard.jsrenderDecks(); refactor version panel JScrates/hero_slides_ui/static/css/dashboard.csscrates/hero_slides_ui/templates/index.html#version-panelHTML structureNo Rust server-side changes required.
Implementation Plan
Step 1 — Fix deck row click to navigate to Slides view
File:
dashboard.jsIn
renderDecks(), changeonclick="openPresentation(...)"toonclick="viewDeck(...)"on the<tr>element. The fullscreen presentation player remains accessible via the right-click context menu.Step 2 — Update version panel HTML structure
File:
index.htmlAdd
#version-slide-strip(horizontal strip) and#version-selected-label(slide name label) between the panel header and#version-list.Step 3 — Add CSS for horizontal slide strip
File:
dashboard.cssAdd
.version-slide-strip(flex, no-wrap, overflow-x: auto),.version-slide-thumb(90×51px, selected state),.version-slide-thumb-placeholder, and.version-selected-labelrules.Step 4 — Refactor version panel JavaScript
File:
dashboard.jsversionSelectedSlidemodule-level variableopenVersionPanel(slideName)to load all slides viadeck.getRPC and render the striprenderVersionSlideStrip(slides, selectedName)functionselectVersionSlide(name)functionloadVersionHistory(slideName)function (extracts async fetch logic)Acceptance Criteria
Notes
deck.getRPC already returnsslidesarray withnameandhas_pngfields — no new server code needed.versionSlideNamemodule-level variable is already used byrestoreVersion/previewVersionand must remain set correctly.Test Results
Full output
Implementation committed:
7d0a129Browse:
7d0a129Changes implemented:
viewDeck) instead of opening fullscreen presentation