SafeTrace
SafeTrace copied to clipboard
Adding Fixed UI frontend and removed old unused files
Thanks @cmalfesi. This feels like much progress, yet it's still not fully functional for me. Here's my report:
-
I want to help
button on the homepage does not do anything -
Login
works well with Google integration 🙌 - I then go to the
Contribute
tab, and I see I canI want to self report
orView my results
👍 - I follow the prompts to
self report
, I download my TakeOut from Google, and upload it, and the screen displaysYour data has been successfully shared with SafeTrace API.
but nothing displays - If I look at the logs from the enclave from the above operation I see:
May 02 13:58:38 ibm safetrace-app[12772]: Get User Key called inside enclave
May 02 13:58:38 ibm safetrace-app[12772]: Get User Key called inside enclave
May 02 13:58:38 ibm safetrace-app[12772]: thread panicked at 'no entry found for key', src/libcore/option.rs:1166:5
May 02 13:58:38 ibm safetrace-app[12772]: fatal runtime error: failed to initiate panic, error 5
and the server crashes and is automatically restarted. The JSON RPC server was able to respond:
0|index | Message received
0|index | { id: 'f3e90ff780',
0|index | type: 'AddPersonalData',
0|index | addPersonalData: { status: -1 } }
which the UI should parse and report something went wrong.
- Also, when I
self report
, if I chooseI have not been tested
, the UI still requires me to enter a date for when the test was administered, which should only be required if I markedPositive
orNegative
but not ifI have not been tested
yet.
Thank you 🙏
@lacabra I have done some progress on these points:
- If you choose
I have not been tested
, now the next button works well - I found that the dates were sent as a string in the parsed son. I have converted those in a integer value.
- I could not get more progress to process the results from findMatch, because again I found a problem with CORS.
Here I try to explain the problem:
- When I try to use
addPersonalData
and/orfindMatch
with the the variablepublicKey
(got it fromgetClientKeys
), I'm getting a CORS error. - If I use
addPersonalData
and/orfindMatch
with the the variabletaskPubKey
(got it fromgetEncryptionKey
), both work well but findMatch returns Status -1.
We need to debug this with the help of the enclave server log.
@cmalfesi
Tested the new changes. I confirm that the date field is now optional if I choose that I have not been tested.
When I submit my location data, the console shows that the UI is sending an empty array despite having uploaded a valid Google Takeout data. The operation succeeds in the enclave, though an empty array gets added to that user. I don't see any CORS error:

@lacabra (cc: @cankisagun @ainsleys ) I have updated the project. These are the issues done:
- Fixed the parser of the result from the findMatch enclave endpoint
- Show the results if it matches with positive contact
- Added pictures
- Added the rest Contribute information
- The Home page is at the moment the main text of the Figma Contribute page.