markcraig / hdap-demo

Another try at an HDAP UI
MIT License
0 stars 0 forks source link

Add HDAP SDK as a store #6

Closed markcraig closed 7 months ago

markcraig commented 8 months ago

This moves the HDAP logic to its own store, as if we had an SDK. The HDAP store keeps track of the authenticated user and automatically logs the user out when its JWT expires.

This is still in draft because it needs unit tests. I've manually tested the authentication, read, and search functions, but I've not tested the other actions and functions that write to HDAP, so they're no doubt all broken one way or another. JavaScript never ceases to confuse me. ;-)

markcraig commented 8 months ago

Ran out of time this weekend to implement unit tests for this store, https://pinia.vuejs.org/cookbook/testing.html

markcraig commented 7 months ago

I believe this one is ready to merge. I don't have tests for the store or the components, yet, so I've logged https://github.com/markcraig/hdap-demo/issues/7 and https://github.com/markcraig/hdap-demo/issues/8