feat(tools): add link to corresponding wiki page per tool #80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a button that can be used when browsing the tool list to access the wiki page corresponding the tool. The link is set by a new text field accessible during creation and edit of the tool by an administrator. If no link is provided, the button silently disappears.
Tool list with and without wiki button:
![Screenshot 2024-10-30 at 9 01 26 PM](https://private-user-images.githubusercontent.com/161638/381786476-779aa8b5-e056-4568-abf0-092baff1943e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjg2OTYsIm5iZiI6MTczOTA2ODM5NiwicGF0aCI6Ii8xNjE2MzgvMzgxNzg2NDc2LTc3OWFhOGI1LWUwNTYtNDU2OC1hYmYwLTA5MmJhZmYxOTQzZS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjMzMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wMGIxM2RkOGUwMmIzOTgyZTUxYTczOWE2ZmJhZmE1YTE5OTY0OTJlY2IzNGY0MmIyMTIwOGFkMWYxMDBmYzkyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.-8f9GuTSeifEpwYfcUHxlQ_nM0axXNDah-Ijuu-GAeU)
Tool edit page with wiki field:
![Screenshot 2024-10-30 at 9 01 00 PM](https://private-user-images.githubusercontent.com/161638/381786512-47db3503-3b6d-4c1d-944c-03516fd6299c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNjg2OTYsIm5iZiI6MTczOTA2ODM5NiwicGF0aCI6Ii8xNjE2MzgvMzgxNzg2NTEyLTQ3ZGIzNTAzLTNiNmQtNGMxZC05NDRjLTAzNTE2ZmQ2Mjk5Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwMjMzMTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZmM2ZGYwM2JlNzhhZDBhNTg0Y2VhNDE2NDFiY2RmYjI4YWI3NjZkMWQ0Zjg4OGNhNzM4NDExMTA5ZDQ1M2NiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UK3fthjI18nwmYAIteqbjf1TsxbtodIP_YHT6p7W0No)
I'm deferring creating unit/integration tests on this PR until we have a factory for building tools in the database. I believe this is a goal of @everett-ripley in the near future. When this future feature has been completed, we can create a more thorough test of tool features.