GithubHelp home page GithubHelp logo

convert's People

Contributors

aniket21mathur avatar chimosky avatar cristhofert avatar kushagra98 avatar leonardcj avatar nswarup14 avatar pootle-sugarlabs avatar quozl avatar rbuj avatar walterbender avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

convert's Issues

Convert button should be automatic

Reproducer: enter a value for conversion, press convert, enter a different value.

Problem: result displayed is inconsistent with entered value.

Proposed solution: remove the convert button and do the conversion on each change to the value.

Save last used dimension and units in journal object

Reproducer: start, change dimension and units, stop, restart from journal entry.

Expected: dimension and units preserved.

Observed: dimension and units are reset to Length - Cables.

At the same time, add a reset button to restore dimension and units to defaults.

Regressions on OLPC XO

With SUGAR_SCALING of 100, and org.sugarlabs.font default-size set to 7.0, on 1200x900 resolution, several problems appear.

  • the dimensions radio buttons do not fit on the toolbar, forcing the stop button to a submenu.
  • two of the new icons do not render properly,
  • entering a conversion causes the main window to grow.

Tested with 5ad6553.

Screenshot of Convert Activity

Screenshot of _Convert Activity__1

Add edit toolbar and buttons

As of 7bb29e4 the result can be copied by selecting it and using a mouse drag or ctrl+c shortcut. A text clipping can be dragged from the frame into the input field. But there's no toolbar buttons.

Add an edit toolbar and buttons. See toolkit and other activities for an example edit toolbar and icons.

Value entry does not need spin buttons

To the left of the Convert button is a value entry widget.

On the GTK+ 2 version, this was rendered with spin buttons; up and down arrows vertically aligned.

On the GTK+ 3 version, this is rendered with spin buttons; - and + horizontally aligned.

However, spin buttons are not needed, are a distraction, and so a plain unadorned text entry can be used instead.

Activity review comments

  • starting the activity shows no units selected,
  • switching between unit ranges using the toolbar doesn't select any default units,
  • entering 9 shows 9.0 ~ -9.00000000001, it should be 9 ~ 9,
  • there's no tooltip for the swap units button,
  • swap of units changes to a different value with too many significant digits (e.g. select inches to millimetres, enter 1.0, click on swap, the entry box now contains 0.0393700787402 and the conversion 0.00155000310001)

Use better defaults for units

On start units default to Length - Cables.

This is not a useful unit, and distracts by introducing a unit that learners are unlikely to encounter.

The units should either;

  • not default, i.e. to an empty ComboBox item,
  • default to an appropriate localised value taken from the po/ files, or;
  • default to metric system.

Unit spinners empty

Unit spinners on top far left and far right can be selected, but they don't show the current unit name.

screenshot of convert activity

Two entry boxes would remove need for swap button

At the moment the activity has;

  • source unit (a menu),
  • destination unit (a menu),
  • source value (centered entry),
  • source value and destination value (centered label),
unit swap unit
value
value - value

An alternate design could be;

  • source value (an entry on the left of display),
  • source unit (a menu to the right or below the source value),
  • destination value (an entry on the right of display).
  • destination unit,
value unit value unit

This would;

  • make it clear what the unit is for each value,
  • allow changes to the destination value,
  • remove the need for a swap button.

Discuss?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.