Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Names link #1843

Merged
merged 3 commits into from
Jan 29, 2024
Merged

All Names link #1843

merged 3 commits into from
Jan 29, 2024

Conversation

JoeCohen
Copy link
Member

- Proves `Names With Observations` links to names_path (all names), and
- All Names does not
- Fixes #1841
- Adds helper for all_names_index_tabs
- Adds link to names_path (All Names)
unless that's already the query
@JoeCohen JoeCohen linked an issue Jan 20, 2024 that may be closed by this pull request
- Removes unused Tabs::NamesHelper methods
- See generally, e.g, Martin _Clean Code_; Fowler, _Tidy First?_.
- Turns CI checks completely green, improves Coverage. See https://coveralls.io/builds/65195848/source?filename=app%2Fhelpers%2Ftabs%2Fnames_helper.rb
@@ -101,24 +101,7 @@ def mycobank_basic_search_tab
{ class: tab_id(__method__.to_s), target: :_blank, rel: :noopener }]
end

def name_correct_spelling_tab(name)
Copy link
Member Author

Choose a reason for hiding this comment

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

Dead Code

end

def all_names_tab(query)
return if query&.flavor == :all || query&.flavor&.empty?
Copy link
Member Author

Choose a reason for hiding this comment

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

@nimmolo: Does this make sense? Is the 2nd condition over-cautious?

@JoeCohen JoeCohen requested a review from nimmolo January 20, 2024 23:33
@JoeCohen JoeCohen marked this pull request as ready for review January 20, 2024 23:34
@JoeCohen JoeCohen merged commit 8da9b1e into main Jan 29, 2024
5 checks passed
@JoeCohen JoeCohen deleted the 1841-all_names-link branch January 29, 2024 03:43
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.

Names with Observations "All Names" doesn't work
1 participant