Skip to content

Always render the search results page even if no images#506

Merged
Meow merged 2 commits intophilomena-dev:masterfrom
mdashlw:zero-images-search-page
May 2, 2025
Merged

Always render the search results page even if no images#506
Meow merged 2 commits intophilomena-dev:masterfrom
mdashlw:zero-images-search-page

Conversation

@mdashlw
Copy link
Contributor

@mdashlw mdashlw commented Apr 16, 2025

Before you begin

  • I understand my contributions may be rejected for any reason
  • I understand my contributions are for the benefit of Derpibooru and/or the Philomena software
  • I understand my contributions are licensed under the GNU AGPLv3
  • I understand all of the above

closes #496

Copy link
Contributor

@MareStare MareStare left a comment

Choose a reason for hiding this comment

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

Tested this locally. Seems okay to merge.

Before:
image

After:
image

Comment on lines -8 to -9
tag.images_count > 0 or Enum.any?(dnp_entries) or
(present?(tag.mod_notes) and can?(conn, :edit, tag))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you know what was all this complicated logic about? Seems rather convoluted given that it only influenced wether you saw the empty image view or not

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It became complicated only recently, used to be just any?(images). I don't think it was ever worth it

@Meow Meow merged commit 55d59ac into philomena-dev:master May 2, 2025
6 checks passed
@mdashlw mdashlw deleted the zero-images-search-page branch May 2, 2025 23:45
@MareStare MareStare added the qa accepted The change was tested by another person (not the PR author) label May 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

qa accepted The change was tested by another person (not the PR author)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display "Show hidden/deleted" buttons on a "No images found" page

3 participants