feat: Add Acres to Hectares calculator and update the calculator backlog list.
This commit is contained in:
@@ -40,6 +40,13 @@ Whenever a new calculator is created:
|
||||
- `_kad_element_hook`: `kadence_after_header`
|
||||
- `_kad_element_show_conditionals`: `'[{"rule":"singular|calculator","select":"ids","ids":[<CALCULATOR_POST_ID>],"mustMatch":false}]'`
|
||||
|
||||
## 4. Required Mathematical Verification
|
||||
After the Kadence Element is injected and the calculator is live, **you must verify the math works in both directions** using the live WordPress post.
|
||||
1. Determine a known "Unit A to Unit B" conversion (e.g., 1 inch = 2.54 cm).
|
||||
2. Execute an HTTP/URL request simulating the Unit A input (e.g., `?v1=1`) and verify the output accurately reflects Unit B.
|
||||
3. Reverse the test: simulate the Unit B input (e.g., `?v2=2.54`) and verify the output accurately reflects Unit A.
|
||||
4. If either math direction fails or produces precision floating-point inaccuracies, you must correct the Kadence Element JavaScript block.
|
||||
|
||||
## 4. Calculator Registry
|
||||
To avoid unnecessary scraping of the REST API, immediately update the `calculators_list.md` file located in the workspace directory with the details (Title, Post ID, Kadence Element ID) upon successful deployment.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user