Giter Club home page Giter Club logo

svbx's Introduction

This project now (as of commit d05d25a, 4/25/2018) uses Composer to manage php dependencies

It also uses npm to manage node dependencies. There's a build step using Gulp that just moves front-end dependencies into the public folders.

Reminder to self:

How I am running the thing locally

  1. Start MAMP. You can do this from the command line:
$ mampstart
  1. MAMP will open your default browser to a MAMP start page. I have an Apache virtual host setup to serve the project at a local subdomain. Point your browser to svbx.localhost:8888

svbx's People

Contributors

ckingbailey avatar rob1st avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

svbx's Issues

weekly delta report layout broken on mobile

The fake table layout of the weekly delta report does not use any mobile breakpoints. It doesn't read clearly on mobile. The columns should layout in a more readable way.

screenshot:
screenshot showing unfriendly layout on mobile of weekly delta report

restore Clone Def button to def view

Clone def button was removed because cloneDef needs a refactor to take the new required fields

Let this be an opportunity to add more functionality to the Def model so that we have one place for all Def actions like insert, update, fetch, validate, close

make defs list downloadable

  • In defs table view, show download button that exports currently displayed (filtered) data
  • formats: csv, json

purge \r and \n from defs

Some line breaks got converted into \r\n (and variants thereof) upon insertion into db

Add a regex to def update script to purge these characters, and only these characters, when problem defs get updated.

add BART def ID to "normal" defs

"Standard-issue" Deficiencies need a field to connect them to a BART deficiency.

The New & Update forms will need form fields to add BART ID.

The simplest way to do with form field would be a select. How difficult would it be to do a searchable select? I recall Semantic UI has one. What other options are out there?

Also add BART ID to search fields above Defs table.

This will require a single-column database migration.

add new status not working

On submitting a new status name thru the form at NewStatus.php, the form target, RecStatus.php, redirects to the non-existent duplicate.php

paginate defs

defs count is getting so numerous as to tax the browser when rendering full defs table.

break defs table up into pages.

this will bugger some things up and take some extra work:

  • I believe our mysql connection class can handle pagination. more research necessary
  • csv export will need to work differently: pass a query to an endpoint and have the endpoint handle it, rather than passing raw json data to endpoint
  • filtration may need some changes. testing necessary

escape lookup data names when submitting new lookup data

Entering a name that contains a special character, such as ', throws an uncaught exception

To prevent this, escape values entered into the field on any 'Add New ______' form.

Also, please catch that exception, and any others that might be thrown.

It will be necessary to unescape lookup tables values for display.

use Export class for Defs download endpoint

Right now the controller for /api/defs implements its own code that duplicates some of the code in src/Export.

Instead, use the Export class to accomplish what this API endpoint needs to accomplish. DRY FTW

need interface to set system lead

Right now I have to set this directly in the database.

Instead, the Edit view for System should have a select element where a Lead can be selected from a list of names.

add new `status` field, "VTA_PPR_PNDG"

What does this entail besides adding it to database? What functionality does this come with? Does this new status signify 'open', 'closed', or some other, special, in-between state?

we need a better way to include("config")

As of right now, it'd be easy to add it to the autoload path. I believe that goes under PSR-1

Pointing to the config file remains a problem in v2 because of the nested file structure, and will be an issue here if we start to adopt v2. Likewise pointing to 'vendor/autoload.php' is a problem in v2 for the same reason.

Let's use this thread to discuss possible solutions.

after session expiry, navbar still looks like logged in navbar

What's happening now

When visiting the site after the session cookie has expired, navbar still display username and full nav options as if user is still logged in. On clicking any of the privileged nav options the user is taken to logout.

The way it should work

  • After session cookie has expired the navbar should look like the un-logged-in navbar, presenting "Login" in the top left and a limited set of nav options
  • If a user tries to navigate to any privileged endpoint they should be redirected to the login page, rather than to logout

need interface for bart def permission

Right now I have to set a user's permission thru the database.

That's no good.

Create an interface for it so other admins can set this user permission themselves.

clean up csv export

Replace HTML entities and line break escapes for a more readable experience

something wiggy is going on with session

Session is unexpectedly expiring when user leaves page alone for only a couple of minutes.

Session timer should reset on each user interaction.

๐Ÿ’ก Perhaps the reset method is getting called only on certain pages, and not on others?

dateClosed on defs is broken

The app tries to insert a value NOW() in a prepared statement. Mysql won't allow a Mysql function as an insertion value in a prepared statement.

Instead, insert a date string generated by PHP

def model inserts "" in date fields

FILTER_SANITIZE_SPECIAL_CHARS converts null to "". Inserting "" into date fields produces 0000-00-00.

Instead, be more specific with filters.

make defs table more printable

Chrome won't print def table in landscape. Is it because the document doesn't have a specified width for portrait print so Chrome thinks it's already as wide as landscape?

filter defs on multiple systems

We need a field to group systems together on. Many systems fit under broad categories. Let's call this field category

Create a migration for this ftw

remove vestigal files

There are a lot of unused files hanging around, including:

  • various .sql files
  • Duplicate.php
  • search.php

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.