beda-software / sdc-ide

IDE for https://build.fhir.org/ig/HL7/sdc/
MIT License
15 stars 10 forks source link

Save launch context and questionnaire response between page refreshes #86

Open ruscoder opened 3 days ago

ruscoder commented 3 days ago

It's absolutely inconvient to use IDE when refresh the page - the questionnaire response is lost.

  1. Keep questionnaire response in locale storage along with launch context, and apply it on the app startup if questionnaire version (meta.versionId) is not changed. In that case, questionnaire response always will match the Questionnaire.
  2. Add explicit clear questionnaire response button (Clear form) to UI
EmmaSecrest commented 2 days ago

I might have an idea how to fix this. Let me take a look.

\assign

EmmaSecrest commented 2 days ago

Subject: Troubleshooting SDC IDE Installation - Errors with Docker & Missing frontend Folder

I'm encountering issues while setting up the SDC IDE project. I've followed the instructions on https://aidbox.app/ but am still running into errors.

Tried the following:

Additional Observations:

Errors:

Please Advise:

Additional Information:

Thank you for your assistance!

Update: New Error Encountered

Error Message:

Devbox cannot start with the specified license. Please contact us for extended license (https://aidbox.app/?intercom-focus=true)

Clarification Needed: I'm unsure which license I need to resolve this issue.

Selection Details: I selected "Dev," gave it a name, chose "Development," and clicked "Self Hosted" using this link: License Selection.

ruscoder commented 20 hours ago

Hi @EmmaSecrest, I didn't expect that someone could find this issue in this not popular repository. But since you've already started to solve it, I'll be happy to help you with your issues.

We use Aidbox as the FHIR server and this is a web IDE that uses the FHIR server.

  1. Sign up and create dev license here https://aidbox.app/ui/portal#/ (see the documentation)
  2. package.json is presented in the root repository of the monorepo, the frontend/package.json - is not needed, it's quite obsolete readme, unfortunately.
ruscoder commented 19 hours ago

@EmmaSecrest looks like example for dev env is very obsolete. I'll update it (#87 ) and let you know once it's ready

ruscoder commented 18 hours ago

@EmmaSecrest the examples folder README is updated, please start from scratch and follow the instructions and it should work.

I've tested it by the following actions:

  1. git clone git@github.com:beda-software/sdc-ide.git
  2. cd sdc-ide
  3. cd examples
  4. cp .env.tpl .env
  5. Obtained the Aidbox dev license and put it into .env. as AIDBOX_LICENSE=...
  6. docker compose -f docker-compose.dev.yaml up -d
  7. cd ..
  8. yarn
  9. yarn start
  10. Open http://localhost:3001
  11. Log in using admin/password

Good luck!

EmmaSecrest commented 16 hours ago

I think something went wrong as I followed all the instructions to create the license but ended up with an error.

Devbox cannot start with the specified license. Please contact us for extended license (https://aidbox.app/?intercom-focus=true)

Also, this is my first time contributing to open source. 😳

I will look at it again to make sure.

EmmaSecrest commented 14 hours ago

Alright! I have a different error!

It is timing out at this container - Container examples-devbox-healthcheck-1 I am getting an unhealthy status. It is taking longer than a minute to process and get that result.

I navigated back to the root and used yarn start got the startup page that says "Welcome to SDC IDE! ...." clicked the link got localhost refused to connect.

{
    "Log": [
        {
            "Start": "2024-10-27T01:35:33.305716898Z",
            "End": "2024-10-27T01:35:37.081953942Z",
            "ExitCode": 1,
            "Output": "curl: (6) Could not resolve host: devbox"
        },
        {
            "Start": "2024-10-27T01:35:38.082478202Z",
            "End": "2024-10-27T01:35:41.837511038Z",
            "ExitCode": 1,
            "Output": "curl: (6) Could not resolve host: devbox"
        }
    ],
    "Config": {
        "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "curl --fail http://devbox:8080/__healthcheck || exit 1"
            ],
            "Interval": 1000000000,
            "Timeout": 20000000000,
            "Retries": 100
        },
        "Image": "curlimages/curl"
    },
    "Name": "/examples-devbox-healthcheck-1",
    "NetworkMode": "examples_default",
    "Platform": "linux"
}
{
    "Log": [
        {
            "Start": "2024-10-27T01:35:33.305716898Z",
            "End": "2024-10-27T01:35:37.081953942Z",
            "ExitCode": 1,
            "Output": "curl: (6) Could not resolve host: devbox"
        },
        {
            "Start": "2024-10-27T01:35:38.082478202Z",
            "End": "2024-10-27T01:35:41.837511038Z",
            "ExitCode": 1,
            "Output": "curl: (6) Could not resolve host: devbox"
        }
    ],
    "Config": {
        "Healthcheck": {
            "Test": [
                "CMD-SHELL",
                "curl --fail http://devbox:8080/__healthcheck || exit 1"
            ],
            "Interval": 1000000000,
            "Timeout": 20000000000,
            "Retries": 100
        },
        "Image": "curlimages/curl"
    },
    "Name": "/examples-devbox-healthcheck-1",
    "NetworkMode": "examples_default",
    "Platform": "linux"
}
ruscoder commented 8 hours ago

@EmmaSecrest please show the logs of devbox. Please also make sure that you pulled the latest changes from the repository