GithubHelp home page GithubHelp logo

medhatdawoud / words-frontend Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 248 KB

Frontend site for words application to learn any language words with pictures

TypeScript 67.42% JavaScript 2.88% HTML 15.07% CSS 14.64%
bootstrap4 ng-cli ng2 rxjs scss

words-frontend's People

Contributors

angular-cli avatar mahaelbasuony avatar medhatdawoud avatar

Stargazers

 avatar

Watchers

 avatar

words-frontend's Issues

Create directive for count down for the limited characters number

this component should be called for example limit-length and should take some values from the attributes sent like data-max-length that take number and data-show-countdown that take boolean value,

pay attention to be tested in both description (300) and example (100) fields for words, and to be reusable not to have any specific data inside it, make it generic as much as possible.

Add validation for the add word form

As a user I should not be allowed to submit the add word form except with the following validations:

  1. Word: (only accept alphabets, don't accept special characters or numbers, required)
  2. Synonyms: (like word + max length of 20, cannot add empty, optional)
  3. Pronounce: (only accept lowercase alphabet and dashes, required)
  4. Description: (accept any thing, max length of 300, required)
  5. Image Url: (valid URLthat ends with [jpeg | jpg | png | gif | svg] , required at least 1 image)
  6. Example: (accept anything, max length of 100, required at least 1 example)
  7. Tags: (accept only alphabets and dashes, max length of 20, required at least 1)

About the error messages, it should be all in localisations so we can change them later or add different language easily, for simplicity add any message for now that express the error

Add internal scroll for each section

Implement each section like "add word" and the words list each with the height of the viewport so the user wouldn't use the browser scrollbar by any mean

Add functionality of autocomplete for the word input in add word form

As a user i should not be able to add a duplicated word, so as a solution we should provide the user with such auto complete for the word he/she is writing so if he found the word he can add what ever he/she wants and if not he can continue adding new word.

the autocomplete should not bind the word directly, it should appear like a dropdown list below the input control and if the user click on a word from the search list, then it should be bind to the form with all the data.

the user should be able to move between the search list with the keyboard arrows (up/down) for accessibility reasons.

User Profile

As a user i should be able to view my profile with my basic information in it.

with a side menu including:

  • basic information
  • my favourite words

design: TBD

Add sorting options for the words

words should be sortable with like a dropdown list of the options that can be sorted with, for now we need to sort them with only desc and asc orders, as we need to add in the top of the list a drop down list has 2 options as follow

[
  {'label': 'Newest first', 'value' : 'desc'},
  {'label': 'Oldest first', 'value' : 'asc'}
]

Favourite words

As a user i should be able to mark some words as favourite and remove it from favourite

Design: TBD

Create a navigation bar

As a user i should be able to switch between pages, for now we don't have except the all words page, but later on we will have more, and the login information.

the bar should include:

  • the language menu.
  • the login name of the user (that leads to his profile on click)
  • the logo of the site

Login with social networks

As a user i should be able to login with facebook and twitter through the login/registration page

Design: TBD

Add localisation support to the project

All labels and text that appear to the user in the project should come from localisation files, so it should be easier later on to change language or change messages for any purpose

Validation is not working properly for add word

To Reproduce:
focus on word field then switch to the pronounce field, no validation errors appear but if you go back to the word field and write something the validation error of require appears for the pronounce field

Create a generic separate modal component

we need to have a separate custom component for the modal that take all the required information as params and return the required modal, then we don't need to copy/paste the modal each time we need to create a new one

Make the add word form collapsable

make the add word form by default hidden in the right hand side and a button appear to open it, and it should slide from right to add a form and collapse it again after adding a word

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.