bunnie
547783d195
Merge pull request #150 from nworbnhoj/qrcode
...
enable notification modal text + qrcode
2022-04-24 21:36:38 +08:00
bunnie
62d56fb70b
Merge pull request #149 from nworbnhoj/index
...
modal selected index support
2022-04-24 21:27:08 +08:00
nworbnhoj
0e561802ce
enable notification modal text + qrcode
...
change the notification modal to accept the primary message and an
Option of independent text to display as a qrcode
pub fn show_notification(&self, notification: &str, qrtext:Option<&str>) -> Result<(), xous::Error> {}
2022-04-24 21:29:15 +10:00
nworbnhoj
2070236695
minor refinements requested on PR
2022-04-24 20:09:43 +10:00
nworbnhoj
e879ff4b17
modal selected index support
...
Support for:
- obtaining the index of the selected radiobutton & checkbox
- adding a Vec<&str> of items
2022-04-24 08:28:02 +10:00
bunnie
dd462aebb2
remove trailing/open white spaces
2022-04-22 15:54:43 +08:00
bunnie
2c3143f790
Merge branch 'main' into multi-text-modals
2022-04-22 15:54:18 +08:00
Gianguido Sorà
d06c6dcb32
modals: refuse to build modal if no fields have been provided
2022-04-13 16:59:17 +02:00
Gianguido Sorà
0c17bb6e34
modals: get rid of fields_amt value in alert modal builder, can be inferred
2022-04-13 16:57:36 +02:00
Gianguido Sorà
89c768625d
modals: add builder-based interface to present alerts with text fields inside
2022-04-13 15:49:31 +02:00
bunnie
3f962b6bb0
make progress updates fail gracefully on server queue full
...
Progress updates can come at a right too high for the renderer
to keep up, so instead of deadlocking, we discard update messages
that are too frequent.
2022-04-08 18:55:56 +08:00
bunnie
b4dad54315
fix missing unlock() statement at end of modals
2022-04-08 15:58:59 +08:00
bunnie
cd8c762c55
patch up QR code PR, change method signature as discussed
...
now any modal notification can also render as a QR code
2022-04-08 15:19:56 +08:00
nworbnhoj
8c5c2228d2
Merge branch 'main' into qrcode
2022-04-08 16:22:19 +10:00
nworbnhoj
2a957e55cd
add as_qrcode to Notification modal
2022-04-08 14:16:15 +10:00
Gianguido Sorà
8123393a7d
Merge branch 'main' into feature/multi-text-modals
2022-04-07 16:39:03 +02:00
bunnie
c97a00ed1f
refactor validator to not create a new single-use server
2022-04-07 04:38:38 +08:00
bunnie
f720f3175c
refactor main loop to use deferred responses
...
I think things could be compactified even further, but this is a
first-step "merge the threads and break as few things as possible"
pass. Would like to get @gsora's multi-line boxes merged into this
new system before doing even more optimization.
2022-04-07 04:04:37 +08:00
bunnie
360e50a8bb
refactor locking to use deferred responses
2022-04-07 02:19:37 +08:00
Gianguido Sorà
5c975fdee4
make single-field modals accept a placeholder
2022-04-05 16:28:58 +02:00
Gianguido Sorà
ba347f6c79
add placeholders, current selection highlight
2022-04-05 16:18:43 +02:00
Gianguido Sorà
0b62a2657a
feature: generalization of modals.get_text()
...
Added a get_text_multi() method on modals which builds, shows and returns text taken from a modal view with a given amount of fields.
Calling get_text() is equal to a call to get_text_multi() with fields = 1.
2022-03-31 19:24:53 +02:00
bunnie
827888ccbb
fix up the REFCOUNT on connections
...
Was doing disjoint loads and stores on an Atomic, really, should
be using the fetch_add, fetch_sub variants to be proper.
Didn't seem to impact anything but maybe there's a future version
of me that high fives me for doing this.
2022-01-31 23:13:10 +08:00
bunnie
a8d7c7e9e2
cleann up the oqc test
2022-01-12 02:01:33 +08:00
bunnie
489a26dd11
fix an issue where we don't decrement the connection counter on drop
2022-01-05 20:01:54 +08:00
bunnie
725d943198
add interlocking so multiple threads don't interfere with each other
2021-12-17 01:55:36 +08:00
bunnie
0fb1bea428
add radio buttons and checkboxes to the modals meta-handler
2021-12-17 00:32:44 +08:00
bunnie
60fc03351a
add progress bar primitives
2021-12-16 21:39:49 +08:00
bunnie
4a0f062558
add notification api
2021-12-16 02:28:37 +08:00
bunnie
dcad15284d
refactor tests into a separate file
2021-12-16 01:48:11 +08:00
bunnie
f3f3e677d2
turn the validator error message into a newtype
...
this allows us to fine-tune the error message static size parameter
later on more easily
2021-12-15 13:53:53 +08:00
bunnie
e48c472b32
helps to add the code for the new service
2021-12-15 13:46:43 +08:00