Digits Extra Credit

Here are some additional changes you can make to your Digits system once you have completed and submitted Digits 1-6.

Feel free to discuss these problems with others but you cannot copy and paste other people’s code. You have to type it all in yourself.

Each problem will be worth a maximum of 20 points each. Partial credit will be given.

Numeric telephone numbers

Do all work for this problem in a branch called “numeric-telephone-numbers”.

Currently, telephone numbers in Digits can be any string. Change the schema to one of the following:

Make sure that form submission fails when attempting to add an improperly formatted telephone number.

Enforce uniqueness

Do all work for this problem in a branch called “enforce-uniqueness”.

Currently, it is possible to have multiple entries with the same first and last name. Change the system so that you cannot have two entries with the same first and last name.

Sort by column

Do all work for this problem in a branch called “sort-column”.

Make the column headers in the table clickable. Clicking on them sorts the table by the entries in that column.

User groups

Do all the work for this problem in a branch called “user-groups”.

Implement contact user groups.

Favorite contacts

Do all the work for this problem in a branch called “favorites”.

Implement favorite contacts.

Submission instructions

Amy will create a Laulima Extra Credit entry that you can use to submit your solution. Once again, note that you can only start these after you have finished Digits 1-6.