arch-kiosk / arch-kiosk-office

💼 central place for collaboration
GNU Affero General Public License v3.0
1 stars 0 forks source link

Kiosk Admin user interface for constants #1912

Open urapadmin opened 1 year ago

urapadmin commented 1 year ago

Changing the recording configuration only via workstation download and upload is cumbersome, particularly for those who work overseas and have a slow line (me). It should be possible to define a flask-admin user interface for constants. The only important step is that constants need a new modification timestamp when changed.

urapadmin commented 1 year ago

Kiosk 1.2.8

The UI is there BUT it is only of very limited use and should be used only if you know exactly what you are doing. It has even less guidance than the configuration in the recording system. That is why I also don't advertise it by adding it to the admin menu. To get to this UI you have to go to one of the admin uis like users or privileges or file picking. And then you see there is a tab "Kiosk File Maker Recording Constants" (yep, it is long)

luizaogs commented 1 year ago

So changing a value in Kiosk worked fine, but changing a value in my workstation and synchronizing it does not update that value in the Kiosk constants UI. I am not sure if this could be time zone related.

I changed the help_cm_description field. First I changed it in the Kiosk UI to "Hmmm does this value transfer onto my workstation? I wonder." I got it in the workstation just fine. I then changed it in the workstation to the following:

Screenshot 2022-11-07 at 9 35 12 PM

I uploaded and synchronized, so expected that this would now show up in the Kiosk UI. Instead I still get this:

Screenshot 2022-11-07 at 9 37 22 PM

And then if I download the workstation again my latest change got erased and I am back to the original change I had made in Kiosk:

Screenshot 2022-11-07 at 9 39 20 PM

I also haven't looked into value lists yet but I am leaving this alone for now in case it makes it easier for you to look into it. I synchronized around 9:32pm Chicago time (GMT-6), in case that is useful for the logs.

urapadmin commented 1 year ago

That is quite possibly a timezone issue, indeed. When you change something on the server, you are using the server's timezone. When you are changing something in FileMaker you are using your own TimeZone. The result is that your FileMaker change is earlier than that of the server and synchronization will dismiss your change. You have to wait until you are in Providence :o) Or @lbestock helps here.

lbestock commented 1 year ago

Sipping tea until I am awake enough to put on my shoes and go vote, I have tested this in the server's timezone. I changed the same field @luizaogs did. It was just a timezone issue - works perfectly! Being able to sort by modification date was very helpful. I can't believe I half configured URAP yesterday before this - it's much more convenient and burns fewer trees.

I also changed a valuelist in Kiosk to see if that ended up in my workstation. In the configuration itself in FM it looks a little weird, with extra lines between the values in the valuelist: image

But it is totally as expected functionally creating a record, with the ability to use the value I input via Kiosk.

@urapadmin can we close this or does it need more testing?

urapadmin commented 1 year ago

The valuelist thing isn't great. It works but that is rather because FileMaker is kinda dumb. The rule of thumb is clearly: Don't use the Kiosk UI for valuelists.

urapadmin commented 10 hours ago

Kiosk 1.6.6