Project

General

Profile

Actions

Feature #215

open

Create an optional window that shows the JSON window of lookup table/ logic gate

Added by Huda Hussain 9 months ago. Updated 9 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Start date:
07/19/2023
Due date:
% Done:

0%

Estimated time:

Files

Actions #1

Updated by Joseph Potvin 9 months ago

  • Tracker changed from Bug to Feature

The preview should be human-version JSON, with line breaks and indents.

(Similarly, in the Vertical Stack preview, the "CRLF" codes should create line breaks for UI display.)

Actions #2

Updated by Joseph Potvin 9 months ago

Here is my suggestion for the preview of the CSV for the human user of RuleMaker. Presently it is previewed like this example:

"lookup": "G,A,B,CCRFLW1.1_%x221st Column Header%x22,1,1,0,0,0,0,1,1,0,0,0,0CRFLW1.2_%x222nd Column Header %x22,0,0,1,1,0,0,0,0,1,1,0,0CRFLW1.3_%x223rd Column Header%x22,0,0,0,0,1,1,0,0,0,0,1,1CRFLW2.1_%x221st Primary Category%x22,1,1,1,1,1,1,0,0,0,0,0,0CRFLW2.2_%x222nd Primary Category%x22,0,0,0,0,0,0,1,1,1,1,1,1CRFLW3.1_%x221st Secondary Category%x22,1,0,1,0,1,0,1,0,1,0,1,0CRFLW3.2_%x222nd Secondary Category%x22,0,1,0,1,0,1,0,1,0,1,0,1CRFLT_W1.1_W2.1_W3.1_%x221st Primary Category, 1st Secondary Category, 1st Column Header%x22,1,0,0,0,0,0,0,0,0,0,0,0CRFLT_W1.1_W2.1_W3.2_%x221st Primary Category, 2nd Secondary Category, 1st Column Header%x22,0,1,0,0,0,0,0,0,0,0,0,0CRFLT_W1.2_W2.1_W3.1_%x221st Primary Category, 1st Secondary Category, 2nd Column Header %x22,0,0,1,0,0,0,0,0,0,0,0,0CRFLT_W1.2_W2.1_W3.2_%x221st Primary Category, 2nd Secondary Category, 2nd Column Header %x22,0,0,0,1,0,0,0,0,0,0,0,0CRFLT_W1.3_W2.1_W3.1_%x221st Primary Category, 1st Secondary Category, 3rd Column Header%x22,0,0,0,0,1,0,0,0,0,0,0,0CRFLT_W1.3_W2.1_W3.2_%x221st Primary Category, 2nd Secondary Category, 3rd Column Header%x22,0,0,0,0,0,1,0,0,0,0,0,0CRFLT_W1.1_W2.2_W3.1_%x222nd Primary Category, 1st Secondary Category, 1st Column Header%x22,0,0,0,0,0,0,1,0,0,0,0,0CRFLT_W1.1_W2.2_W3.2_%x222nd Primary Category, 2nd Secondary Category, 1st Column Header%x22,0,0,0,0,0,0,0,1,0,0,0,0CRFLT_W1.2_W2.2_W3.1_%x222nd Primary Category, 1st Secondary Category, 2nd Column Header %x22,0,0,0,0,0,0,0,0,1,0,0,0CRFLT_W1.2_W2.2_W3.2_%x222nd Primary Category, 2nd Secondary Category, 2nd Column Header %x22,0,0,0,0,0,0,0,0,0,1,0,0CRFLT_W1.3_W2.2_W3.1_%x222nd Primary Category, 1st Secondary Category, 3rd Column Header%x22,0,0,0,0,0,0,0,0,0,0,1,0CRFLT_W1.3_W2.2_W3.2_%x222nd Primary Category, 2nd Secondary Category, 3rd Column Header%x22,0,0,0,0,0,0,0,0,0,0,0,1CRFL",

That's the way the machine can use it, but it would be easier for the human to 'see' it by implementing a line break at each CRFL (while still showing the CRFL because they are actually mingled into the data) as follows:

"lookup": "G,A,B,CCRFL
W1.1_%x221st Column Header%x22,1,1,0,0,0,0,1,1,0,0,0,0CRFL
W1.2_%x222nd Column Header %x22,0,0,1,1,0,0,0,0,1,1,0,0CRFL
W1.3_%x223rd Column Header%x22,0,0,0,0,1,1,0,0,0,0,1,1CRFL
W2.1_%x221st Primary Category%x22,1,1,1,1,1,1,0,0,0,0,0,0CRFL
W2.2_%x222nd Primary Category%x22,0,0,0,0,0,0,1,1,1,1,1,1CRFL
W3.1_%x221st Secondary Category%x22,1,0,1,0,1,0,1,0,1,0,1,0CRFL
W3.2_%x222nd Secondary Category%x22,0,1,0,1,0,1,0,1,0,1,0,1CRFL
T_W1.1_W2.1_W3.1_%x221st Primary Category, 1st Secondary Category, 1st Column Header%x22,1,0,0,0,0,0,0,0,0,0,0,0CRFL
T_W1.1_W2.1_W3.2_%x221st Primary Category, 2nd Secondary Category, 1st Column Header%x22,0,1,0,0,0,0,0,0,0,0,0,0CRFL
T_W1.2_W2.1_W3.1_%x221st Primary Category, 1st Secondary Category, 2nd Column Header %x22,0,0,1,0,0,0,0,0,0,0,0,0CRFL
T_W1.2_W2.1_W3.2_%x221st Primary Category, 2nd Secondary Category, 2nd Column Header %x22,0,0,0,1,0,0,0,0,0,0,0,0CRFL
T_W1.3_W2.1_W3.1_%x221st Primary Category, 1st Secondary Category, 3rd Column Header%x22,0,0,0,0,1,0,0,0,0,0,0,0CRFL
T_W1.3_W2.1_W3.2_%x221st Primary Category, 2nd Secondary Category, 3rd Column Header%x22,0,0,0,0,0,1,0,0,0,0,0,0CRFL
T_W1.1_W2.2_W3.1_%x222nd Primary Category, 1st Secondary Category, 1st Column Header%x22,0,0,0,0,0,0,1,0,0,0,0,0CRFL
T_W1.1_W2.2_W3.2_%x222nd Primary Category, 2nd Secondary Category, 1st Column Header%x22,0,0,0,0,0,0,0,1,0,0,0,0CRFL
T_W1.2_W2.2_W3.1_%x222nd Primary Category, 1st Secondary Category, 2nd Column Header %x22,0,0,0,0,0,0,0,0,1,0,0,0CRFL
T_W1.2_W2.2_W3.2_%x222nd Primary Category, 2nd Secondary Category, 2nd Column Header %x22,0,0,0,0,0,0,0,0,0,1,0,0CRFL
T_W1.3_W2.2_W3.1_%x222nd Primary Category, 1st Secondary Category, 3rd Column Header%x22,0,0,0,0,0,0,0,0,0,0,1,0CRFL
T_W1.3_W2.2_W3.2_%x222nd Primary Category, 2nd Secondary Category, 3rd Column Header%x22,0,0,0,0,0,0,0,0,0,0,0,1CRFL
",

This helps the user to really see how the data package is structured. I actually think it would be optimal to display our CSV in this preview as "right-justified", so that all the numerics are nicely aligned. This facilitates data-auditing, which is the purpose of the human display. To illustrate what I mean, I attach a screenshot.

Actions

Also available in: Atom PDF