GithubHelp home page GithubHelp logo

ibm / libras-ui Goto Github PK

View Code? Open in Web Editor NEW
3.0 11.0 6.0 574 KB

User interface for the Libras translation service

License: Apache License 2.0

HTML 4.72% JavaScript 85.45% SCSS 9.82%
ui translation spoken signed language react carbon

libras-ui's Introduction

Libras UI

User interface for the Libras translation service between a spoken and a signed language.

Prerequisites

Setup

Install project dependencies:

npm install

Create an .env file to mock the Libras service or specify the API URL:

REACT_APP_API_MOCK=FALSE
REACT_APP_API_SERVICE_URL=http://localhost:3000

Customize

Create an .env file to update the application running port. The variable name and default value is:

PORT=3000

Run

Start the application in the development mode:

npm start

Test

Launch the test runner in the interactive watch mode:

npm test

See the section about running tests for more information.

Build

Build the app for production to the build folder:

npm run build

It correctly bundles React in production mode and optimizes the build for the best performance. The build is minified and the filenames include the hashes.

libras-ui's People

Contributors

arkeologist avatar asharonbaltazar avatar filipecorrea avatar rdavoli avatar snam8115 avatar stevemar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libras-ui's Issues

Change to camelCase on iframe element

Describe the bug
React is reporting the lack of camelCase in iframe

To Reproduce
Steps to reproduce the behavior:

  1. Open the browser
  2. Check dev logs
  3. See error

Expected behavior
The logs should be free of React errors

Screenshots
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • OS: [Windows 10]
  • Browser [Edge]
  • Version [v85]

Implement copy to clipboard button

Is your feature request related to a problem? Please describe.
I'm always frustrated when I need to select all text to copy it to the clipboard.

Describe the solution you'd like
I would like to have a button (copiar texto) that allows me to easily copy the revised text to the clipboard.

Additional context

  • If the text area is empty, the button should be disabled
  • If there's text in the text area, the button should be enabled

d42f2980-8fb3-11ea-8c66-2e369de7d6a9

Translate UI to English

Is your feature request related to a problem? Please describe.
External collaborators are having some difficulties with the Portuguese layout.

Describe the solution you'd like
The UI should be translated to English for the MVP.

Describe alternatives you've considered
#29

Connect to the Libras service

Describe the bug
The existing code needs to connect to the refactored Libras service.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the home page;
  2. Try to translate a text like "Cap I need because sun strong very.";
  3. See error.

Expected behavior
This UI must be able to connect to a local instance of the Libras service.

Screenshots

Screen Shot 2020-09-11 at 17 24 29

Desktop (please complete the following information):

  • OS: macOs
  • Browser: Chrome

Perform user tests - 2

  • Create test script
  • Schedule test with users
  • Perform test with users
  • Compile results
  • Adjust mockup
  • Validate with the team

Buttons disappears after clicking

Describe the bug
There's a problem with buttons style that are making them disappear after clicked.

To Reproduce
Steps to reproduce the behavior:

  1. Write any text on the left text area;
  2. Click on 'revisar texto' button;
  3. See error.

Expected behavior
After clicked, the buttons should return to its initial state following Carbon's guidelines.

Screenshots

Screen Shot 2020-09-08 at 17 03 28

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 85.0.4183.83

Activate and deactivate buttons

Before the user type any text into the left text box, the "Revise Text", "Clear" and "Copy" ("Revisar Texto", "Limpar Texto" e "Copiar Texto") should be read-only displayed (disabled), in gray:

3f091a80-ccf0-11ea-8479-0e827c8dd512

When the user start typing int left text box, the "Revise Text" ( "Revisar Texto") button turns blue (#0F62FE), the "Clear" ("Limpar Texto") turns blue (#78A9FF) and the "Copy" "Copiar Texto" button remain gray:

43353800-ccf0-11ea-9c1d-fff7d88226fa

After the user clicks on "Revise Text" ("Revisar texto") and the revised text appears into right box, the "Copy" ("Copiar Texto") button turns blue (#78A9FF):

4b8d7300-ccf0-11ea-8546-e3c90d3df20f

After the user clicks on "Clear" ("Limpar texto"), the "Revise" ("Revisar Texto") button and even the "Clear" ("Limpar Texto") are read-only again(disabled).

Loading blur needs to cover entire page

Steps:

  1. Open Libras app
  2. Enter a text to be translated and hit "Review" button

Actual Result: Blur with loading doesn't cover entire page
Expected Result: Blur should be covering the entire page (at the bottom)

image

Missing placeholder on "Revised text" textarea

Describe the bug
There must be a placeholder under the "Revised text" textarea

To Reproduce
Steps to reproduce the behavior:

  1. Open Libras app
  2. Verify placeholder in read-only textarea

Expected behavior
There must be a placeholder "Your revised text will appear here" on "Revided text" textarea
image

Add A flag for the reviewed text

Deaf people will be able to understand if the review is right for their context if they see the signs of the review
-still being designed

Corrections to the translated labels

Describe the bug
We need better wording the Libras app

To Reproduce
Steps to reproduce the behavior:

  1. Open Libras app
  2. Verify English translations

Expected behavior
"Your text (sign language)" should be "Your text" - sign language is not how they call its writing, they are writing in Portuguese or English, they just dont have proper grammar. Sign language is done with their hands =)

"Review" button should be "Review Text" for more clarity of purpose
"Clear" button should be "Clear Text" for more clarity of purpose
"Copy" button should be "Copy Text" for more clarity of purpose

Screenshots
image

Text color makes it unreadable

Describe the bug
The color that the text is using makes it unreadable in the right text area.

To Reproduce
Steps to reproduce the behavior:

  1. Write any text on the left text area;
  2. Click on 'revisar texto' button;
  3. See error.

Expected behavior
The text should be using the recommended color theme from Carbon design. For light themes the text color should be black.

Screenshots

Screen Shot 2020-09-08 at 17 03 07

Screen Shot 2020-09-08 at 17 03 23

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 85.0.4183.83

Perform user tests

  • Create test script
  • Schedule test with users
  • Perform test with users
  • Compile results
  • Adjust mockup
  • Validate with the team

Carbon colors import is failing

Describe the bug
Carbon colors SCSS import is failing during React build.

To Reproduce
Steps to reproduce the behavior:

  1. Run npm run build
  2. See error:
Failed to compile.

./src/App.scss
@import "@carbon/colors/scss/colors";
^
      File to import not found or unreadable: @carbon/colors/scss/colors.

Expected behavior
React build should run without errors.

Implement UI localization

Is your feature request related to a problem? Please describe.
As a user, I would like to be able to change the UI to other languages like English, Spanish, Portuguese...

Describe the solution you'd like
The application should be able to detect my system/ browser preferred language and update itself to reflect it.

Developers should have a way of mocking the API

Is your feature request related to a problem? Please describe.
I'm always frustrated when the API is mandatory to run the project for local development.

Describe the solution you'd like
Developers should have a way of mocking the API if they're only developing the UI.

Add button to clear text area

Is your feature request related to a problem? Please describe.
As a user, I'm always frustrated that I need to select all text and delete it to start over.

Describe the solution you'd like
It would be good to have a way of clearing the text area with a single click:

  1. The user inserts text in left text area;
  2. The user clicks on 'limpar texto' button;
  3. The text area returns to its initial state (without any text in).

Additional context

ec0aab80-8fbb-11ea-9f1e-690a1ef46b26

https://ibm.invisionapp.com/d/main?redirHash=#/console/15359913/319489561/preview?scrollOffset=538

Remove HKBase dependency

The API has an external database dependency. We need to remove it and use our own database as a service.

The tool will give an option that allows the user to send the sentence so that it can be analysed and translated later if it is not translated / corrected in real time - user asks for translation

  • Have an option on the screen where none of the translations meets the expectations - user requires translation
  • Create endpoint for the new translation submission.
  • Have a list of submissions / requests for someone to approve

3c820900-8fbc-11ea-8b8e-76550ce9435e

https://ibm.invisionapp.com/d/main?redirHash=#/console/15359913/319489570/preview?scrollOffset=538

Create mid or hi-fi mockups

  • Analyze test results
  • Re-define feature list
  • Design mid-fi or hi-fi mockups
  • Validate with team
  • Update navigable prototype

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.