Title: Allow SearchActions (i.e. buttons) to be present but disabled for certain search results · Issue #4 · scijava/scijava-search · GitHub
Open Graph Title: Allow SearchActions (i.e. buttons) to be present but disabled for certain search results · Issue #4 · scijava/scijava-search
X Title: Allow SearchActions (i.e. buttons) to be present but disabled for certain search results · Issue #4 · scijava/scijava-search
Description: Currently, the SearchActionFactory#supports method is used to decide if a SearchAction is to be included in a result's actions: scijava-search/src/main/java/org/scijava/search/SearchService.java Lines 61 to 70 in 6105bdd /** * Gets the s...
Open Graph Description: Currently, the SearchActionFactory#supports method is used to decide if a SearchAction is to be included in a result's actions: scijava-search/src/main/java/org/scijava/search/SearchService.java Li...
X Description: Currently, the SearchActionFactory#supports method is used to decide if a SearchAction is to be included in a result's actions: scijava-search/src/main/java/org/scijava/search/SearchService.jav...
Opengraph URL: https://github.com/scijava/scijava-search/issues/4
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow SearchActions (i.e. buttons) to be present but disabled for certain search results","articleBody":"Currently, the `SearchActionFactory#supports` method is used to decide if a `SearchAction` is to be included in a result's actions:\r\n\r\nhttps://github.com/scijava/scijava-search/blob/6105bdd562ae8e36d4170143e5d654a38b757639/src/main/java/org/scijava/search/SearchService.java#L61-L70\r\n\r\n... and a button is added for each supported action:\r\n\r\nhttps://github.com/scijava/scijava-search/blob/6105bdd562ae8e36d4170143e5d654a38b757639/src/main/java/org/scijava/ui/swing/search/SwingSearchBar.java#L514-L534\r\n\r\n---\r\n\r\nIt would be nice to have the possibility to **always include** a button for a certain result type (e.g. `ModuleSearchResult`) but to **disable** it (i.e. show it greyed-out) according to the fulfillment of some additional requirements (e.g. if a specific module doesn't support a given input type).\r\n\r\nIMHO, indicating that a certain action is available in principle, but not for the currently highlighted item, would allow for a more consistent user experience.\r\n","author":{"url":"https://github.com/imagejan","@type":"Person","name":"imagejan"},"datePublished":"2018-01-05T10:31:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4/scijava-search/issues/4"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:344a29c4-6b3e-3fce-9881-2b758c028510 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DF6C:29957D:1070FCF:16B935C:696A981B |
| html-safe-nonce | 6d274b96be111531b7a6dec1129becdac221bd3f865e14db91f8f4107f139f46 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjZDOjI5OTU3RDoxMDcwRkNGOjE2QjkzNUM6Njk2QTk4MUIiLCJ2aXNpdG9yX2lkIjoiMzM1ODQ3MjE4Nzc5NjQ4MjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 608b761ea9c63bf0a831e94fd14e0d1d4fd661f9da31857a61975b7d9140fc23 |
| hovercard-subject-tag | issue:286250118 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scijava/scijava-search/4/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0929c0f77debf00a96c3a32d835aa98e786b975bee8591ac7809415c3bf94c7d/scijava/scijava-search/issues/4 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0929c0f77debf00a96c3a32d835aa98e786b975bee8591ac7809415c3bf94c7d/scijava/scijava-search/issues/4 |
| og:image:alt | Currently, the SearchActionFactory#supports method is used to decide if a SearchAction is to be included in a result's actions: scijava-search/src/main/java/org/scijava/search/SearchService.java Li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | imagejan |
| hostname | github.com |
| expected-hostname | github.com |
| None | c0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af |
| turbo-cache-control | no-preview |
| go-import | github.com/scijava/scijava-search git https://github.com/scijava/scijava-search.git |
| octolytics-dimension-user_id | 1262770 |
| octolytics-dimension-user_login | scijava |
| octolytics-dimension-repository_id | 114413803 |
| octolytics-dimension-repository_nwo | scijava/scijava-search |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 114413803 |
| octolytics-dimension-repository_network_root_nwo | scijava/scijava-search |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 99aab454e5ddc8df30805fb76c114c3008a15842 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width