Skip to content

Improve placeholder text / form UX in Browse By "Starts with" form control#5498

Open
kshepherd wants to merge 2 commits intoDSpace:mainfrom
kshepherd:5945_browse-form-placeholder
Open

Improve placeholder text / form UX in Browse By "Starts with" form control#5498
kshepherd wants to merge 2 commits intoDSpace:mainfrom
kshepherd:5945_browse-form-placeholder

Conversation

@kshepherd
Copy link
Copy Markdown
Member

@kshepherd kshepherd commented Apr 16, 2026

References

Description

The placeholder text in the browse-by input form was misleading, with a value of "Search the repository".
This small change shifts the hint text into the form placeholder, instead of being displayed as a small non-obvious line of text below the input form control.

The hint text is already translated across many languages, so it is not text I had to come up with myself and request help from translators.

I think this is improved UX. Feedback welcome.

screenshot_2026-04-16_16:37:05_selection screenshot_2026-04-16_16:37:12_selection screenshot_2026-04-16_16:37:25_selection

Instructions for Reviewers

Simply compare the form display when you visit "Browse by Author", with and without this change applied.

List of changes in this PR:

  • Replace the i18n key browse.search-form.placeholder in the starts-with Angular component, with browse.startsWith.type_text
  • Remove the small hint text element from below the form input control, as it is now displayed as placeholder text
  • Remove the (now) unused browse.search-form.placeholder key

Checklist

  • My PR is created against the main branch of code (unless it is a backport or is fixing an issue specific to an older branch).
  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using npm run lint
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • My PR aligns with Accessibility guidelines if it makes changes to the user interface.
  • My PR uses i18n (internationalization) keys instead of hardcoded English text, to allow for translations.
  • My PR includes details on how to test it. I've provided clear instructions to reviewers on how to successfully test this fix or feature.
  • If my PR fixes an issue ticket, I've linked them together.

@kshepherd kshepherd self-assigned this Apr 16, 2026
@kshepherd kshepherd added i18n / l10n Internationalisation and localisation, related to message catalogs 1 APPROVAL pull request only requires a single approval to merge labels Apr 16, 2026
@kshepherd kshepherd force-pushed the 5945_browse-form-placeholder branch from 65d265b to 2fb21fe Compare April 16, 2026 14:57
@kshepherd kshepherd moved this to 🙋 Needs Reviewers Assigned in DSpace 10.0 Release Apr 16, 2026
@lgeggleston lgeggleston added component: Discovery related to discovery search or browse system ux User Experience related works testathon Reported by a tester during Community Testathon labels Apr 16, 2026
@EikLoe EikLoe self-requested a review April 16, 2026 17:06
@EikLoe EikLoe moved this from 🙋 Needs Reviewers Assigned to 👀 Under Review in DSpace 10.0 Release Apr 16, 2026
Copy link
Copy Markdown
Member

@EikLoe EikLoe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kshepherd ,
I tested it and it works great! Thanks 👍🏾 The code looks good to me!

@EikLoe
Copy link
Copy Markdown
Member

EikLoe commented Apr 16, 2026

We might consider backporting this, as it appears in demo.dspace.org, too.

@lgeggleston
Copy link
Copy Markdown

Good point! Adding labeling for all automatic backports, in case it works out for previous versions.

@lgeggleston lgeggleston added port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release port to dspace-9_x This PR needs to be ported to `dspace-9_x` branch for next bug-fix release labels Apr 16, 2026
@lgeggleston lgeggleston moved this from 👀 Under Review to 👍 Reviewer Approved in DSpace 10.0 Release Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 APPROVAL pull request only requires a single approval to merge component: Discovery related to discovery search or browse system i18n / l10n Internationalisation and localisation, related to message catalogs port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release port to dspace-8_x This PR needs to be ported to `dspace-8_x` branch for next bug-fix release port to dspace-9_x This PR needs to be ported to `dspace-9_x` branch for next bug-fix release testathon Reported by a tester during Community Testathon ux User Experience related works

Projects

Status: 👍 Reviewer Approved

Development

Successfully merging this pull request may close these issues.

Browsing by Author returns no results for valid author search term

3 participants