Skip to content

Development#1

Open
DavidWilliamK wants to merge 31 commits into
masterfrom
development
Open

Development#1
DavidWilliamK wants to merge 31 commits into
masterfrom
development

Conversation

@DavidWilliamK

Copy link
Copy Markdown
Owner

No description provided.

Comment thread assets/scripts/script.js Outdated
@@ -0,0 +1,229 @@
$(document).ready(function(){

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this script should be renamed to employee.js and placed into component folder

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either place it to
components/employee/employee.js
or
pages/emplyoee/employee.js

Comment thread assets/scripts/script.js Outdated
var exp = new RegExp(searchField, "i");
$.ajax({
type: "GET",
url: "http://localhost:8080/employee",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

better to create a constant for host url, so it will be easier to change the host url

Comment thread assets/styles/style.css Outdated
margin: 0px;
padding: 0px;
}
/*------------Login--------------*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separate it to different file login.css

Comment thread assets/styles/style.css Outdated
border-radius: 5px;
border: 1px solid #47525E;
}
/*-------Home-----------*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separate it to different file home.css

Comment thread assets/styles/style.css Outdated
color: black;
}

/*----------Navbar----------*/

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

separate it to different file navbar.css

Comment thread employee.html Outdated
@@ -0,0 +1,41 @@
<!DOCTYPE html>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

place it to pages/employee/employee.html

Validation with REGEX done on employee and item pages, validation on
assignment page still need further check
Done validation on assignment creation and edit, Item and Employee name
are now shown on assignment page
Integrated new "Request" feature that supports bulk assignment, removed
CRUD on assignment page according to last technical mentoring and minor
changes on ajax functions
Datas can now be search by username=>employee, and name=>item. However
the reload button still does nothing
Code for getItem.js has been refactored in order to meet the requirement
for unit tests. Unit test has also been intialized by installing karma,
mocha and chai
Login is now implemented using cookie. However sessionId will change.
Assignment buttons still can't be displayed and GetAssignmentDetail is
also having some error.
Can now differntiate whether admin or employee logs in.
Dashboard implemented with pagination error, perhaps BE related(?)
GetAssignment and GetAssignmentDetail is fixed, however the button to
increase and decrease status encountered error on click
Dashboard pagination temporarily fixed, however unlike admin's
dashboard, employee's dashboard still have no pagination. Probably BE
related
Buttons to increase and decrease status on assignment page is now
working the way it should.
Logged in user's profile can now be viewed by clicking the rightmost
item on navbar.
Dashboard now have a new card that displays the amount of items that is
corresponding to the logged in person. However, the itemCount displayed
on the card is still waiting to be integrated, and the pagination for
this table is also having problem should the logged in person is not an
admin
Navbar can now either display the logged in employee's name if the user
is an employee, or display welcome message for admin.

Item detail modals can now display item descriptions.
Assignment detail modals can now display assignment notes.
Minor bug fix on dashboard tables' pagination.
Reinitialized test using mocha, karma and chai. However no test files
have been made.
Dashborad pagination for admin's view is as expected BE related and is
currently fixed.
Added alert that displays message for unauthorized actions. However, admins have yet to be alerted should there be some kind of
unauthorized actions.
Istanbul is added to monitor project's test coverage.
Dummy test is made to clarify whether the config is successfull, and it
currently isn't if test uses karma. However, runs perfectly with only
karma and chai.
Codes can now be tested.
Test coverage can now be shown using istanbul and karma.
Added a small amount of test for login and getPendingTable in dashboard.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants