Code Monkey home page Code Monkey logo

xals's People

Contributors

carlota10 avatar lint-action avatar miquelvir avatar

Watchers

 avatar

Forkers

carlota10

xals's Issues

restart tables

current behaviour
tables can't be restarted

desired behaviour

  • in the table action menu, a 'restart' option appears
  • clicking the 'restart' option sends a message to the real-time API
  • on table restart, the backend server removes all of the courses and sets it back to the initialization state
  • all other clients are notified through the real-time API and update the table

localization

current behaviour
the app is in English, support for localization is in place

desired behaviour
all texts are localized to spanish

prefix missing

current behaviour
in the time profile section of the asmin panel, the two inputs do not have a "warning" and "alarm" prefix

desired behaviour
the two inputs have a prefix or label with "alarm" and "warning"

docs/basics

current
the docs are not relevant to Xals

desired
the docs should have articles for the basic concepts in Xals

useful code
this lives here: docs/docs/basics

acceptance criteria

  • the docs have a new article in basics explaining what is a 'course'
  • the docs have a new article in basics explaining what is a 'restaurant'
  • the docs have a new article in basics explaining what is a 'table'
  • the docs have a new article in basics explaining what is an 'administrator
  • the docs no longer have other sample articles in the basics section (not relevant to Xals)

not found page

current
there is only a placeholder

desired
there should be a clean 404 page

useful code
web_app/src/pages/notFoundPage

useful resources
we can use an illustration of https://undraw.co/search

acceptance criteria

  • UI

smaller cards

current behaviour
cards take up too much space on screen

desired behaviour

  • cards are smaller (probably make table number smaller) to have more cards fit the screen at the same time

delete tables

current behaviour
tables can't be deleted

desired behaviour

  • in the table action menu, a 'delete' option appears
  • clicking the 'delete' option sends a message to the real-time API
  • on table delete, the backend server removes the table altogether
  • all other clients are notified through the real-time API and update the table

useful code
table finalize

update SQLAlchemy models

current
the models are placeholders from another project

desired
the models are the ones designed to represent the current problem (see /architecture/readme.md)

useful code
this lives here: server/models
sample seed: https://github.com/miquelvir/centrifuga4/blob/main/development/manual_db_utils/generate_sample_db.py
empty seed: https://github.com/miquelvir/centrifuga4/blob/main/development/manual_db_utils/generate_empty_db_heroku.py

acceptance criteria

  • the models in server/models have been updated
  • a sample seed script has been created in development/manual_db_utils/sample_seed.py
  • an empty seed script has been created in development/manual_db_utils/empty_seed.py

table cards UI is improved

current
the UI is just the barebones component

desired
the UI looks nice and modern

useful
go to /app/restaurant in the browser to see a sample use of the tiles
this code lives in web_app/src/pages/restaurantDashboardPage/restaurantDashboardPage.js

  • the card takes different colors (green, yellow/orange, red) according to the table.status (['ok', 'warning', 'late'])
  • the card displays the time from the last served course
  • the card displays the table number

docs/how-tos

current
the docs are not relevant to Xals

desired
the docs should have articles for the basic concepts in Xals

useful code
this lives here: docs/docs/how-tos

acceptance criteria

  • the docs have a new article in how-tos explaining 'how to create a restaurant'
  • the docs have a new article in how-tos explaining 'how to create a new access token'
  • the docs have a new article in how-tos explaining 'how to access a restaurant using an access token'
  • the docs have a new article in how-tos explaining 'how to add root admins'
  • the docs have a new article in how-tos explaining 'how to add restaurant admins'
  • the docs no longer have other sample articles in the how-tos section (not relevant to Xals)

[tech debt] improve realtime API queues

curent behaviour
a state creates a queue for processing each new message

desired behaviour

  • either this is encapsulated in a custom hook with simple call backs, or a better alternative is found without the queue hack

default tables are always the same

current behaviour
always the same default tables are used, not the ones from the admin panel

desired behaviour
the default tables selected in the admin panel are used in the frontend

sort default tables

current behaviour
default tables are not sorted

desired behaviour

  • default tables are sorted

terms & conditions

current
we have no T&Cs

desired
we should have some basic T&Cs

acceptance criteria

  • there is a React page with all the T&Cs
  • new users are prompted to check the T&Cs checkbox
  • a link to T&C is available in the footer

license

current
we have no license

desired
we should adhere to some license (investigate which one)

restaurant dashboard page

current
there is only a placeholder

desired
there should be the designed dashboard

useful code
web_app/src/pages/restaurantPage

acceptance criteria

  • UI
  • uses backend API
  • #15

add web_app tests to CI pipeline

current
no frontend tests are run

desired
cd web_app jest is run as an action part of our CI pipeline

useful code
web_app

acceptance criteria

  • tests are run on PR
  • tests are run on commit

stop prompting for confirmation

current behaviour
many actions of the action menu require confirmation

desired behaviour

  • cancelling a table should require confirmation
  • #33

Change primary color of docs

current
the docs use an orange primary colour

desired
the docs use our new primary colour

  • discussion: which colour should be the primary colour?
  • the docs use the new primary colour

frontend architecture documentation

current
not much is discussed

desired
a more complete explanation is added once the frontend is tackled

useful code
this lives here: architecture/readme.md

acceptance criteria

  • the docs in the frontend section of architecture/readme.md have been updated

sort button

current behaviour
the sort button does not match with the current sort provider

desired behaviour
the icon matches the current search provider

next course action

current behaviour
a button is shown in the actions menu with "1st course", "2nd course" and "desserts"

desired behaviour
a button is shown in the actions menu with the label "next course"

all cards should have the same size

current behaviour
the last row grows to fill all the width evenly

desired behaviour
items in the last row have the same width as all other items

technical details
we must switch from using flex to grid with responsive columns

admin dashboard page

current
there is only a placeholder

desired
there should be an admin dashboard page as designed

useful code
web_app/src/pages/adminDashboardPage

acceptance criteria

  • UI
  • uses backend API

notification panel

waiters need to be warned when the courses from a table are ready to be served.

create a dashboard to visualize notifications.

  • able to switch between kitchen and waiters dashboard.
  • linked actions between dashboards
  • a card per table notification

update graphic resources to Xals own corporate image

current
the favicon and logo are placeholders

desired
the favicon and logo should be the corporate image of the Xals project

useful code
this lives here: graphic-resources

acceptance criteria

  • the resources in graphic-resources have been updated
  • the resources in docs/static/img have been updated
  • the resources in web_app/public have been updated

update docs main page

current
the docs show the items "pre-enrolment", "payments" and "attendance", and their descriptions.

desired
the docs show updated titles and descriptions for Xals

useful code
this lives here: docs/src/components/HomepageFeatures.js

acceptance criteria

  • the docs have updated feature titles (relevant to Xals)
  • the docs have updated feature descriptions (relevant to Xals)

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.