Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adds JSON view for numeric list -- this is easier to deal with #154

Merged
merged 2 commits into from
Apr 14, 2024

Conversation

elijahbenizzy
Copy link
Contributor

We can just reuse the JSON view for this, its pretty clean.
image

@elijahbenizzy elijahbenizzy requested a review from skrawcz April 12, 2024 22:11
@elijahbenizzy elijahbenizzy force-pushed the add-json-view-for-numeric-list branch from efb9617 to 175ce21 Compare April 12, 2024 22:21
@skrawcz
Copy link
Contributor

skrawcz commented Apr 12, 2024

will this work for top level number arrays too? I remember having code in two spots for this reason (IIRC).

@elijahbenizzy
Copy link
Contributor Author

will this work for top level number arrays too? I remember having code in two spots for this reason (IIRC).

From what I can tell that's actually not necessary. FormRenderer renders the data, but only the top level. That's always a dict/object, which means we just have to get the fields. The RenderedField is used recursively.

@skrawcz
Copy link
Contributor

skrawcz commented Apr 12, 2024

Cool -- but I see you've injected a values field in there though.

So that the array view looks good.
@skrawcz
Copy link
Contributor

skrawcz commented Apr 12, 2024

Screen Shot 2024-04-12 at 4 42 49 PM
fixed

@skrawcz
Copy link
Contributor

skrawcz commented Apr 12, 2024

note: rendering is a little sluggish with this.

@elijahbenizzy elijahbenizzy merged commit 24bf3b7 into main Apr 14, 2024
8 checks passed
@elijahbenizzy elijahbenizzy deleted the add-json-view-for-numeric-list branch April 14, 2024 22:16
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants