Add options for the cards #93

Merged
sb10q merged 42 commits from esavkin/web2019:85-variants into master 2023-11-28 15:32:34 +08:00
Member

Closes #85
Closes #80

Example:

{
   "items":[
      {
         "pn":"1124",
         "options":{
            "variant":"master",
            "ipv4":"192.168.1.75/24",
            "ipv6":{
               "text":"",
               "checked":false
            },
            "mac":{
               "text":"",
               "checked":false
            },
            "ext_clk":{
               "text":"125 MHz",
               "checked":false
            }
         }
      },
      {
         "pn":"2118",
         "options":{
            "out_first_group":true,
            "out_second_group":true
         }
      },
      {
         "pn":"4456",
         "options":{
            "ext_clk":{
               "text":"125 MHz",
               "checked":false
            }
         }
      }
   ],
   "type":"rack"
}

TODO:

  • optimize UX on touchables/smaller screens
  • add additional options for cards (???)
  • add cross-cards interaction possibility (make only first ttl default input, suservo, etc...) (???)
  • polishing
  • integration with other scripts
  • ???

Suggestions and findings are welcome!

Closes #85 Closes #80 Example: ``` { "items":[ { "pn":"1124", "options":{ "variant":"master", "ipv4":"192.168.1.75/24", "ipv6":{ "text":"", "checked":false }, "mac":{ "text":"", "checked":false }, "ext_clk":{ "text":"125 MHz", "checked":false } } }, { "pn":"2118", "options":{ "out_first_group":true, "out_second_group":true } }, { "pn":"4456", "options":{ "ext_clk":{ "text":"125 MHz", "checked":false } } } ], "type":"rack" } ``` TODO: * ~~optimize UX on touchables/smaller screens~~ * ~~add additional options for cards (???)~~ * ~~add cross-cards interaction possibility (make only first ttl default input, suservo, etc...) (???)~~ * ~~polishing~~ * ~~integration with other scripts~~ * ??? Suggestions and findings are welcome!
Owner

Your screenshot shows an IP address for Mirny and an external clock for BNC-DIO.

Your screenshot shows an IP address for Mirny and an external clock for BNC-DIO.
Owner

And I don't think we want configurable MAC addresses in the store.

And I don't think we want configurable MAC addresses in the store.
Author
Member

Your screenshot shows an IP address for Mirny and an external clock for BNC-DIO.

Actually no, it was just possible to open several popups at the same time and the data it showed is actually correct. Now it closes popup on any click outside of it (+ on scroll for summary). Here are the updated screenshots (also added screenshot from ipad simulation).

> Your screenshot shows an IP address for Mirny and an external clock for BNC-DIO. Actually no, it was just possible to open several popups at the same time and the data it showed is actually correct. Now it closes popup on any click outside of it (+ on scroll for summary). Here are the updated screenshots (also added screenshot from ipad simulation).
esavkin force-pushed 85-variants from 019036ca5f to 4ff436dfe4 2023-09-08 18:29:25 +08:00 Compare
Author
Member

It can be shown in the quote as this section, coming after crate table: image

It can be shown in the quote as this section, coming after crate table: ![image](/attachments/12e0860a-1059-43b7-bb75-fe966e0efc4c)
Owner

Good!

Good!
esavkin force-pushed 85-variants from cb616e4917 to b4989500ec 2023-09-25 16:48:06 +08:00 Compare
esavkin force-pushed 85-variants from 2e65aa48d3 to a207d4662f 2023-09-27 17:39:30 +08:00 Compare
esavkin changed title from WIP: Add options for the cards to Add options for the cards 2023-09-28 10:17:48 +08:00
esavkin force-pushed 85-variants from 5b5a2cf230 to d3a5ee8a3d 2023-10-11 11:03:44 +08:00 Compare
esavkin force-pushed 85-variants from d3a5ee8a3d to 8f014d00e9 2023-10-11 13:01:10 +08:00 Compare
esavkin force-pushed 85-variants from 8f014d00e9 to beac4a1d33 2023-10-18 10:34:13 +08:00 Compare
esavkin force-pushed 85-variants from 21b6df91e0 to 6596ba0f77 2023-11-07 17:05:13 +08:00 Compare
esavkin force-pushed 85-variants from 6596ba0f77 to 851b9014fb 2023-11-08 12:23:45 +08:00 Compare
Author
Member

Better to be reviewed and merged, because there were already cases where this feature would greatly help, and seems they will happen again

Better to be reviewed and merged, because there were already cases where this feature would greatly help, and seems they will happen again
Owner

It's called "optical fiber" not "optic fiber".

It's called "optical fiber" not "optic fiber".
Owner

There should be a note that most of those options can be modified after shipment.

There should be a note that most of those options can be modified after shipment.
Owner

The configure button layout is completely different from the remove button layout. Why?

The configure button layout is completely different from the remove button layout. Why?
Owner

"By default, we use the AD9910 as it provides more features. If you need the higher frequency resolution of the AD9912, leave us a note."
This should be removed if we have a AD9912 config option.

"By default, we use the AD9910 as it provides more features. If you need the higher frequency resolution of the AD9912, leave us a note." This should be removed if we have a AD9912 config option.
Owner

Alternatively just have two different Urukul cards for AD9910 and AD9912. They were merged into one to save space, but this no longer an issue since we are grouping cards by function.

Alternatively just have two different Urukul cards for AD9910 and AD9912. They were merged into one to save space, but this no longer an issue since we are grouping cards by function.
Owner

IP address on Stabilizer and derived cards should be configurable.

IP address on Stabilizer and derived cards should be configurable.
Owner

USB stick should be a global setting, not tied to Kasli. What should we do with a RFQ containing a Kasli with the USB stick option and another one without?

Maybe remove it for now and do it with the other global option NUC.

USB stick should be a global setting, not tied to Kasli. What should we do with a RFQ containing a Kasli with the USB stick option and another one without? Maybe remove it for now and do it with the other global option NUC.
Owner

Okay I see it disables it on the next Kasli. Weird design still. Those options rather belong under the card list.

Okay I see it disables it on the next Kasli. Weird design still. Those options rather belong under the card list.
Owner

If there is a warning on the card, it conflicts with the options button and the options button cannot be clicked.

If there is a warning on the card, it conflicts with the options button and the options button cannot be clicked.
Owner

Options missing for 2245 LVDS-TTL

Options missing for 2245 LVDS-TTL
Author
Member

The configure button layout is completely different from the remove button layout. Why?

To highlight the feature of the card (some cards are not customized).
Also the behavior should be different from removal button - no hover interactions, since the popup requires more time to work with.

> The configure button layout is completely different from the remove button layout. Why? To highlight the feature of the card (some cards are not customized). Also the behavior should be different from removal button - no hover interactions, since the popup requires more time to work with.
Owner

HD68 cable length can be selected, but not optical fiber length.

HD68 cable length can be selected, but not optical fiber length.
Author
Member

If there is a warning on the card, it conflicts with the options button and the options button cannot be clicked.

It is intentional, and doesn't really conflict with the logic of the cards - standalonable cards don't have such warnings anyway. So users should arrange cards properly first, and then configure the options

> If there is a warning on the card, it conflicts with the options button and the options button cannot be clicked. It is intentional, and doesn't really conflict with the logic of the cards - standalonable cards don't have such warnings anyway. So users should arrange cards properly first, and then configure the options
esavkin force-pushed 85-variants from 851b9014fb to 937a767e0a 2023-11-21 14:35:01 +08:00 Compare
esavkin force-pushed 85-variants from 937a767e0a to f11ebc1152 2023-11-21 15:30:49 +08:00 Compare
esavkin added 1 commit 2023-11-21 16:48:26 +08:00
b7087711aa Replace axios with built-in Fetch API
Decreases size of the bundle from 375 to 347 KB

Signed-off-by: Egor Savkin <es@m-labs.hk>
Owner

That sounds like a pretty user-hostile decision. Why not just put the warning somewhere else?

That sounds like a pretty user-hostile decision. Why not just put the warning somewhere else?
esavkin added 1 commit 2023-11-27 17:12:25 +08:00
38541f8928 Combine warning and options iconed buttons in one line
Signed-off-by: Egor Savkin <es@m-labs.hk>
Author
Member

Redid the buttons like on the screenshot

Redid the buttons like on the screenshot
Owner

Are all the other items addressed?

Are all the other items addressed?
esavkin added 1 commit 2023-11-28 12:16:21 +08:00
Author
Member

Are all the other items addressed?

Yes

> Are all the other items addressed? Yes
Owner

image

Variant should be changed to "DRTIO role". Terminology has to be consistent.

![image](/attachments/0e15f2b1-24f1-4ff6-9fb2-fec4ea5ef903) Variant should be changed to "DRTIO role". Terminology has to be consistent.
esavkin added 1 commit 2023-11-28 14:41:15 +08:00
e7cb6619e3 Update variants -> drtio role and add a tip
Signed-off-by: Egor Savkin <es@m-labs.hk>
sb10q merged commit 9966593166 into master 2023-11-28 15:32:34 +08:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/web2019#93
No description provided.