Skip to content

Change Unsplash "Tags" input to "Search Term" #738

@JudeRV

Description

@JudeRV

When images are chosen from Unsplash using the "Search" type, Tabliss displays an input to filter images by Tags

Image

I thought this meant that I could write a space/comma-separated list of tags to filter by, but it looks like it just uses one general query string:

case "search":
params.set("orientation", "landscape");
if (featured) params.set("featured", "true");
if (search) params.set("query", search);
break;

Unsplash's own API docs confirm this. I don't really see a point in making more work to allow for multiple tags since the random image endpoint doesn't seem to support it. Instead I just think the text "Tags" should be changed to something like "Search Term" to better represent what it actually does for the filtering. Here's where the change needs to be made (line 87):

{data.by === "search" && (
<>
<label>
Tags
<DebounceInput
type="text"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions