tla-org / poweranalyses

Statistical power analyses in the browser
https://poweranalyses.org
GNU General Public License v3.0
4 stars 0 forks source link

feat: move to Dioxus #29

Closed storopoli closed 8 months ago

storopoli commented 9 months ago

We are moving to Dioxus as the main UI/Fullstack Framework:

The idea is to not touch pa (the power/ crate). It will be still an emscripten WASM blob. We need very little frontend in JS. Just to send the JSON to pa and get back some JSON, e.g. {"test": "oneSampleTTest", "tail": "1", "analysis": "n", "n": 50, "alpha": 0.05,"power": 0.95,"es": 0.5} and then get back {"n": 45}. This will enable us to get the reactive conditional rendering on the analysis using Dioxus components. (Some tests have different greek letter for the Noncentrality parameter and also different UI fields for the user to input, these are easy to handle with Dioxus)

Additionally, we can do better sanitization of the user inputs before passing internally to pa's WASM (related #19), and better error handling possibilities (related #18). Finally, having PowerAnalyses as an offline PWA would be also easy to implement (related #22)

TODO

Closes #22, #19, and #18.

storopoli commented 8 months ago

Supersed by #31.