Skip to content

feat: compact search page with shared hero, inline sort & icon buttons#14

Merged
vahldiek merged 1 commit into
ReproDB:mainfrom
vahldiek:feat/compact-search-hero
May 18, 2026
Merged

feat: compact search page with shared hero, inline sort & icon buttons#14
vahldiek merged 1 commit into
ReproDB:mainfrom
vahldiek:feat/compact-search-hero

Conversation

@vahldiek

Copy link
Copy Markdown
Member

Summary

Compact the search page layout to maximize vertical space for results, matching the profile page's collapsible hero pattern. Shares search hero CSS between both pages.

Changes

  • Shared reprodb-search-hero.css — Extracts common hero container, search box, search icon, clear icon, and tagline fade-out styles into a single file loaded by both the index and profile pages, eliminating ~60 lines of duplicated CSS.

  • Collapsible hero with tagline fade-out — The tagline ("Research artifacts & artifact evaluation…") smoothly fades out and collapses when a search is active, moving the search bar up. Reverses when search is cleared — same pattern as the profile page heading.

  • Inline sort dropdown — Replaces the separate "Sort by: Year · Title · Venue" links (which took a full line) with a compact <select> dropdown placed to the right of the Security checkbox in the filters row.

  • Icon-only action buttons — Download JSON and Share buttons are now small icon-only buttons (↓ download arrow and 🔗 link icon) with tooltip text, rendered inline next to the result count. Inspired by Google's search tools placement.

  • Profile page dedup — Profile hero and search box now use dual classes (rdb-search-hero + profile-search-hero) so the shared base handles box styling/transitions while profile-specific CSS only adds overrides (40vh min-height, narrower max-width, heading collapse on profile load).

Files changed

File What changed
src/assets/css/reprodb-search-hero.css New — shared hero/search box styles
src/index.md Hero wrapper, tagline element, sort dropdown, icon buttons
src/assets/css/reprodb-search.css Removed duplicated search box styles, added icon-btn styles
src/assets/js/reprodb-search.js Hero collapse toggle, sort dropdown handler, updated button refs
src/_includes/profile_common.html Loads shared CSS
src/profile.md Uses shared rdb-search-hero / rdb-search-input classes
src/assets/css/reprodb-profile.css Removed duplicated search box/icon styles

@vahldiek vahldiek force-pushed the feat/compact-search-hero branch from a9ba4ee to 23c54c0 Compare May 17, 2026 23:53
…& unified results

Redesign the search/index page for a cleaner, more stable layout:

- Shared hero CSS (reprodb-search-hero.css) used by both search and profile pages
- Justified tagline text with ReproDB branding; fades out on search
- Persistent toolbar: filters, sort dropdown, result count, download & share
  buttons all in one row that never moves or hides
- Result count includes both artifact results and profile cards
- Default page size reduced from 50 to 20
- Scrollbar always visible to prevent horizontal layout shift
- Dark mode support throughout
@vahldiek vahldiek force-pushed the feat/compact-search-hero branch from 23c54c0 to 2fcee01 Compare May 18, 2026 13:50
@vahldiek vahldiek merged commit e15a7f9 into ReproDB:main May 18, 2026
3 checks passed
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.

1 participant