Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(refactor) billing services #750

Merged

Conversation

jniles
Copy link
Collaborator

@jniles jniles commented Sep 27, 2016

This PR refactors billing services to bring them up to date with current standards. It completely restructures the URL to be compliant with the latest ui-router standards (this was the first ui-router page, so its state-based routing was pretty amateur).

Notable Changes:

  1. Use Notify for errors and success messages.
  2. Include a flash to highlight records with an :id when provided.
  3. Break out routes into billing_service.routes.js and update to latest standard.
  4. Slightly better UI for edit/update buttons.

Closes #699. Closes #700.


Thank you for contributing!

Before submitting this pull request, please verify that you have:

  • Run your code through JSHint. Check out our styleguide.
  • Run integration tests.
  • Run end-to-end tests.
  • Accurately described the changes your are making in this pull request.

For a more detailed checklist, see the official review checklist that this PR will be evaluated against.

Ensuring that the above checkboxes are completed will help speed the review process and help build a stronger application. Thanks!

Jonathan Niles added 4 commits September 27, 2016 12:02
This commit tells angular not to validate the form when the cancel
button is pressed.

Closes Third-Culture-Software#700.
This commit updates the HTML and JS for billing services to 2.x
standards.  In particular:
 1. The ui-grid uses descriptive links instead of buttons
 2. Notify catches HTTP errors
 3. Cleaned up controller imports
 4. Submit button conforms to standards
This commit improves the ui-router state management by implementing a
more expressive URL syntax.  It migrates all routes out off app.js and
moves them to `billing_services.routes.js`.

It also makes sure Notify catches delete errors, which apparently
wasn't happening.

Closes Third-Culture-Software#699.
This commit implements highlighting on ui-grid rows to draw attention to
them.  The color and duration can be edited in the bhima-bootstrap.less
files.  For the moment, it flashes informational blue for 1.5 seconds.
@jniles jniles added this to the Finance Implementation milestone Sep 27, 2016
@jniles jniles merged commit c788c20 into Third-Culture-Software:master Sep 28, 2016
@jniles jniles deleted the refactor-billing-services branch September 28, 2016 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant