-
- window.onload
- initializeGlobalVariables
- prepareKeypress -> handleKeypress
- readCommand
- evaluateCommand
- runModeCommand
- getOutputMessage
- runLoadFileCommand
- setPathToCsv
- getOutputMessage
- runViewCommand
- getCsvArrayInHtmlTable
- getOutputMessage
- runSearchCommand
- searchCsv
- getCsvArrayInHtmlTable
- getOutputMessage
- runQueryCommand
- getOutputMessage
- runModeCommand
- printResults
- resetCommand
- window.onload
-
- designed global states and variables
- ignored nesting and coupling issues
- flushed out basic functionalities
- implemented all functionalities
- refactored, denested and decoupled code
- wrote documentation
- wrote unit testing
- wrote dom testing
-
- uses
query
to take care of composite/recursive searches - uses strict requirement for argument parsing, i.e. if column index out of bounds or not found in header, print error message in results
- uses
-
- uses 'Enter' keypress instead of button for ease of use
- none remaining bugs
- assumes header row of csvFile is not number, i.e.
$[[5,4,3,2,1],['a','b','c','d',e']]$ would mess up column indexing
- main.dom.test
- conducts dom testing by checking the command box and results table for correct edge case handling and results displaying after typing command input and pressing enter
- all 6 tests passed (87 expects total)
- main.test
- conducts other unit testing by checking functions directly from main.ts
- all 8 tests passed (8 expects total)
-
- Carefully read the documentation in
main.ts
, every variable and function has been clearly documented with what it does, how it is used, what it take in and what it spits out - Carefully read the documentation in
main.dom.test.ts
, clear instructions have been given to enable developers to write future tests - Make your changes in
.ts
file and runnpx tsc
(it transpiles typescript files to javascript files) everytime before checking the browser - Use
npm test
to run your test, remember tonpx tsc
as well before running the test,
- Carefully read the documentation in
-
- Open VSCode and go to root directory of the project
- Right click on
index.html
and selectOpen with Live Server
- Move to the html page rendered in your browser
- Click on the command box where it says
Type in command here. Press ENTER to run the command.
- Type in your desired command and hit Enter key on your keyboard
- note for supplemental component, use
query
as the command word