• Icon: Sub-Improvement Sub-Improvement
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • None

      For the physical data section, measurement fields are in mm.
      This certainly makes sense, but an option for entering in cm should be possible (and possibly also for inch?)
      It is better to have computers convert to mm than have humans (potentially) convert wrongly.

          [BB-620] Allow measurements in more formats

          Abhishek Abbi added a comment -

           

          also about the units,
          Are kg, lb and ft really required? Books don't come in such large sizes.

          Abhishek Abbi added a comment -   also about the units, Are kg, lb and ft really required? Books don't come in such large sizes.

          Abhishek Abbi added a comment -

          So for this issue you want to implement a regex only (breaks down numeric value and units) or do you want both regex and dropdown?
          Also there should be and info statement there for regex?

          Abhishek Abbi added a comment - So for this issue you want to implement a regex only (breaks down numeric value and units) or do you want both regex and dropdown? Also there should be and info statement there for regex?

          Monkey added a comment -

          I am in agreement with aerozol: each current input addon (the box with "mm" in it) should become a dropdown offering metric or imperial units, and changing either of the four dropdowns should change the selected unit system for all four.
          Example of what that would look like in my mind:

          What units do we want to show? For metric I suppose 'mm' and 'cm' are appropriate for measurements, and 'g' and 'kg' for weight.
          For imperial, 'in'  and 'ft' for dimensions, and 'oz' and 'lb' for weight?

          I think this is a separate issue and a separate ticket, but for completion:
          Currently we use number inputs (which means mobile users will see a number-only keyboard) which I think might prevent us from implementing the option to automatically recognize pasted units.
          However we could potentially use an input with a regex pattern and `inputmode="numeric"` : 

          <input type="text" inputmode="numeric" pattern="<regex here>" /> 

           

           

          Monkey added a comment - I am in agreement with aerozol: each current input addon (the box with "mm" in it) should become a dropdown offering metric or imperial units, and changing either of the four dropdowns should change the selected unit system for all four. Example of what that would look like in my mind: What units do we want to show? For metric I suppose 'mm' and 'cm' are appropriate for measurements, and 'g' and 'kg' for weight. For imperial, 'in'  and 'ft' for dimensions, and 'oz' and 'lb' for weight? I think this is a separate issue and a separate ticket, but for completion: Currently we use number inputs (which means mobile users will see a number-only keyboard) which I think might prevent us from implementing the option to automatically recognize pasted units. However we could potentially use an input with a regex pattern and `inputmode="numeric"` :  <input type= "text" inputmode= "numeric" pattern= "<regex here>" />    

          Aerozol added a comment -

          I also pictured the dropdown where the mm box is - but when you change it it changes it for all measurements on the page (maybe even remember it for next time you go to edit, but that might be for another ticket)

          Aerozol added a comment - I also pictured the dropdown where the mm box is - but when you change it it changes it for all measurements on the page (maybe even remember it for next time you go to edit, but that might be for another ticket)

          Abhishek Abbi added a comment -

          So in the current ui where the box for mm is you want to replace that with a dropdown?
          But there are 3 fields so 3 seperate dropdowns?
          Or you want to have a seperate box on top which sets it for all the values(I was thinking of this)

          Also I dont think the mm is really required to be shown in the frontend ig

          Abhishek Abbi added a comment - So in the current ui where the box for mm is you want to replace that with a dropdown? But there are 3 fields so 3 seperate dropdowns? Or you want to have a seperate box on top which sets it for all the values(I was thinking of this) Also I dont think the mm is really required to be shown in the frontend ig

          MonkeyPython added a comment -

          I was imaginging something like a box for entering the number, and then a dropdown list of measurements/formats. when both are filled the field gets confirmed
          and then the server behind the scene recalculates to mm
          the page would then show whatever you entered (and the format) with the mm in parantesis

          MonkeyPython added a comment - I was imaginging something like a box for entering the number, and then a dropdown list of measurements/formats. when both are filled the field gets confirmed and then the server behind the scene recalculates to mm the page would then show whatever you entered (and the format) with the mm in parantesis

          Aerozol added a comment -

          Just capturing our IRC discussion: I think a dropdown (or slider or w/e) is fine, but I think putting it in the middle of the editing page will make the page look very busy, for something that may not be used much. If you have any ideas to hide it a bit or move it out of the way I think it could work.

          I've also linked our other designer, monkey, here from IRC, since BB is more his baby

          Aerozol added a comment - Just capturing our IRC discussion: I think a dropdown (or slider or w/e) is fine, but I think putting it in the middle of the editing page will make the page look very busy, for something that may not be used much. If you have any ideas to hide it a bit or move it out of the way I think it could work. I've also linked our other designer, monkey, here from IRC, since BB is more his baby

          Abhishek Abbi added a comment -

          If you guys think that's a good idea lmk so I can start working upon it

          Abhishek Abbi added a comment - If you guys think that's a good idea lmk so I can start working upon it

          Abhishek Abbi added a comment -

          I was thinking instead of a dropdown(which is tiresome indeed I agree)

          We can put a long rectangular button above the dimensions section containung cm mm inch option

           

          As all length breadth and width will be entered in the same units only. Similarly for grams and ounces for book weight (as the US people are weird with units)

          Abhishek Abbi added a comment - I was thinking instead of a dropdown(which is tiresome indeed I agree) We can put a long rectangular button above the dimensions section containung cm mm inch option   As all length breadth and width will be entered in the same units only. Similarly for grams and ounces for book weight (as the US people are weird with units)

          Aerozol added a comment -

          A big advantage (for something repetitive and time consuming like editing) is that you can do it quickly while editing using the keyboard. Rather than clicking on a drop down, selecting the unit, and then having to click back again, you can just type 'cm' at the end, and tab to the next field.
          But it's just a suggestion, it would also pair well with a dropdown where we currently display [mm]

          Aerozol added a comment - A big advantage (for something repetitive and time consuming like editing) is that you can do it quickly while editing using the keyboard. Rather than clicking on a drop down, selecting the unit, and then having to click back again, you can just type 'cm' at the end, and tab to the next field. But it's just a suggestion, it would also pair well with a dropdown where we currently display [mm]

            Unassigned Unassigned
            ApekattQuest, MonkeyPython MonkeyPython
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:

                Version Package