Password Storage Application Coding Challenge
This repository contains a codebase of a password storage application. Your goal will be to identify and fix broken functionality as well as improve or enhance the codebase and/or application in any way you see fit.
Contents
Requirements
Down below you'll find a list of issues describing reproduction cases of features in the application that are either missing or not behaving as intended.
There is also a list of enhancement ideas in this doc. Think of that list as inspiration for the kind of enhancements you could be implementing. However, we would like you to be creative here; go for anything you think would be good to add! Please document / describe your custom enhancements with short comments on what you changed and why (for example, as an appendix at the end of this README).
Please spend a maximum of 4 hours on this coding challenge. You’re free to spend more time on it if you wish to tie up loose ends, but please save two versions of the code base: one that leaves the project as is at the 4-hour mark and one that represents your final product. If you choose to spend more time, please indicate how much extra time you worked on the project.
It is neither expected nor necessary that you find and fix everything that's not working. Based on your own judgement, prioritise and find a good balance between either fixing as many issues as you are able to and/or enhancing the application with changes that would in your opinion add value to it.
Password Storage Application Overview
This section describes the functionality of the application if it were working as intended.
- Your passwords are hidden behind a login with a 'master password' which grants you access to view all your other passwords.
- The master password is '123456789'.
- You can view, create, edit and delete passwords.
- Your passwords are persisted locally in an encrypted format, only decryptable via the master password.
Issues
-
Currently, the application does not compile when running
npm start
. It should compile and run in development mode when runningnpm start
. -
When I add a password and save it, then refresh my browser, I can't see the password that I just created any more. Passwords and modifications to them should be persisted so that I can still see my passwords after refreshing or revisiting after having closed my browser.
-
In the passwords list view, when I select a password, then go and edit the name of the password, then click on save, the password is not highlighted in the list anymore even though it is still the selected one (indicated by the fact that I can still see it in the password view area). A password should remain selected in the list when I edit its name.
-
In the passwords list view, when I have a password already selected and I select another one, both passwords are now highlighted indicating selection. Only the most recently selected password should be highlighted.
-
There should be no errors showing up in the console.
-
When adding the same url to different passwords, the user should be alerted as to the fact that they might have an outdated password inside their password storage since different passwords are now stored for the same url.
-
In the password edit view, when I add new url items they don't appear in the list of urls while editing. After saving and clicking on edit again they do appear. They should appear while I'm adding them inside the password edit view.
-
In the password edit view, when trying to delete one of the urls for a given password by clicking the 'x' icon on one of the url list items, nothing happens. The url for which the 'x' icon was clicked should be deleted.
Enhancement Ideas
-
PasswordEdit is not typed. Convert the file to typescript.
- Done
-
Consider keyboard navigation throughout the application, as well as other accessibility concerns.
- Add navigation using tab through the passwords list and the urls list
-
Improve the aesthetic aspect of the UI.
- Check required value before to save password (name, password, double url, url format)
- Add placeholders when editing password
- Display error message when the password is wrong
- Add a pointer icon when the cursor is hover the buton to delete icon
- Display date using local
-
PasswordEdit and PasswordView seem to have some code duplication, especially in terms of layout and css. Find a way to abstract that into some shared code.
- Rename passwordEdit.module.css to passwordArea.module.cd and delete passwordView.module.css
-
Implement encryption for the locally stored passwords based on the master password. (crypto related)
- Done
-
Implement 'change password' feature. (crypto related)
-
"created at" display the date of the password creation