Giter VIP home page Giter VIP logo

bill-organizer's People

Contributors

chaejinkeyne avatar dev-seahouse avatar eatedcookie avatar teddyhartanto avatar weitsang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

janakae

bill-organizer's Issues

search and make cross-ide/platform auto-format /code style/ configs for the team

definition of done:

  1. the config file is supported by sublime text, phpstorm, atom , bracket
  2. the config file is supported by npm so that code formatting and style check can be automated prior git push. (this is to prevent unnecessary git conflicts due to an extra space here and there)
  3. code style/format testing can be performed automatically via laravel mix command, e.g npm run production. (this is to provide extra protection against stuff like 'oh no i forgot to auto-format before commit')
  4. 1-4 is fulfilled for each of the language/syntax
    4.1 javascript(es6) /jquery
    4.2 sass(sassy css)
    4.3 blade/html5
    4.4 php

alternative: take sample config file from any 1 formatter, convert to the config required by our favorite editors + npm build individually

hook up semantic ui with laravel

definitions of done:

  1. semantic ui sass files are able to be automatically compiled into public/css folder by running npm run production
  2. semantic html elements styled with semantic ui are able to be displayed as expected with no error (as shown in chrome developer console )

display pdf preview when upload a document

  • drag and drop file into upload area
  • front end format validation/rejection/message
  • do not upload yet and display pdf preview of file
  • hook up preview area to extract pdf, return selection object
  • send server upload request
  • server store file in session
  • server takes in file, duplicate check, validation -> store pesistence
  • .done(doAjaxUpload()).fail(showFailureMessage()).sucess(otherActions())

search and configure linters

Definition of done:

  1. the linter is able to be run via nodejs npm command. ideally via laravel 5.4 mix (webpack base)
  2. the linter can correctly detect syntax errors under laravel environment
  3. the linter is configured in circleci to be run before deploy, reject if lint failed
  4. 1-3 is fulfilled for the following language
  • sass
  • blade
  • javascript(es6)/jquery
  • php
  1. (optional) the linter and its config file is available as plugin in sublime text, atom, phpstorm and bracket, or most of them

configure database

definition of done:

  1. a central database is configured and open for connection
  2. everyone in the team is able to connect to database via provided db address, username and password
  3. database related operations can be performed by laravel using Eloquent with no DB connection exception
  4. circle ci is able to access the configured database ( proper settings are configured in circle.yml file)

Make circle.yml the single source of CircleCI configs

Some settings are specified in circle.yml, some are specified in the project settings in circle website. Let's not have the configurations all over the place, which is extremely confusing. Extract the configs in website to circle.yml.

Extract constants in backend

Some code in backend reference the same string literal in multiple places. This is a recipe for disaster. When we decide to change the string one day, we'll have to make sure that we change it in all occurrences in the code. It's better to extract the constants in one place.

landing page/dashboard fixes

  • fix the problem of icon image not loading

Landing Page

  • automatically redirect to '/dashboard' if user is logged in

Dashboard

  • add "upload bill" button
  • add clickable placeholder billing organisation that will link to billing organisation page

Code syntax cleanup

I have came to realize that I might have used the wrong naming conventions for PHP

convert containers to padded segments

content containers are currently manually padded to make space for the fixed top menu
switch to using semantic's padded segments for more convenience! (ノ^ヮ^)ノ*:・゚✧

Re: asset folder

public folder is excluded from ci pipeline, however, icons/images are manually placed inside public folder(not compiled)

image

Re: Secure asset vs asset

asset()

Generate a URL for an asset using the current scheme of the request (HTTP or HTTPS):

$url = asset('img/photo.jpg');

secure_asset()

Generate a URL for an asset using HTTPS:

echo secure_asset('foo/bar.zip', $title, $attributes = []);

Discovered bugs and TODOs when writing tests

I'll separate the task one-by-one later but for now I'll dump everything here

TODO:

  1. Fix bug in UpdateRecordForm
  2. UpdateRecordForm's authorization and validation rules
  3. Fix bug in RecordController upload_file
  4. Decide once and for all the type of Record's issue_date, due_date, and period (this is causing a lot of overhead)
  5. When using factory(Record::class), need to adjust due_date to matach the record_issuer type -> a lot of code and repeated in UserRecordIssuerControllerTest as well as RecordControllerTest (fix the pitfall of the Record Factory)
  6. Update should redirect to record issuer page

find (or make) beautiful 403/404 etc error pages

description:

we need to display user proper error messages such like sorry you are not authorised, page not found , oops there's some error to use instead of currently showing wall of codes. before this can be done these user friendly error pages need to be prepared

definition of done:

  • the pages conform modern design
  • place the html files with inline view inside resources/views folder

wall or warning when running php artisan migrate

php version : 7.1.2
OS: archlinux

PHP Notice:  Undefined index: port in /home/kenan/gitrepos/sites/bill-organizer/config/database.php on line 7
PHP Stack trace:
PHP   1. {main}() /home/kenan/gitrepos/sites/bill-organizer/artisan:0
PHP   2. Illuminate\Foundation\Console\Kernel->handle() /home/kenan/gitrepos/sites/bill-organizer/artisan:35
PHP   3. Illuminate\Foundation\Console\Kernel->bootstrap() /home/kenan/gitrepos/sites/bill-organizer/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:115
PHP   4. Illuminate\Foundation\Application->bootstrapWith() /home/kenan/gitrepos/sites/bill-organizer/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php:270
PHP   5. Illuminate\Foundation\Bootstrap\LoadConfiguration->bootstrap() /home/kenan/gitrepos/sites/bill-organizer/vendor/laravel/framework/src/Illuminate/Foundation/Application.php:208
PHP   6. Illuminate\Foundation\Bootstrap\LoadConfiguration->loadConfigurationFiles() /home/kenan/gitrepos/sites/bill-organizer/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:38
PHP   7. require() /home/kenan/gitrepos/sites/bill-organizer/vendor/laravel/framework/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php:63
Migration table created successfully.
Migrated: 2014_10_12_000000_create_users_table
Migrated: 2014_10_12_100000_create_password_resets_table
Migrated: 2017_02_23_100152_create_record_issuer_types_table
Migrated: 2017_02_23_102303_create_user_record_issuers_table
Migrated: 2017_02_23_102304_create_records_table

Welcome page not linked to js files

in branch feature/reg-login-ui-new
welcome page not using default layout --> js files are not there --> register and login modals not working.
anyone got alternative ways other than just hardcode the links in?

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.