Coder Social home page Coder Social logo

savagelearning / machete-ui Goto Github PK

View Code? Open in Web Editor NEW
4.0 5.0 5.0 10.96 MB

A re-write of the Machete app in Angular12 & Typescript

Home Page: https://github.com/savagelearning/machete

License: GNU General Public License v3.0

TypeScript 24.05% HTML 5.70% JavaScript 0.21% CSS 55.79% SCSS 14.21% Dockerfile 0.05%
angular2 typescript primeng

machete-ui's Introduction

MacheteUi

This project is the re-write of the UI for the Machete project. Currently we're using the issuer tracker at the Machete project site, but will migrate UI issues to this project soon.

Development server

The project uses npm run dev with the standard Angular CLI dev server. The environment is configured to use our cloud test server for identity and API calls. You can authenticate with google or facebook for testing.

Running unit tests

Run ng test to execute the unit tests via Karma. I suggest using ng test -sm=false to make the error messages better.

Running end-to-end tests

Run npm run cypress:open to execute the end-to-end tests via. Before running the tests make sure you are serving the Machete app on :4213. Naturally this also requires running the Angular app via npm run dev. Please see our developer guide to see how we approach testing.

Further help

See the main project Machete project for issue and project information.

machete-ui's People

Contributors

angular-cli avatar brian-ritchie avatar chaim1221 avatar dependabot[bot] avatar egeexyz avatar esteban-gs avatar jcii avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

machete-ui's Issues

Content to make configurable from the Configs endpoint

Welcome page

[x] /welcome
image

introduction page

[x] /online-orders/introduction
image

The infro-confirm list can be stored as a large json blog. MS SQL server supports JSON_VALUE, so that the json is validated

[x] /online-orders/work-order
image

transport pricing needs toggle to enable/disable, and edit the link

[x] /online-orders/work-order
image

Tie transportation method message in order-confirm page to work-order choices (see previous screenshot)

[x] online-orders/order-confirm
image

Transport info based on static transportation provider ID

What

<div class="p-field p-col-12" *ngIf="selectedTransport==32">
<p-fieldset legend="Transportation Method Note">
<p>
Before picking a Casa Latina Van drop off time, please check for available times using the following calendar<br/>
<a href="https://calendar.google.com/calendar/[email protected]&ctz=America/Los_Angeles" target="_blank">
For Van transport, select an available time slot.
</a> <br/>
Arrival times are estimates and can be adjusted by CL dispatchers due to traffic, or high demand, etc.
</p>
</p-fieldset>
</div>

Add link to app privacy policy

We need to add a link our privacy policy which is currently hosted in github: https://github.com/savagelearning/Machete/wiki/privacy-policy .

This change is primarily to comply with Meta's privacy policy requirement found here: https://developers.facebook.com/terms/dfc_platform_terms/#privacypolicy

It mentions that it should be generally accessible, so my guess is that we can add a link on the app footer.

Acceptance criteria:

  • We have a globally accessible link to our privacy policy that links to the github wiki link above on a separate browser tab,
  • We have a privacy link on the login cshtml page

App bundle is ~ 10MB

  • Remove unused dependencies
  • Use Luxon over deprecated moment
  • Assets is over 4MB

Online Orders: USPS zip codes format is unnecessary

What

Online orders step 3 (Site Details) allows either simple zip codes (98144) or USPS-formatted zip codes (98144-2147). If both formats are not in the transport providers area list, transport rule validation fails.
image
image

Reproduce

  1. Go to online hiring portal
  2. fill out the form and on step 3, enter 98144-2147 as the zip code
  3. When you click on next, you should see the transport rules validation error message above

Why

Supporting the USPS format is unnecessary. Should only support simple Zip format (98144)

Where

Online hiring, step 3 (site details)

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.