<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mjwitte</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mjwitte"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Mjwitte"/>
	<updated>2026-05-18T06:09:00Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100404</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100404"/>
		<updated>2015-12-09T16:16:54Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[https://expertiza.ncsu.edu/ Expertiza] is an open-source education and classroom web-tool founded by the [http://www.nsf.gov/ National Science Foundation]. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Code_refactoring Refactoring] grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
*  Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
*  Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
'''Image 1. The current review display for students.'''&lt;br /&gt;
&lt;br /&gt;
Image 1, above, illustrates the current design of the Student Review Report. We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
'''Image 2. The proposed student review report, in default collapsed view.'''&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. Image 2 illustrates the design for the student review report. To combat the length of the current review display, we have chosen to collapse all data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Because all of the comments are not available for all reviews in a single screen display, the rightmost field displays the number of comment fields for each criterion which have 10 or more characters. The purpose of this field is to provide the user a quick and effective manner to spark interest into whether or not the the criterion contains meaningful comments. &lt;br /&gt;
&lt;br /&gt;
The colored background of the cells are based on a color scale relative to the score. These colors are added to the design into order to quickly spark interest to the users, allowing them to pick out the essential information without having to iterate through all the data.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
'''Image 3. The proposed student review report, in expanded view.'''&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments.&lt;br /&gt;
&lt;br /&gt;
It is important to note a important data organization difference between the existing design and the proposed design; The existing review report design groups reponses by the reviewer who created them, while the proposed review report design groups responses by the criteria. This new way of grouping responses groups like with like, allow the viewing users to see all scores and comments pertaining to one criterion at once. &lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
'''Image 4. Current design of the Instructor's Review Report.'''&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. The student view will also be made available to the instructor via a link in the 'grades/view' page, allowing to see this updated scores report for a requested participant. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team used following design patterns in the solution:&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Strategy_pattern Strategy Design Pattern]''': Using the strategy design pattern, we can display two versions of the review page according to which role is currently logged in. For instance, in the student role’s review page, they will see a different layout than the instructor role's review page, but the actual content is more or less the same.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Module_pattern Module Design Pattern]''': Using the module design pattern, source code can be organized into components that accomplish a particular function. In JavaScript files, we use anonymous functions for responsiveness on client side via JavaScript and JQuery. We also developed a view model module to contain the necessary information needed to render the review content on the page.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Facade_pattern Facade Design Pattern]''': The façade design pattern provides a unified, high-level interface to a set of interfaces in a subsystem which is intended to make the subsystem easier to use.In our implementation, the student role's review page, grades, commands, and feedback are gathered from three different controllers, and they are accessed from within the review controller and displayed in one review page. The client need only interact with the façade, i.e., the review controller.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Received Scores and Reviews for Specified Assignment, Grouped by Criteria''': Accessed from the Student's landing page for a particular assignment. Allows a student to see scores, grouped by criteria, for self's assignment, as well as meta reviews and author reviews. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Controller Testing ===&lt;br /&gt;
&lt;br /&gt;
Controller testing will be centered around the proposed views which will replace the &amp;quot;view&amp;quot; and &amp;quot;view_my_scores&amp;quot; view in the grades controller. The Functional testing section covers much of the modular functionality that make up the proposed views. It is not anticipated that the testing team will perform significant controller tests.  &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplicates. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammember, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helper method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
=== UI Tests ===&lt;br /&gt;
UI will be tested manually, but also automatedly with [https://en.wikipedia.org/wiki/Selenium_(software) Selenium]. Compliance and validation will be checked via an online tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
Three models were added to retrieve useful data: &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;. They comprise a view model module which is used to centralize the data and content that is rendered to the page. The &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt; has multiple &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;'s, which has multiple &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;'s.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt; is just a data holder. It represents a single cell in the table view and holds the score it should display and it's appropriate color code, which is used by the stylesheet. The &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt; represents a single row in the table view. It holds the question text, the score cells for that row, and the number of comments with more than 10 characters. It is also responsible for calculating the average score across all reviews for that particular question. The &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt; can be thought of as the controller for the table. It holds all the &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;'s in the table and is responsible for calculating various values, such as the total and average scores for each review.&lt;br /&gt;
&lt;br /&gt;
Two core actions were added in &amp;lt;code&amp;gt;grades_controller&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; and  &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The action &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; is a substitution of the old action &amp;lt;code&amp;gt;view_my_score&amp;lt;/code&amp;gt;, which is used by the student to view all the reviews. This action first gathers the current user, the assignment being viewed, the user's team, and the rounds for the current assignment. It then iterates over the questionnaires, or the reviews, and creates a new view model, which is responsible for rendering the content, populating the data on the view model as needed.&lt;br /&gt;
&lt;br /&gt;
The action &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt; can be used to view the details of all reviews. This action compiles the questions and their respective scores into a hash.&lt;br /&gt;
&lt;br /&gt;
Two major views were added: &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;view_reviewer.html.erb&amp;lt;/code&amp;gt;. In &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt;, HTML table tags combined with javascript  are used to generate a table that displays all the scores from reviews, categorized by question. The &amp;lt;code&amp;gt;stylesheet grades.scss&amp;lt;/code&amp;gt; is used to create the heat grid effect, allowing users to quickly hone in on bad scores:&lt;br /&gt;
&lt;br /&gt;
[[File:Detailedreview2.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
By clicking the question row, full question text and the scores from each review will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:Rsz_screenshot_2015-12-04_235548.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;review_reviewer.html.erb&amp;lt;/code&amp;gt;, detailed reviews will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:detailedreview.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://expertiza.ncsu.edu/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;http://www.nsf.gov/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Code_refactoring&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Flyweight_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Strategy_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Front_Controller_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Module_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Iterator_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Selenium_(software)&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100403</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100403"/>
		<updated>2015-12-09T16:15:57Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[https://expertiza.ncsu.edu/ Expertiza] is an open-source education and classroom web-tool founded by the [http://www.nsf.gov/ National Science Foundation]. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Code_refactoring Refactoring] grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
*  Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
*  Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
'''Image 1. The current review display for students.'''&lt;br /&gt;
&lt;br /&gt;
Image 1, above, illustrates the current design of the Student Review Report. We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
'''Image 2. The proposed student review report, in default collapsed view.'''&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. Image 2 illustrates the design for the student review report. To combat the length of the current review display, we have chosen to collapse all data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Because all of the comments are not available for all reviews in a single screen display, the rightmost field displays the number of comment fields for each criterion which have 10 or more characters. The purpose of this field is to provide the user a quick and effective manner to spark interest into whether or not the the criterion contains meaningful comments. &lt;br /&gt;
&lt;br /&gt;
The colored background of the cells are based on a color scale relative to the score. These colors are added to the design into order to quickly spark interest to the users, allowing them to pick out the essential information without having to iterate through all the data.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
'''Image 3. The proposed student review report, in expanded view.'''&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments.&lt;br /&gt;
&lt;br /&gt;
It is important to note a important data organization difference between the existing design and the proposed design; The existing review report design groups reponses by the reviewer who created them, while the proposed review report design groups responses by the criteria. This new way of grouping responses groups like with like, allow the viewing users to see all scores and comments pertaining to one criterion at once. &lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
'''Image 4. Current design of the Instructor's Review Report.'''&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. The student view will also be made available to the instructor via a link in the 'grades/view' page, allowing to see this updated scores report for a requested participant. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team used following design patterns in the solution:&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Strategy_pattern Strategy Design Pattern]''': Using the strategy design pattern, we can display two versions of the review page according to which role is currently logged in. For instance, in the student role’s review page, they will see a different layout than the instructor role's review page, but the actual content is more or less the same.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Module_pattern Module Design Pattern]''': Using the module design pattern, source code can be organized into components that accomplish a particular function. In JavaScript files, we use anonymous functions for responsiveness on client side via JavaScript and JQuery. We also developed a view model module to contain the necessary information needed to render the review content on the page.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Facade_pattern Facade Design Pattern]''': The façade design pattern provides a unified, high-level interface to a set of interfaces in a subsystem which is intended to make the subsystem easier to use.In our implementation, the student role's review page, grades, commands, and feedback are gathered from three different controllers, and they are accessed from within the review controller and displayed in one review page. The client need only interact with the façade, i.e., the review controller.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Received Scores and Reviews for Specified Assignment, Grouped by Criteria''': Accessed from the Student's landing page for a particular assignment. Allows a student to see scores, grouped by criteria, for self's assignment, as well as meta reviews and author reviews. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Controller Testing ===&lt;br /&gt;
&lt;br /&gt;
Controller testing will be centered around the proposed views which will replace the &amp;quot;view&amp;quot; and &amp;quot;view_my_scores&amp;quot; view in the grades controller. The Functional testing section covers much of the modular functionality that make up the proposed views. It is not anticipated that the testing team will perform significant controller tests.  &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplicates. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammember, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helper method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
=== UI Tests ===&lt;br /&gt;
UI will be tested manually, but also automatedly with [https://en.wikipedia.org/wiki/Selenium_(software) Selenium]. Compliance and validation will be checked via an online tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
Three models were added to retrieve useful data: &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;. They comprise a view model module which is used to centralize the data and content that is rendered to the page. The &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt; has multiple &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;'s, which has multiple &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;'s.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt; is just a data holder. It represents a single cell in the table view and holds the score it should display and it's appropriate color code, which is used by the stylesheet. The &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt; represents a single row in the table view. It holds the question text, the score cells for that row, and the number of comments with more than 10 characters. It is also responsible for calculating the average score across all reviews for that particular question. The &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt; can be thought of as the controller for the table. It holds all the &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;'s in the table and is responsible for calculating various values, such as the total and average scores for each review.&lt;br /&gt;
&lt;br /&gt;
Two core actions were added in &amp;lt;code&amp;gt;grades_controller&amp;lt;/code&amp;gt;: &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; and  &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The action &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; is a substitution of the old action &amp;lt;code&amp;gt;view_my_score&amp;lt;/code&amp;gt;, which is used by the student to view all the reviews. This action first gathers the current user, the assignment being viewed, the user's team, and the rounds for the current assignment. It then iterates over the questionnaires, or the reviews, and creates a new view model, which is responsible for rendering the content, populating the data on the view model as needed.&lt;br /&gt;
&lt;br /&gt;
The action &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt; can be used to view the details of all reviews. This action compiles the questions and their respective scores into a hash.&lt;br /&gt;
&lt;br /&gt;
Two major views were added: &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;view_reviewer.html.erb&amp;lt;/code&amp;gt;. In &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt;, HTML table tags combined with javascript  are used to generate a table that displays all the scores from reviews, categorized by question. The &amp;lt;code&amp;gt;stylesheet grades.scss&amp;lt;/code&amp;gt; is used to create the heat grid effect, allowing users to quickly hone in on bad scores:&lt;br /&gt;
&lt;br /&gt;
[[File:Detailedreview2.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
By clicking the question row, full question text and the scores from each review will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:Rsz_screenshot_2015-12-04_235548.png|border|center|alt=uml.|UML&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;review_reviewer.html.erb&amp;lt;/code&amp;gt;, detailed reviews will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:detailedreview.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://expertiza.ncsu.edu/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;http://www.nsf.gov/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Code_refactoring&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Flyweight_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Strategy_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Front_Controller_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Module_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Iterator_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Selenium_(software)&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100402</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100402"/>
		<updated>2015-12-09T15:54:38Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[https://expertiza.ncsu.edu/ Expertiza] is an open-source education and classroom web-tool founded by the [http://www.nsf.gov/ National Science Foundation]. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Code_refactoring Refactoring] grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
*  Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
*  Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
'''Image 1. The current review display for students.'''&lt;br /&gt;
&lt;br /&gt;
Image 1, above, illustrates the current design of the Student Review Report. We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
'''Image 2. The proposed student review report, in default collapsed view.'''&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. Image 2 illustrates the design for the student review report. To combat the length of the current review display, we have chosen to collapse all data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Because all of the comments are not available for all reviews in a single screen display, the rightmost field displays the number of comment fields for each criterion which have 10 or more characters. The purpose of this field is to provide the user a quick and effective manner to spark interest into whether or not the the criterion contains meaningful comments. &lt;br /&gt;
&lt;br /&gt;
The colored background of the cells are based on a color scale relative to the score. These colors are added to the design into order to quickly spark interest to the users, allowing them to pick out the essential information without having to iterate through all the data.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
'''Image 3. The proposed student review report, in expanded view.'''&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments.&lt;br /&gt;
&lt;br /&gt;
It is important to note a important data organization difference between the existing design and the proposed design; The existing review report design groups reponses by the reviewer who created them, while the proposed review report design groups responses by the criteria. This new way of grouping responses groups like with like, allow the viewing users to see all scores and comments pertaining to one criterion at once. &lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
'''Image 4. Current design of the Instructor's Review Report.'''&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. The student view will also be made available to the instructor via a link in the 'grades/view' page, allowing to see this updated scores report for a requested participant. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team used following design patterns in the solution:&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Strategy_pattern Strategy Design Pattern]''': Using the strategy design pattern, we can display two versions of the review page according to which role is currently logged in. For instance, in the student role’s review page, they will see a different layout than the instructor role's review page, but the actual content is more or less the same.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Module_pattern Module Design Pattern]''': Using the module design pattern, source code can be organized into components that accomplish a particular function. In JavaScript files, we use anonymous functions for responsiveness on client side via JavaScript and JQuery. We also developed a view model module to contain the necessary information needed to render the review content on the page.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Facade_pattern Facade Design Pattern]''': The façade design pattern provides a unified, high-level interface to a set of interfaces in a subsystem which is intended to make the subsystem easier to use.In our implementation, the student role's review page, grades, commands, and feedback are gathered from three different controllers, and they are accessed from within the review controller and displayed in one review page. The client need only interact with the façade, i.e., the review controller.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Received Scores and Reviews for Specified Assignment, Grouped by Criteria''': Accessed from the Student's landing page for a particular assignment. Allows a student to see scores, grouped by criteria, for self's assignment, as well as meta reviews and author reviews. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Controller Testing ===&lt;br /&gt;
&lt;br /&gt;
Controller testing will be centered around the proposed views which will replace the &amp;quot;view&amp;quot; and &amp;quot;view_my_scores&amp;quot; view in the grades controller. The Functional testing section covers much of the modular functionality that make up the proposed views. It is not anticipated that the testing team will perform significant controller tests.  &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplicates. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammember, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helper method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
=== UI Tests ===&lt;br /&gt;
UI will be tested manually, but also automatedly with [https://en.wikipedia.org/wiki/Selenium_(software) Selenium]. Compliance and validation will be checked via an online tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
Three models were added to retrieve useful data: &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;. They comprise a view model module which is used to centralize the data and content that is rendered to the page.&lt;br /&gt;
&lt;br /&gt;
Two core actions were added in &amp;lt;code&amp;gt;grades_controller&amp;lt;/code&amp;gt;. The action &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; is a substitution of the old action &amp;lt;code&amp;gt;view_my_score&amp;lt;/code&amp;gt;, which is used by the student to view all the reviews. The action &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt; can be used to view the details of all reviews. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def view_reviewer&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
   @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @questions = {} # A hash containing all the questions in all the questionnaires used in this assignment&lt;br /&gt;
    questionnaires = @assignment.questionnaires&lt;br /&gt;
    questionnaires.each do |questionnaire|&lt;br /&gt;
      round = AssignmentQuestionnaire.where(assignment_id: @assignment.id, questionnaire_id:questionnaire.id).first.used_in_round&lt;br /&gt;
      if(round!=nil)&lt;br /&gt;
        questionnaire_symbol = (questionnaire.symbol.to_s+round.to_s).to_sym&lt;br /&gt;
      else&lt;br /&gt;
        questionnaire_symbol = questionnaire.symbol&lt;br /&gt;
      end&lt;br /&gt;
      @questions[questionnaire_symbol] = questionnaire.questions&lt;br /&gt;
    end&lt;br /&gt;
    #@pscore has the newest versions of response for each response map, and only one for each response map (unless it is vary rubric by round)&lt;br /&gt;
    pscore = @participant.scores(@questions)&lt;br /&gt;
    # make_chart&lt;br /&gt;
    @topic_id = SignedUpTeam.topic_id(@participant.assignment.id, @participant.user_id)&lt;br /&gt;
    @stage = @participant.assignment.get_current_stage(@topic_id)&lt;br /&gt;
    # calculate_all_penalties(@assignment.id)&lt;br /&gt;
    @rscore = pscore[:review]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  def view_team&lt;br /&gt;
    #get participant, team, questionnaires for assignment.&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    @team = Team.find(@team_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    questionnaires = @assignment.questionnaires_with_questions&lt;br /&gt;
    @vmlist = []&lt;br /&gt;
    #get the rounds for the assignment. if &amp;gt;1, add the review questionnaire n-1 times.&lt;br /&gt;
    #this will insure a separate html table appears for each round&lt;br /&gt;
    @round = 1&lt;br /&gt;
    @rounds = @assignment.rounds_of_reviews&lt;br /&gt;
    repeat_questionnaire = nil&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
           if questionnaire.type == 'ReviewQuestionnaire'&lt;br /&gt;
              repeat_questionnaire = questionnaire&lt;br /&gt;
             @round = @assignment.rounds_of_reviews&lt;br /&gt;
           end&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
   if @round &amp;gt;1   &amp;amp;&amp;amp; !@assignment.varying_rubrics_by_round?&lt;br /&gt;
      (2...(@round)).reverse_each do |x|&lt;br /&gt;
        questionnaires &amp;lt;&amp;lt; (repeat_questionnaire)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
    #loop through each questionnaire, and populate the view model for all data necessary&lt;br /&gt;
    #to render the html tables.&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
        if @assignment.varying_rubrics_by_round?&lt;br /&gt;
          @round  =  AssignmentQuestionnaire.find_by_assignment_id_and_questionnaire_id(@assignment.id, questionnaire.id).used_in_round&lt;br /&gt;
        end&lt;br /&gt;
        vm = VmQuestionResponse.new(questionnaire,@round,@rounds)&lt;br /&gt;
        questions = questionnaire.questions&lt;br /&gt;
        vm.addQuestions(questions)&lt;br /&gt;
        vm.addTeamMembers(@team)&lt;br /&gt;
        vm.addReviewers(@participant,@team,@assignment.varying_rubrics_by_round?)&lt;br /&gt;
        vm.get_number_of_comments_greater_than_10_words()&lt;br /&gt;
        #if a multi-round assignment, decrement for each review questionnaire,&lt;br /&gt;
        #to ensure the proper round responses are retrieved.&lt;br /&gt;
        if questionnaire.type ==  &amp;quot;ReviewQuestionnaire&amp;quot;&lt;br /&gt;
         @round = @round -1&lt;br /&gt;
        end&lt;br /&gt;
       @vmlist &amp;lt;&amp;lt; vm&lt;br /&gt;
    }&lt;br /&gt;
    @current_role_name = current_role_name&lt;br /&gt;
    @answers = Answer.where(response_id: 64882)&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two major views were added: &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;view_reviewer.html.erb&amp;lt;/code&amp;gt;. In &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt;, HTML table tags combined with javascript  are used to generate a table that displays all the scores from reviews, categorized by question. The &amp;lt;code&amp;gt;stylesheet grades.scss&amp;lt;/code&amp;gt; is added for the heat grid effect:&lt;br /&gt;
&lt;br /&gt;
[[File:Detailedreview2.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
By clicking the question row, full question text and the scores from each review will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:Rsz_screenshot_2015-12-04_235548.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;review_reviewer.html.erb&amp;lt;/code&amp;gt;, detailed reviews will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:detailedreview.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://expertiza.ncsu.edu/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;http://www.nsf.gov/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Code_refactoring&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Flyweight_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Strategy_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Front_Controller_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Module_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Iterator_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Selenium_(software)&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100401</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100401"/>
		<updated>2015-12-09T15:53:59Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[https://expertiza.ncsu.edu/ Expertiza] is an open-source education and classroom web-tool founded by the [http://www.nsf.gov/ National Science Foundation]. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Code_refactoring Refactoring] grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
*  Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
*  Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
'''Image 1. The current review display for students.'''&lt;br /&gt;
&lt;br /&gt;
Image 1, above, illustrates the current design of the Student Review Report. We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
'''Image 2. The proposed student review report, in default collapsed view.'''&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. Image 2 illustrates the design for the student review report. To combat the length of the current review display, we have chosen to collapse all data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Because all of the comments are not available for all reviews in a single screen display, the rightmost field displays the number of comment fields for each criterion which have 10 or more characters. The purpose of this field is to provide the user a quick and effective manner to spark interest into whether or not the the criterion contains meaningful comments. &lt;br /&gt;
&lt;br /&gt;
The colored background of the cells are based on a color scale relative to the score. These colors are added to the design into order to quickly spark interest to the users, allowing them to pick out the essential information without having to iterate through all the data.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
'''Image 3. The proposed student review report, in expanded view.'''&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments.&lt;br /&gt;
&lt;br /&gt;
It is important to note a important data organization difference between the existing design and the proposed design; The existing review report design groups reponses by the reviewer who created them, while the proposed review report design groups responses by the criteria. This new way of grouping responses groups like with like, allow the viewing users to see all scores and comments pertaining to one criterion at once. &lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
'''Image 4. Current design of the Instructor's Review Report.'''&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. The student view will also be made available to the instructor via a link in the 'grades/view' page, allowing to see this updated scores report for a requested participant. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team used following design patterns in the solution:&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Strategy_pattern Strategy Design Pattern]''': Using the strategy design pattern, we can display two versions of the review page according to which role is currently logged in. For instance, in the student role’s review page, they will see a different layout than the instructor role's review page, but the actual content is more or less the same.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Module_pattern Module Design Pattern]''': Using the module design pattern, source code can be organized into components that accomplish a particular function. In JavaScript files, we use anonymous functions for responsiveness on client side via JavaScript and JQuery. We also developed a view model module to contain the necessary information needed to render the review content on the page.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Facade_pattern Facade Design Pattern]''': The façade design pattern provides a unified, high-level interface to a set of interfaces in a subsystem which is intended to make the subsystem easier to use.In our implementation, the student role's review page, grades, commands, and feedback are gathered from three different controllers, and they are accessed from within the review controller and displayed in one review page. The client need only interact with the façade, i.e., the review controller.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Received Scores and Reviews for Specified Assignment, Grouped by Criteria''': Accessed from the Student's landing page for a particular assignment. Allows a student to see scores, grouped by criteria, for self's assignment, as well as meta reviews and author reviews. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Controller Testing ===&lt;br /&gt;
&lt;br /&gt;
Controller testing will be centered around the proposed views which will replace the &amp;quot;view&amp;quot; and &amp;quot;view_my_scores&amp;quot; view in the grades controller. The Functional testing section covers much of the modular functionality that make up the proposed views. It is not anticipated that the testing team will perform significant controller tests.  &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplicates. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammember, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helper method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
=== UI Tests ===&lt;br /&gt;
UI will be tested manually, but also automatedly with [https://en.wikipedia.org/wiki/Selenium_(software) Selenium]. Compliance and validation will be checked via an online tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
Three models were added to retrieve useful data: &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;. They comprise a view model module which is used to centralize the data and content that is rendered to the page.&lt;br /&gt;
&lt;br /&gt;
Two core actions were added in &amp;lt;code&amp;gt;grades_controller&amp;lt;/code&amp;gt;. The action &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; is a substitution of the old action &amp;lt;code&amp;gt;view_my_score&amp;lt;/code&amp;gt;, which is used by the student to view all the reviews. The action &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt; can be used to view the details of all reviews. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def view_reviewer&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
   @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @questions = {} # A hash containing all the questions in all the questionnaires used in this assignment&lt;br /&gt;
    questionnaires = @assignment.questionnaires&lt;br /&gt;
    questionnaires.each do |questionnaire|&lt;br /&gt;
      round = AssignmentQuestionnaire.where(assignment_id: @assignment.id, questionnaire_id:questionnaire.id).first.used_in_round&lt;br /&gt;
      if(round!=nil)&lt;br /&gt;
        questionnaire_symbol = (questionnaire.symbol.to_s+round.to_s).to_sym&lt;br /&gt;
      else&lt;br /&gt;
        questionnaire_symbol = questionnaire.symbol&lt;br /&gt;
      end&lt;br /&gt;
      @questions[questionnaire_symbol] = questionnaire.questions&lt;br /&gt;
    end&lt;br /&gt;
    #@pscore has the newest versions of response for each response map, and only one for each response map (unless it is vary rubric by round)&lt;br /&gt;
    pscore = @participant.scores(@questions)&lt;br /&gt;
    # make_chart&lt;br /&gt;
    @topic_id = SignedUpTeam.topic_id(@participant.assignment.id, @participant.user_id)&lt;br /&gt;
    @stage = @participant.assignment.get_current_stage(@topic_id)&lt;br /&gt;
    # calculate_all_penalties(@assignment.id)&lt;br /&gt;
    @rscore = pscore[:review]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  def view_team&lt;br /&gt;
    #get participant, team, questionnaires for assignment.&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    @team = Team.find(@team_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    questionnaires = @assignment.questionnaires_with_questions&lt;br /&gt;
    @vmlist = []&lt;br /&gt;
    #get the rounds for the assignment. if &amp;gt;1, add the review questionnaire n-1 times.&lt;br /&gt;
    #this will insure a separate html table appears for each round&lt;br /&gt;
    @round = 1&lt;br /&gt;
    @rounds = @assignment.rounds_of_reviews&lt;br /&gt;
    repeat_questionnaire = nil&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
           if questionnaire.type == 'ReviewQuestionnaire'&lt;br /&gt;
              repeat_questionnaire = questionnaire&lt;br /&gt;
             @round = @assignment.rounds_of_reviews&lt;br /&gt;
           end&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
   if @round &amp;gt;1   &amp;amp;&amp;amp; !@assignment.varying_rubrics_by_round?&lt;br /&gt;
      (2...(@round)).reverse_each do |x|&lt;br /&gt;
        questionnaires &amp;lt;&amp;lt; (repeat_questionnaire)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
    #loop through each questionnaire, and populate the view model for all data necessary&lt;br /&gt;
    #to render the html tables.&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
        if @assignment.varying_rubrics_by_round?&lt;br /&gt;
          @round  =  AssignmentQuestionnaire.find_by_assignment_id_and_questionnaire_id(@assignment.id, questionnaire.id).used_in_round&lt;br /&gt;
        end&lt;br /&gt;
        vm = VmQuestionResponse.new(questionnaire,@round,@rounds)&lt;br /&gt;
        questions = questionnaire.questions&lt;br /&gt;
        vm.addQuestions(questions)&lt;br /&gt;
        vm.addTeamMembers(@team)&lt;br /&gt;
        vm.addReviewers(@participant,@team,@assignment.varying_rubrics_by_round?)&lt;br /&gt;
        vm.get_number_of_comments_greater_than_10_words()&lt;br /&gt;
        #if a multi-round assignment, decrement for each review questionnaire,&lt;br /&gt;
        #to ensure the proper round responses are retrieved.&lt;br /&gt;
        if questionnaire.type ==  &amp;quot;ReviewQuestionnaire&amp;quot;&lt;br /&gt;
         @round = @round -1&lt;br /&gt;
        end&lt;br /&gt;
       @vmlist &amp;lt;&amp;lt; vm&lt;br /&gt;
    }&lt;br /&gt;
    @current_role_name = current_role_name&lt;br /&gt;
    @answers = Answer.where(response_id: 64882)&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two major views were added: &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;view_reviewer.html.erb&amp;lt;/code&amp;gt;. In &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt;, HTML table tags combined with javascript  are used to generate a table that displays all the scores from reviews, categorized by question. The &amp;lt;code&amp;gt;stylesheet grades.scss&amp;lt;/code&amp;gt; is added for the heat grid effect:&lt;br /&gt;
&lt;br /&gt;
[[File:Detailedreview2.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
By clicking the question row, full question text and its score will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:Rsz_screenshot_2015-12-04_235548.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;review_reviewer.html.erb&amp;lt;/code&amp;gt;, detailed reviews will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:detailedreview.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://expertiza.ncsu.edu/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;http://www.nsf.gov/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Code_refactoring&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Flyweight_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Strategy_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Front_Controller_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Module_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Iterator_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Selenium_(software)&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100400</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100400"/>
		<updated>2015-12-09T15:53:22Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[https://expertiza.ncsu.edu/ Expertiza] is an open-source education and classroom web-tool founded by the [http://www.nsf.gov/ National Science Foundation]. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Code_refactoring Refactoring] grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
*  Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
*  Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
'''Image 1. The current review display for students.'''&lt;br /&gt;
&lt;br /&gt;
Image 1, above, illustrates the current design of the Student Review Report. We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
'''Image 2. The proposed student review report, in default collapsed view.'''&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. Image 2 illustrates the design for the student review report. To combat the length of the current review display, we have chosen to collapse all data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Because all of the comments are not available for all reviews in a single screen display, the rightmost field displays the number of comment fields for each criterion which have 10 or more characters. The purpose of this field is to provide the user a quick and effective manner to spark interest into whether or not the the criterion contains meaningful comments. &lt;br /&gt;
&lt;br /&gt;
The colored background of the cells are based on a color scale relative to the score. These colors are added to the design into order to quickly spark interest to the users, allowing them to pick out the essential information without having to iterate through all the data.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
'''Image 3. The proposed student review report, in expanded view.'''&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments.&lt;br /&gt;
&lt;br /&gt;
It is important to note a important data organization difference between the existing design and the proposed design; The existing review report design groups reponses by the reviewer who created them, while the proposed review report design groups responses by the criteria. This new way of grouping responses groups like with like, allow the viewing users to see all scores and comments pertaining to one criterion at once. &lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
'''Image 4. Current design of the Instructor's Review Report.'''&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. The student view will also be made available to the instructor via a link in the 'grades/view' page, allowing to see this updated scores report for a requested participant. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team used following design patterns in the solution:&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Strategy_pattern Strategy Design Pattern]''': Using the strategy design pattern, we can display two versions of the review page according to which role is currently logged in. For instance, in the student role’s review page, they will see a different layout than the instructor role's review page, but the actual content is more or less the same.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Module_pattern Module Design Pattern]''': Using the module design pattern, source code can be organized into components that accomplish a particular function. In JavaScript files, we use anonymous functions for responsiveness on client side via JavaScript and JQuery. We also developed a view model module to contain the necessary information needed to render the review content on the page.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Facade_pattern Facade Design Pattern]''': The façade design pattern provides a unified, high-level interface to a set of interfaces in a subsystem which is intended to make the subsystem easier to use.In our implementation, the student role's review page, grades, commands, and feedback are gathered from three different controllers, and they are accessed from within the review controller and displayed in one review page. The client need only interact with the façade, i.e., the review controller.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Received Scores and Reviews for Specified Assignment, Grouped by Criteria''': Accessed from the Student's landing page for a particular assignment. Allows a student to see scores, grouped by criteria, for self's assignment, as well as meta reviews and author reviews. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Controller Testing ===&lt;br /&gt;
&lt;br /&gt;
Controller testing will be centered around the proposed views which will replace the &amp;quot;view&amp;quot; and &amp;quot;view_my_scores&amp;quot; view in the grades controller. The Functional testing section covers much of the modular functionality that make up the proposed views. It is not anticipated that the testing team will perform significant controller tests.  &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplicates. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammember, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helper method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
=== UI Tests ===&lt;br /&gt;
UI will be tested manually, but also automatedly with [https://en.wikipedia.org/wiki/Selenium_(software) Selenium]. Compliance and validation will be checked via an online tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
Three models were added to retrieve useful data: &amp;lt;code&amp;gt;vm_question_response&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;vm_question_response_ row&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;vm_question_response_score_cell&amp;lt;/code&amp;gt;. They comprise a view model module which is used to centralize the data and content that is rendered to the page.&lt;br /&gt;
&lt;br /&gt;
Two core actions were added in &amp;lt;code&amp;gt;grades_controller&amp;lt;/code&amp;gt;. The action &amp;lt;code&amp;gt;view_team&amp;lt;/code&amp;gt; is a substitution of the old action &amp;lt;code&amp;gt;view_my_score&amp;lt;/code&amp;gt;, which is used by the student to view all the reviews. The action &amp;lt;code&amp;gt;view_reviewer&amp;lt;/code&amp;gt; can be used to view the details of all reviews. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def view_reviewer&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
   @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @questions = {} # A hash containing all the questions in all the questionnaires used in this assignment&lt;br /&gt;
    questionnaires = @assignment.questionnaires&lt;br /&gt;
    questionnaires.each do |questionnaire|&lt;br /&gt;
      round = AssignmentQuestionnaire.where(assignment_id: @assignment.id, questionnaire_id:questionnaire.id).first.used_in_round&lt;br /&gt;
      if(round!=nil)&lt;br /&gt;
        questionnaire_symbol = (questionnaire.symbol.to_s+round.to_s).to_sym&lt;br /&gt;
      else&lt;br /&gt;
        questionnaire_symbol = questionnaire.symbol&lt;br /&gt;
      end&lt;br /&gt;
      @questions[questionnaire_symbol] = questionnaire.questions&lt;br /&gt;
    end&lt;br /&gt;
    #@pscore has the newest versions of response for each response map, and only one for each response map (unless it is vary rubric by round)&lt;br /&gt;
    pscore = @participant.scores(@questions)&lt;br /&gt;
    # make_chart&lt;br /&gt;
    @topic_id = SignedUpTeam.topic_id(@participant.assignment.id, @participant.user_id)&lt;br /&gt;
    @stage = @participant.assignment.get_current_stage(@topic_id)&lt;br /&gt;
    # calculate_all_penalties(@assignment.id)&lt;br /&gt;
    @rscore = pscore[:review]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  def view_team&lt;br /&gt;
    #get participant, team, questionnaires for assignment.&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    @team = Team.find(@team_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    questionnaires = @assignment.questionnaires_with_questions&lt;br /&gt;
    @vmlist = []&lt;br /&gt;
    #get the rounds for the assignment. if &amp;gt;1, add the review questionnaire n-1 times.&lt;br /&gt;
    #this will insure a separate html table appears for each round&lt;br /&gt;
    @round = 1&lt;br /&gt;
    @rounds = @assignment.rounds_of_reviews&lt;br /&gt;
    repeat_questionnaire = nil&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
           if questionnaire.type == 'ReviewQuestionnaire'&lt;br /&gt;
              repeat_questionnaire = questionnaire&lt;br /&gt;
             @round = @assignment.rounds_of_reviews&lt;br /&gt;
           end&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
   if @round &amp;gt;1   &amp;amp;&amp;amp; !@assignment.varying_rubrics_by_round?&lt;br /&gt;
      (2...(@round)).reverse_each do |x|&lt;br /&gt;
        questionnaires &amp;lt;&amp;lt; (repeat_questionnaire)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
    #loop through each questionnaire, and populate the view model for all data necessary&lt;br /&gt;
    #to render the html tables.&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
        if @assignment.varying_rubrics_by_round?&lt;br /&gt;
          @round  =  AssignmentQuestionnaire.find_by_assignment_id_and_questionnaire_id(@assignment.id, questionnaire.id).used_in_round&lt;br /&gt;
        end&lt;br /&gt;
        vm = VmQuestionResponse.new(questionnaire,@round,@rounds)&lt;br /&gt;
        questions = questionnaire.questions&lt;br /&gt;
        vm.addQuestions(questions)&lt;br /&gt;
        vm.addTeamMembers(@team)&lt;br /&gt;
        vm.addReviewers(@participant,@team,@assignment.varying_rubrics_by_round?)&lt;br /&gt;
        vm.get_number_of_comments_greater_than_10_words()&lt;br /&gt;
        #if a multi-round assignment, decrement for each review questionnaire,&lt;br /&gt;
        #to ensure the proper round responses are retrieved.&lt;br /&gt;
        if questionnaire.type ==  &amp;quot;ReviewQuestionnaire&amp;quot;&lt;br /&gt;
         @round = @round -1&lt;br /&gt;
        end&lt;br /&gt;
       @vmlist &amp;lt;&amp;lt; vm&lt;br /&gt;
    }&lt;br /&gt;
    @current_role_name = current_role_name&lt;br /&gt;
    @answers = Answer.where(response_id: 64882)&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two major views were added: &amp;lt;code&amp;gt;view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;view_reviewer.html.erb&amp;lt;/code&amp;gt;. In view_team.html.erb&amp;lt;/code&amp;gt;, HTML table tags combined with javascript  are used to generate a table that displays all the scores from reviews, categorized by question. The &amp;lt;code&amp;gt;stylesheet grades.scss&amp;lt;/code&amp;gt; is added for the heat grid effect:&lt;br /&gt;
&lt;br /&gt;
[[File:Detailedreview2.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
By clicking the question row, full question text and its score will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:Rsz_screenshot_2015-12-04_235548.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;review_reviewer.html.erb&amp;lt;/code&amp;gt;, detailed reviews will be displayed:&lt;br /&gt;
&lt;br /&gt;
[[File:detailedreview.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://expertiza.ncsu.edu/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;http://www.nsf.gov/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Code_refactoring&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Flyweight_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Strategy_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Front_Controller_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Module_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Iterator_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Selenium_(software)&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100399</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=100399"/>
		<updated>2015-12-09T15:43:35Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Design Patterns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
[https://expertiza.ncsu.edu/ Expertiza] is an open-source education and classroom web-tool founded by the [http://www.nsf.gov/ National Science Foundation]. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Code_refactoring Refactoring] grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
*  Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
*  Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
'''Image 1. The current review display for students.'''&lt;br /&gt;
&lt;br /&gt;
Image 1, above, illustrates the current design of the Student Review Report. We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
'''Image 2. The proposed student review report, in default collapsed view.'''&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. Image 2 illustrates the design for the student review report. To combat the length of the current review display, we have chosen to collapse all data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Because all of the comments are not available for all reviews in a single screen display, the rightmost field displays the number of comment fields for each criterion which have 10 or more characters. The purpose of this field is to provide the user a quick and effective manner to spark interest into whether or not the the criterion contains meaningful comments. &lt;br /&gt;
&lt;br /&gt;
The colored background of the cells are based on a color scale relative to the score. These colors are added to the design into order to quickly spark interest to the users, allowing them to pick out the essential information without having to iterate through all the data.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
'''Image 3. The proposed student review report, in expanded view.'''&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments.&lt;br /&gt;
&lt;br /&gt;
It is important to note a important data organization difference between the existing design and the proposed design; The existing review report design groups reponses by the reviewer who created them, while the proposed review report design groups responses by the criteria. This new way of grouping responses groups like with like, allow the viewing users to see all scores and comments pertaining to one criterion at once. &lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
'''Image 4. Current design of the Instructor's Review Report.'''&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. The student view will also be made available to the instructor via a link in the 'grades/view' page, allowing to see this updated scores report for a requested participant. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team used following design patterns in the solution:&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Strategy_pattern Strategy Design Pattern]''': Using the strategy design pattern, we can display two versions of the review page according to which role is currently logged in. For instance, in the student role’s review page, they will see a different layout than the instructor role's review page, but the actual content is more or less the same.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Module_pattern Module Design Pattern]''': Using the module design pattern, source code can be organized into components that accomplish a particular function. In JavaScript files, we use anonymous functions for responsiveness on client side via JavaScript and JQuery. We also developed a view model module to contain the necessary information needed to render the review content on the page.&lt;br /&gt;
&lt;br /&gt;
* '''[https://en.wikipedia.org/wiki/Facade_pattern Facade Design Pattern]''': The façade design pattern provides a unified, high-level interface to a set of interfaces in a subsystem which is intended to make the subsystem easier to use.In our implementation, the student role's review page, grades, commands, and feedback are gathered from three different controllers, and they are accessed from within the review controller and displayed in one review page. The client need only interact with the façade, i.e., the review controller.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Received Scores and Reviews for Specified Assignment, Grouped by Criteria''': Accessed from the Student's landing page for a particular assignment. Allows a student to see scores, grouped by criteria, for self's assignment, as well as meta reviews and author reviews. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Controller Testing ===&lt;br /&gt;
&lt;br /&gt;
Controller testing will be centered around the proposed views which will replace the &amp;quot;view&amp;quot; and &amp;quot;view_my_scores&amp;quot; view in the grades controller. The Functional testing section covers much of the modular functionality that make up the proposed views. It is not anticipated that the testing team will perform significant controller tests.  &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplicates. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammember, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helper method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
=== UI Tests ===&lt;br /&gt;
UI will be tested manually, but also automatedly with [https://en.wikipedia.org/wiki/Selenium_(software) Selenium]. Compliance and validation will be checked via an online tool. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Three model were added to retrieve useful data: vm_question_response, vm_question_response_ row and vm_question_response_score_cell, they are used for the convenience to display reviews as table.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Two core actions were added in grades_controller: view_team, this action is a substitution of the old action view_my_score, which is used by the student to view all the reviews; view_reviewer, which can be used to view the detail of all review. &lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
def view_reviewer&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
   @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @questions = {} # A hash containing all the questions in all the questionnaires used in this assignment&lt;br /&gt;
    questionnaires = @assignment.questionnaires&lt;br /&gt;
    questionnaires.each do |questionnaire|&lt;br /&gt;
      round = AssignmentQuestionnaire.where(assignment_id: @assignment.id, questionnaire_id:questionnaire.id).first.used_in_round&lt;br /&gt;
      if(round!=nil)&lt;br /&gt;
        questionnaire_symbol = (questionnaire.symbol.to_s+round.to_s).to_sym&lt;br /&gt;
      else&lt;br /&gt;
        questionnaire_symbol = questionnaire.symbol&lt;br /&gt;
      end&lt;br /&gt;
      @questions[questionnaire_symbol] = questionnaire.questions&lt;br /&gt;
    end&lt;br /&gt;
    #@pscore has the newest versions of response for each response map, and only one for each response map (unless it is vary rubric by round)&lt;br /&gt;
    pscore = @participant.scores(@questions)&lt;br /&gt;
    # make_chart&lt;br /&gt;
    @topic_id = SignedUpTeam.topic_id(@participant.assignment.id, @participant.user_id)&lt;br /&gt;
    @stage = @participant.assignment.get_current_stage(@topic_id)&lt;br /&gt;
    # calculate_all_penalties(@assignment.id)&lt;br /&gt;
    @rscore = pscore[:review]&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  def view_team&lt;br /&gt;
    #get participant, team, questionnaires for assignment.&lt;br /&gt;
    @participant = AssignmentParticipant.find(params[:id])&lt;br /&gt;
    @assignment = @participant.assignment&lt;br /&gt;
    @team_id = TeamsUser.team_id(@participant.parent_id, @participant.user_id)&lt;br /&gt;
    @team = Team.find(@team_id)&lt;br /&gt;
    return if (current_role_name!=&amp;quot;Instructor&amp;quot; &amp;amp;&amp;amp; redirect_when_disallowed )&lt;br /&gt;
    questionnaires = @assignment.questionnaires_with_questions&lt;br /&gt;
    @vmlist = []&lt;br /&gt;
    #get the rounds for the assignment. if &amp;gt;1, add the review questionnaire n-1 times.&lt;br /&gt;
    #this will insure a separate html table appears for each round&lt;br /&gt;
    @round = 1&lt;br /&gt;
    @rounds = @assignment.rounds_of_reviews&lt;br /&gt;
    repeat_questionnaire = nil&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
           if questionnaire.type == 'ReviewQuestionnaire'&lt;br /&gt;
              repeat_questionnaire = questionnaire&lt;br /&gt;
             @round = @assignment.rounds_of_reviews&lt;br /&gt;
           end&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
   if @round &amp;gt;1   &amp;amp;&amp;amp; !@assignment.varying_rubrics_by_round?&lt;br /&gt;
      (2...(@round)).reverse_each do |x|&lt;br /&gt;
        questionnaires &amp;lt;&amp;lt; (repeat_questionnaire)&lt;br /&gt;
      end&lt;br /&gt;
   end&lt;br /&gt;
    #loop through each questionnaire, and populate the view model for all data necessary&lt;br /&gt;
    #to render the html tables.&lt;br /&gt;
    questionnaires.each { |questionnaire|&lt;br /&gt;
        if @assignment.varying_rubrics_by_round?&lt;br /&gt;
          @round  =  AssignmentQuestionnaire.find_by_assignment_id_and_questionnaire_id(@assignment.id, questionnaire.id).used_in_round&lt;br /&gt;
        end&lt;br /&gt;
        vm = VmQuestionResponse.new(questionnaire,@round,@rounds)&lt;br /&gt;
        questions = questionnaire.questions&lt;br /&gt;
        vm.addQuestions(questions)&lt;br /&gt;
        vm.addTeamMembers(@team)&lt;br /&gt;
        vm.addReviewers(@participant,@team,@assignment.varying_rubrics_by_round?)&lt;br /&gt;
        vm.get_number_of_comments_greater_than_10_words()&lt;br /&gt;
        #if a multi-round assignment, decrement for each review questionnaire,&lt;br /&gt;
        #to ensure the proper round responses are retrieved.&lt;br /&gt;
        if questionnaire.type ==  &amp;quot;ReviewQuestionnaire&amp;quot;&lt;br /&gt;
         @round = @round -1&lt;br /&gt;
        end&lt;br /&gt;
       @vmlist &amp;lt;&amp;lt; vm&lt;br /&gt;
    }&lt;br /&gt;
    @current_role_name = current_role_name&lt;br /&gt;
    @answers = Answer.where(response_id: 64882)&lt;br /&gt;
  end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Two major view were added: view_team.html.erb and view_reviewer.html.erb. In view_team.html.erb, html table tags combined with javascript  are used to generate a table that display all the scores from reviews categorized by different question. grades.scss is added for the heat grid effect:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Detailedreview2.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
By clicking the question row, detailed question and its score will be displayed:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:Rsz_screenshot_2015-12-04_235548.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
In review_reviewer.html.erb, detailed review will be displayed:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
[[File:detailedreview.png|border|center|alt=uml.|UML]]&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://expertiza.ncsu.edu/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;http://www.nsf.gov/&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Code_refactoring&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Flyweight_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Strategy_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Front_Controller_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Module_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Iterator_pattern&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;https://en.wikipedia.org/wiki/Selenium_(software)&amp;lt;/p&amp;gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99573</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99573"/>
		<updated>2015-11-13T18:02:31Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|border|center|alt=The proposed condensed instructor display.|The proposed condensed instructor display.]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
=== Functional Tests ===&lt;br /&gt;
&lt;br /&gt;
* ColorMapping module: The generation of the heatgrid requires mapping review scores to color groups. Testing of the method's functionality requires various fixture collections which vary is size, range, max, min, and number of duplications. &lt;br /&gt;
&lt;br /&gt;
* Role Security Testing: In order to DRY the code, and make it maximally orthogonal, the intention is to reuse code where possible. To re-use code across students and participants will require security and role checks to confirm the session user has access to view the requested information. To test this functionality sufficiently will require testing as admin, instructor with access, instructor without access, student, non-participant, participant, teammember, non-teammeber, etc. &lt;br /&gt;
&lt;br /&gt;
* Char Comment Count Module: The generation of the &amp;quot;# of comments with chars &amp;gt; x&amp;quot; result will require the execution of a module. this module will be tested with various collections of comments which vary in size, range, length, and content.&lt;br /&gt;
&lt;br /&gt;
* TeamReview(assignment,team): This is a controller helpful method, which will be called to generate the peer review scores for a particular team (note: no author nor meta reviews.) A collection of review scores and comments will be generated. This will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* ParticpantReview(participant): This is a controller helper method, which will be called to generate the review scores for a particular participant. Collections generated will include reviews, author-reviews, meta-reviews for a participant. this will be tested for empty, null, many round, single round, many reviewer, single reviewer scores.&lt;br /&gt;
&lt;br /&gt;
* RubricQuestion(questionnaire): This is a controller helper method, which will be called by many views in the solution. It will return a list of criteria for each found of a questionnaire or rubric. this will be tested for empty, null, many-round, single round rubrics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
* Open Question: how to meet functionality of the various action links in the instructor view, such as: email student, delete score, change score, etc. &lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Instructor.PNG&amp;diff=99572</id>
		<title>File:Current Instructor.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Instructor.PNG&amp;diff=99572"/>
		<updated>2015-11-13T18:01:33Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: uploaded a new version of &amp;amp;quot;File:Current Instructor.PNG&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Student.PNG&amp;diff=99571</id>
		<title>File:Current Student.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Student.PNG&amp;diff=99571"/>
		<updated>2015-11-13T18:01:10Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: uploaded a new version of &amp;amp;quot;File:Current Student.PNG&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_instructor_condensed.png&amp;diff=99570</id>
		<title>File:Heatgrid instructor condensed.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_instructor_condensed.png&amp;diff=99570"/>
		<updated>2015-11-13T18:00:49Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: uploaded a new version of &amp;amp;quot;File:Heatgrid instructor condensed.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_studen_condensed.png&amp;diff=99569</id>
		<title>File:Heatgrid studen condensed.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_studen_condensed.png&amp;diff=99569"/>
		<updated>2015-11-13T18:00:27Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: uploaded a new version of &amp;amp;quot;File:Heatgrid studen condensed.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_student_expanded.png&amp;diff=99568</id>
		<title>File:Heatgrid student expanded.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_student_expanded.png&amp;diff=99568"/>
		<updated>2015-11-13T17:59:08Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: uploaded a new version of &amp;amp;quot;File:Heatgrid student expanded.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99564</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99564"/>
		<updated>2015-11-13T16:37:35Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|800px|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|800px|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|800px|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|800px|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|800px|center|alt=The proposed condensed instructor display.|The proposed condensed instructor display.]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99563</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99563"/>
		<updated>2015-11-13T16:37:07Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|800px|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|thumb|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|thumb|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|thumb|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|thumb|center|alt=The proposed condensed instructor display.|The proposed condensed instructor display.]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99562</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99562"/>
		<updated>2015-11-13T16:36:57Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|600px|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|thumb|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|thumb|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|thumb|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|thumb|center|alt=The proposed condensed instructor display.|The proposed condensed instructor display.]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99561</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99561"/>
		<updated>2015-11-13T16:34:22Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|thumb|center|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|thumb|center|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|thumb|center|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|thumb|center|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|thumb|center|alt=The proposed condensed instructor display.|The proposed condensed instructor display.]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99560</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99560"/>
		<updated>2015-11-13T16:33:16Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|thumb|alt=The current student view.|The current review display for students.]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|thumb|alt=The proposed condensed student display.|The proposed condensed student display.]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|thumb|alt=The proposed expanded student display.|The proposed expanded student display.]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|thumb|alt=The current instructor view.|The current review display for instructors.]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|thumb|alt=The proposed condensed instructor display.|The proposed condensed instructor display.]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99559</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99559"/>
		<updated>2015-11-13T16:30:29Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|thumb]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|thumb]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99558</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99558"/>
		<updated>2015-11-13T16:29:42Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|thumb]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|thumb]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99557</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99557"/>
		<updated>2015-11-13T16:23:23Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:Current Instructor.PNG|border]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99556</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99556"/>
		<updated>2015-11-13T16:22:41Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_studen_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:current_instructor.png|border]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99555</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99555"/>
		<updated>2015-11-13T16:22:12Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.PNG|border]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:current_instructor.png|border]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99554</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99554"/>
		<updated>2015-11-13T16:21:16Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Current Student.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:current_instructor.png|border]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99553</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99553"/>
		<updated>2015-11-13T16:20:29Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:current_student.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_student_expanded.png|border]]&lt;br /&gt;
&lt;br /&gt;
Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
[[File:current_instructor.png|border]]&lt;br /&gt;
&lt;br /&gt;
The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
[[File:Heatgrid_instructor_condensed.png|border]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
View All Team Scores and Reviews for Specified Assignment, as Instructor&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Criteria, as Student (self)&lt;br /&gt;
View Received Scores and Reviews for Specified Assignment, Grouped by Reviewer, as Student (self)&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb app/viewsgrades/views.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==Future Enhancements==&lt;br /&gt;
* The project team may attempt to implement sorting of the lists and tables in in both the instructor and student review pages.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_student_expanded.png&amp;diff=99552</id>
		<title>File:Heatgrid student expanded.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_student_expanded.png&amp;diff=99552"/>
		<updated>2015-11-13T16:17:53Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_studen_condensed.png&amp;diff=99551</id>
		<title>File:Heatgrid studen condensed.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_studen_condensed.png&amp;diff=99551"/>
		<updated>2015-11-13T16:17:36Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_instructor_condensed.png&amp;diff=99550</id>
		<title>File:Heatgrid instructor condensed.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Heatgrid_instructor_condensed.png&amp;diff=99550"/>
		<updated>2015-11-13T16:17:22Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Student.PNG&amp;diff=99549</id>
		<title>File:Current Student.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Student.PNG&amp;diff=99549"/>
		<updated>2015-11-13T16:17:04Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Instructor.PNG&amp;diff=99548</id>
		<title>File:Current Instructor.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Current_Instructor.PNG&amp;diff=99548"/>
		<updated>2015-11-13T16:16:45Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99521</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99521"/>
		<updated>2015-11-13T05:27:43Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Mock-Ups */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. This way a student can compare comments and scores for a single question across all reviews. Clicking the column header for a specific review will display all the comments left by that reviewer. A student can use this functionality to view the entirety of a single review, including scores and comments. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99520</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99520"/>
		<updated>2015-11-13T05:19:40Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. Clicking the column header for a specific review will display all the comments left by that reviewer. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We should note that there will be no changes or impact on the database or underlying model classes.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99518</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99518"/>
		<updated>2015-11-13T05:14:40Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Discussion of Resolution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
* Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
* Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
* Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
* Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
* Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
*  Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
* Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. Clicking the column header for a specific review will display all the comments left by that reviewer. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99517</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99517"/>
		<updated>2015-11-13T05:14:00Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: /* Discussion of Resolution */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focuses on the following specific areas:&lt;br /&gt;
1. Refactoring grades_controller.rb and review_mapping_controller.rb to optimize code organization, making code easier to read.&lt;br /&gt;
2. Modifying UI to be more friendly. Instructor can see users' names and user-IDs, student should see review numbers, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment. Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
3. Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
4. Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
5. Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
6. Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
7. Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. Clicking the column header for a specific review will display all the comments left by that reviewer. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99516</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99516"/>
		<updated>2015-11-13T05:10:46Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focus on the following specific areas:&lt;br /&gt;
    1. Refactoring grades_controller.rb and review_mapping_controller.rb, to optimize code organize, making code easier to read.&lt;br /&gt;
    2. Modifying UI to be more friendly. Instructor could see user’s name and user-ID, student should see reviews number, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment.      Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
    3. Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
    4. Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
    5. Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
    6. Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
    7. Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose entirely removing the summary statistics at the top of the page. The data in these statistics can be displayed in a more efficient manner.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. Clicking the column header for a specific review will display all the comments left by that reviewer. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99515</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99515"/>
		<updated>2015-11-13T05:00:05Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
==== Motivations ====&lt;br /&gt;
* Lack of uniformity between student and instructor views&lt;br /&gt;
* No defined separation between reviews&lt;br /&gt;
* All reviews and review data (comments, question text, etc.) are displayed at once&lt;br /&gt;
&lt;br /&gt;
==== Discussion ====&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across the student and instructor roles, and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructors and students, as there is no clear separation between reviews. In addition, all reviews are displayed at once, meaning viewing a single review requires scrolling through the page until the desired review is found. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focus on the following specific areas:&lt;br /&gt;
    1. Refactoring grades_controller.rb and review_mapping_controller.rb, to optimize code organize, making code easier to read.&lt;br /&gt;
    2. Modifying UI to be more friendly. Instructor could see user’s name and user-ID, student should see reviews number, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment.      Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
    3. Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
    4. Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
    5. Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
    6. Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
    7. Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes. The table of scores for each review will be removed and replaced by the new view for reviews.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. Clicking the column header for a specific review will display all the comments left by that reviewer. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99205</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99205"/>
		<updated>2015-11-09T23:28:25Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focus on the following specific areas:&lt;br /&gt;
    1. Refactoring grades_controller.rb and review_mapping_controller.rb, to optimize code organize, making code easier to read.&lt;br /&gt;
    2. Modifying UI to be more friendly. Instructor could see user’s name and user-ID, student should see reviews number, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment.      Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
    3. Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
    4. Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
    5. Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
    6. Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
    7. Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes. The table of scores for each review will be removed and replaced by the new view for reviews.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. To combat the length of the current review display, we have chosen to condense all of that data into a single table that can be viewed without the need to endlessly scroll through the page. Each row of the table corresponds to a specific criterion of the review and the scores each reviewer gave with whatever comments they may have offered. The columns dictate which review the score came from. By default, the full criterion text is truncated, while the comments from a review are hidden. Clicking the row number will display all comments for that particular criterion, i.e., comments from each review. Clicking the column header for a specific review will display all the comments left by that reviewer. The individual scores to each criterion will be colored based on its value relative to the total score for the criterion. In this way, a student can quickly perceive the criterion on which they received poor scores from the reviewer.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99200</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99200"/>
		<updated>2015-11-09T23:15:30Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focus on the following specific areas:&lt;br /&gt;
    1. Refactoring grades_controller.rb and review_mapping_controller.rb, to optimize code organize, making code easier to read.&lt;br /&gt;
    2. Modifying UI to be more friendly. Instructor could see user’s name and user-ID, student should see reviews number, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment.      Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
    3. Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
    4. Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
    5. Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
    6. Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
    7. Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes. The table of scores for each review will be removed and replaced by the new view for reviews.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Review Mockup.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. &lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99199</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=99199"/>
		<updated>2015-11-09T23:14:44Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
The tasks of the assignment are as follows:&lt;br /&gt;
 &lt;br /&gt;
# Compact the review display.  Eliminate the blank lines between items within a single review.  Instead vary the background color from line to line to improve readability.&lt;br /&gt;
#  Add the following to the top of each review: who submitted the review.  The instructor should see the user’s name and user-ID.  A student should see “Reviewer #k”, where k is an integer between 1 and n, the number of reviews that have been submitted for this project. the version number of the review, and the time the review was submitted.&lt;br /&gt;
#  Add functionality to allow the instructor to view different review rounds. Also, provide instructor with a review report page of all reviewers’ reviews to every project.&lt;br /&gt;
#  Allow different alternate view: group by question.&lt;br /&gt;
#  Reduce the duplicate code between instructor and student grade reports.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
The goal of this project is to optimize code and UI of review module, to make it more readable and user-friendly. To be more specific, our work focus on the following specific areas:&lt;br /&gt;
    1. Refactoring grades_controller.rb and review_mapping_controller.rb, to optimize code organize, making code easier to read.&lt;br /&gt;
    2. Modifying UI to be more friendly. Instructor could see user’s name and user-ID, student should see reviews number, like “Reviewer #k” where k is the number of reviews submitted to the project/assignment.      Besides, the round of reviews (version number) and submitted time of reviews could also be saw by both students and instructor.&lt;br /&gt;
    3. Modifying UI to make it easier for students/instructor to see reviews of different rounds. Tabs is a good choice, besides drop-down menus are a good alternate. Maybe we also need to modify models to make it adaptive to different rounds of reviews.(Currently, review models will only record the latest version of reviews.)&lt;br /&gt;
    4. Providing a new page to display all reviews of one project/assignment as review report. In this page, reviews will be displayed as a format like “Question 1, Reviews 1, Reviews 2 … Reviews n” (reviewer’s name should also be included here). Besides, here we also need to provide different version/round of reviews of different questions. At the top of this page, there should be a matrix to show the summary of questions(as a row) and reviews(as a column).(How can different version be displayed in the matrix? Using different matrix works?)&lt;br /&gt;
    5. Providing a way to hide or gray the questions, making students/instructor more focus on reviews.&lt;br /&gt;
    6. Providing a search reviews through a specific keyword. And when searching, providing a ‘next’ button to navigate to next keyword place.&lt;br /&gt;
    7. Providing a two-dimensional table to show the scores of each question and reviewer’s name who gives the score to the question.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes. The table of scores for each review will be removed and replaced by the new view for reviews.&lt;br /&gt;
&lt;br /&gt;
[[File:Final Mock Up.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. &lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of reviews in the column headers, student names will take their place. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
The implementation team expects that the following design patterns be used in the solution:&lt;br /&gt;
 &lt;br /&gt;
* '''FlyWeight Design Pattern''': using flyweight design pattern, we can use sharing data/gui to support large numbers of fine-grained objects efficiently. For instance, in expertiza system, students’ review pages and instructor review pages. We can use one page to display in both students’ ‘version’ of review page and instructor’s ‘version’ of review page.&lt;br /&gt;
&lt;br /&gt;
* '''Strategy Design Pattern''': using strategy design pattern, we can display one page into different ‘version’ of page according to different role. For instance, in students’ review page, he will see reviewer’s id, and in instructor’s review page, he will see reviewer’s fullname. In here, student and instructor are different strategy.&lt;br /&gt;
&lt;br /&gt;
* '''Front Controller Design Pattern''': with front controller design pattern, we will display different views based on the URL and currently user’s role.&lt;br /&gt;
&lt;br /&gt;
* '''Module Design Pattern''': by module design pattern, source code can be organized into components that accomplish a particular function or contain everything necessary to accomplish a particular task. In JavaScript files, we use anonymous functions for responsiveness on client side via javascript and jquery.&lt;br /&gt;
&lt;br /&gt;
* '''Iterator Design Pattern''': iterator design pattern is used to iterate through data structures in Ruby actions and when rendering the view. For instance, we need to display all reviewer’s reviews to one round, so we need the collection of all reviewer’s reviews and then iterator to display.&lt;br /&gt;
&lt;br /&gt;
* '''Facade Design Pattern''': facade design pattern provides a unified and higher-level interface to a set of interfaces in a subsystem, which makes the subsystem easier to use. For instance, in students’ review page, grades, commands and feedbacks are from three controller, and they are combined in review controller and display in one review page.&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
&lt;br /&gt;
* '''View Review Page as Student''' : General use case, capturing a student viewing his or her own reviews with corresponding user account.&lt;br /&gt;
* '''View Review Page as Instructor''' : General use case, an instructor associated with the course in which to review's assignment is included, viewing reviews for a student participating in that assignment.&lt;br /&gt;
* '''Expand All Reviews''' : Reviews may be initially condensed in the UI by default. This use case covers the ability for a viewing user to expand expand all reviews in the UI at once, with one click of the mouse.&lt;br /&gt;
* '''Condense each Review''' : The ability to expand and condense each review of the scores page.&lt;br /&gt;
* '''View Review Detail: (As Student)''' : The ability to see review detail (questions, scores answers), of each review, as student.&lt;br /&gt;
* '''View Review Detail: (As Instructor)''' : The ability to see review detail (questions, scores answers), of each review, as instructor.&lt;br /&gt;
* '''View Reviews, with Versions in a comparable manner''' : The ability to see different versions or rounds of each review, either side by side, or tab from one to the other. &lt;br /&gt;
* '''View Reviews, Grouped by Review''' : The ability to group responses by reviewer (current functionality.)&lt;br /&gt;
* '''View Reviews, Grouped by Question''' : The ability to group responses by question/criteria.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
* UI Testing: all new functionality must be tested with supported browsers.&lt;br /&gt;
* Controller Testing: view person with no reviews, view person with reviews but no scores nor comments, view reviews with scores --,0,1,2,3,4,5. view reviews with comments with length 10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170 characters. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, questions, responses, response_maps, answers.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 1''': Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some 'BR' tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 2''': Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt; For instructors, team_users_popup.html.erb should be edited. The information such as reviewers's id, name, review's round number and updated time can be added after the 'else' division:&lt;br /&gt;
 &amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tr&amp;gt; &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;No review done yet.&amp;lt;/td&amp;gt; &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;th align = &amp;quot;left&amp;quot;&amp;gt; Reviewer score &amp;lt;/th&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;tr&amp;gt;&lt;br /&gt;
    &amp;lt;td align = &amp;quot;center&amp;quot;&amp;gt;--&amp;lt;/td&amp;gt;&lt;br /&gt;
  &amp;lt;/tr&amp;gt;&lt;br /&gt;
  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
'''Task 3 and 4''': Use tab to change reviews according to round, version and questions.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Using the 'round' attribute in the 'response' table to differentiate reviews in distinct rounds, for students the code inside following for-loop located in the _reviews.html.erb wil be rewritten and tab UI in JQuery will be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;% for review in rscore[:assessments] %&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;% end %&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
For instructors, in the team_users_popup.html.erb file, the code inside 'else' block should be rewritten to adapt tab UI.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;%if @scores == nil%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%else%&amp;gt;&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
.&lt;br /&gt;
&amp;lt;%end%&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Final_Review_Mockup.png&amp;diff=99198</id>
		<title>File:Final Review Mockup.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Final_Review_Mockup.png&amp;diff=99198"/>
		<updated>2015-11-09T23:07:02Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98844</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98844"/>
		<updated>2015-11-07T18:03:58Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We’ll outline our proposed changes starting from the top of the review page and working our way down.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes.&lt;br /&gt;
&lt;br /&gt;
The first instance of major change will occur in the table under the stats section. The table will become interactive, dictating which individual review to show at any given point. To increase readability of the table headers, they will either be spaced out more along the top or rotated to display at an angle. The &amp;quot;Average&amp;quot; in &amp;quot;Average score&amp;quot; will be removed, as it is not indicative of the value held in the table. The percentages will contain links to display that particular review in a table below. Clicking that link will automatically scroll the page down to take the user to the displayed review.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up 2.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. We intend to pull all of that content and place it in a tabbed table, similar to an Excel spreadsheet. Rather than have the confusing options to show or hide a review from a different round, the table will have multiple tabs, one for each version of the review, which will be labeled with the the particular review phase they belong to. Clicking these tabs, the user can toggle between the review they would like to look at. Each review question will have it's own row in the table, with the following columns: Question Number, Question, Score, Reviewer Comments. These columns will be interactive, i.e., clicking a column header will sort the table based on that column. Under each question number, there will be an option to &amp;quot;View Aggregate Scores,&amp;quot; which will compile a table consisting of the selected question from every review. In this manner, a user can swiftly compare the scores they received on a single question from every review.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of a 2 x N table like the student role has holding the scores from each review, the instructor will have a M x N table, where M is the number of students in the course and N is the number of assignments for that course. The column headers will become the assignment names, and the rows will have the names of students. The i, j entry will contain the score that Student i gave for Assignment j. This value will be interactive, controlling which review is displayed below the table. The columns will be sortable just as they are in the student view. Clicking a score will display that particular review below the master table in a tabbed tabular view, just as it is for the student's view. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
* View Review Page as Student&lt;br /&gt;
* View Review Page as Instructor&lt;br /&gt;
* Expand All Reviews&lt;br /&gt;
* Condense each Review&lt;br /&gt;
* View Review Detail: (As Student)&lt;br /&gt;
* View Review Detail: (As Instructor)&lt;br /&gt;
* View Reviews, with Version side-by-side, in a comparable manner.&lt;br /&gt;
* View Reviews, Grouped by Review&lt;br /&gt;
* View Reviews, Grouped by Question&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task3 and task4: Use tab to change reviews according to round number.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Tab UI in JQuery can be used.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_2.png&amp;diff=98841</id>
		<title>File:Mock Up 2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_2.png&amp;diff=98841"/>
		<updated>2015-11-07T18:02:58Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: Mock Up 2 for review design overhaul.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mock Up 2 for review design overhaul.&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_1.png&amp;diff=98839</id>
		<title>File:Mock Up 1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_1.png&amp;diff=98839"/>
		<updated>2015-11-07T18:02:37Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: Mock up 1 for review design overhaul.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Mock up 1 for review design overhaul.&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98362</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98362"/>
		<updated>2015-11-06T16:23:10Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We’ll outline our proposed changes starting from the top of the review page and working our way down.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes.&lt;br /&gt;
&lt;br /&gt;
The first instance of major change will occur in the table under the stats section. The table will become interactive, dictating which individual review to show at any given point. To increase readability of the table headers, they will either be spaced out more along the top or rotated to display at an angle. The &amp;quot;Average&amp;quot; in &amp;quot;Average score&amp;quot; will be removed, as it is not indicative of the value held in the table. The percentages will contain links to display that particular review in a table below. Clicking that link will automatically scroll the page down to take the user to the displayed review.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 2.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. We intend to pull all of that content and place it in a tabbed table, similar to an Excel spreadsheet. Rather than have the confusing options to show or hide a review from a different round, the table will have multiple tabs, one for each version of the review, which will be labeled with the the particular review phase they belong to. Clicking these tabs, the user can toggle between the review they would like to look at. Each review question will have it's own row in the table, with the following columns: Question Number, Question, Score, Reviewer Comments. These columns will be interactive, i.e., clicking a column header will sort the table based on that column. Under each question number, there will be an option to &amp;quot;View Aggregate Scores,&amp;quot; which will compile a table consisting of the selected question from every review. In this manner, a user can swiftly compare the scores they received on a single question from every review.&lt;br /&gt;
&lt;br /&gt;
Note that the specific interaction schemes outlined thus far, including the screenshots, have applied to the student role. The instructor role will also receive interaction updates using the same underling display structures, but the content differ slightly from that of the student. Instead of a 2 x N table like the student role has holding the scores from each review, the instructor will have a M x N table, where M is the number of students in the course and N is the number of assignments for that course. The column headers will become the assignment names, and the rows will have the names of students. The i, j entry will contain the score that Student i gave for Assignment j. This value will be interactive, controlling which review is displayed below the table. The columns will be sortable just as they are in the student view. Clicking a score will display that particular review below the master table in a tabbed tabular view, just as it is for the student's view. We will be able to reuse the structure in the student's view for this purpose.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task3 and task4: Use tab to change reviews according to round number and &lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98273</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98273"/>
		<updated>2015-11-06T14:06:33Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We’ll outline our proposed changes starting from the top of the review page and working our way down.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes.&lt;br /&gt;
&lt;br /&gt;
The first instance of major change will occur in the table under the stats section. The table will become interactive, dictating which individual review to show at any given point. To increase readability of the table headers, they will either be spaced out more along the top or rotated to display at an angle. The &amp;quot;Average&amp;quot; in &amp;quot;Average score&amp;quot; will be removed, as it is not indicative of the value held in the table. The percentages will contain links to display that particular review in a table below. Clicking that link will automatically scroll the page down to take the user to the displayed review.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 2.png|border]]&lt;br /&gt;
&lt;br /&gt;
The main UI overhaul will occur in displaying the actual reviews. We intend to pull all of that content and place it in a tabbed table, similar to an Excel spreadsheet. Rather than have the confusing options to show or hide a review from a different round, the table will have multiple tabs, one for each version of the review, which will be labeled with the the particular review phase they belong to. Clicking these tabs, the user can toggle between the review they would like to look at. Each review question will have it's own row in the table, with the following columns: Question Number, Question, Score, Reviewer Comments. These columns will be interactive, i.e., clicking a column header will sort the table based on that column. Under each question number, there will be an option to &amp;quot;View Aggregate Scores,&amp;quot; which will compile a table consisting of the selected question from every review. In this manner, a user can swiftly compare the scores they received on a single question from every review.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb, app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. For students,  _reviews.html.erb should be edited. The code to display those data should be insert after 'Review #' and before 'display_as_html' as following:&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
    &amp;lt;% if controller.action_name != &amp;quot;view_my_scores&amp;quot; %&amp;gt;&lt;br /&gt;
        &amp;lt;a name=&amp;quot;&amp;lt;%=prefix+&amp;quot;_&amp;quot;+review.map.reviewer.name%&amp;gt;&amp;quot;&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;%= review.display_as_html(prefix) %&amp;gt;&lt;br /&gt;
    &amp;lt;% else %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
            &amp;lt;h2&amp;gt;Review &amp;lt;%= count %&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;
            &amp;lt;!--insert basic information--!&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
            &amp;lt;%= review.display_as_html(nil,0, nil) %&amp;gt;&amp;lt;BR/&amp;gt;&amp;lt;BR/&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task3:&lt;br /&gt;
]&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_Screenshot_2.png&amp;diff=98270</id>
		<title>File:Mock Up Screenshot 2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_Screenshot_2.png&amp;diff=98270"/>
		<updated>2015-11-06T13:56:03Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: Screenshot of the second mock up.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Screenshot of the second mock up.&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98251</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98251"/>
		<updated>2015-11-06T02:56:29Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We’ll outline our proposed changes starting from the top of the review page and working our way down.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes.&lt;br /&gt;
&lt;br /&gt;
The first instance of major change will occur in the table under the stats section. The table will become interactive, dictating which individual review to show at any given point. To increase readability of the table headers, they will either be spaced out more along the top or rotated to display at an angle. The &amp;quot;Average&amp;quot; in &amp;quot;Average score&amp;quot; will be removed, as it is not indicative of the value held in the table. The percentages will contain links to display that particular review in a table below. Clicking that link will automatically scroll the page down to take the user to the displayed review.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb and app/views/grades/_reviews.html.erb.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. The action basically links html code then return it as a string. &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the display_as_html need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, the models involve and their relationships to each other need to be analyzed. &lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98249</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98249"/>
		<updated>2015-11-06T02:49:29Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We’ll outline our proposed changes starting from the top of the review page and working our way down.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes.&lt;br /&gt;
&lt;br /&gt;
The first instance of major change will occur in the table under the stats section. The table will become interactive, dictating which individual review to show at any given point.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb and app/views/grades/_reviews.html.erb.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. It basically links html code as string &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the response.rb need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, we need to figure out what are the models involve and how are they related to each other. Data like &lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98247</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98247"/>
		<updated>2015-11-06T02:44:15Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
We’ll outline our proposed changes starting from the top of the review page and working our way down.&lt;br /&gt;
&lt;br /&gt;
[[File:Mock Up Screenshot 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
We propose minimal, if any, changes to the stats portion at the top of the view. This section already looks refined and provides a nice summary of the reviews submitted for a particular assignment. The only changes that might be incurred would be to the links to “hide reviews” and “show author feedbacks.” It may not make sense for these actions to remain once the presentation of the review content changes.&lt;br /&gt;
&lt;br /&gt;
The first instance of major change will occur in the table under the stats section. The table will become interactive, dictating which individual review to show at any given point during the interaction.&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/models/response.rb and app/views/grades/_reviews.html.erb.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. It basically links html code as string &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the response.rb need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Target files: app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
To extract the data that need to be displayed, we need to figure out what are the models involve and how are they related to each other. Data like&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98243</id>
		<title>CSC/ECE 517 Fall 2015 E1577 MayYellowRoverJump</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2015_E1577_MayYellowRoverJump&amp;diff=98243"/>
		<updated>2015-11-06T02:29:27Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Intro ==&lt;br /&gt;
Expertiza is an open-source education and classroom web-tool founded by the National Science Foundation. Built with Ruby on Rails, it is designed to manage complete courses and students’ work within those courses. Each course can have a collection of instructors and students, though the interaction between instructors and students is minimal. The real emphasis of Expertiza is placed on peer-to-peer interactions, fostering a student-driven learning environment. Courses are comprised of assignments which users complete individually or with a team. Assignments usually encourage or require a team to enforce practicing peer-to-peer interaction.&lt;br /&gt;
&lt;br /&gt;
One of the main tenets of Expertiza is its implicit peer-review system. Assignments inherently have a review stage where, rather than having instructors review a team’s work, other students review a team’s submission for that assignment. When completing a review, a student is presented with essentially a rubric for the assignment, and they fill in each category with the score they deem commensurate with the work of the team. Of course, each category has a comments box for the student to qualify the score they doled out. Each member of the submitting team is notified of the review, and the team can then decide as a whole how to rework their submission based on the feedback in the peer reviews.&lt;br /&gt;
&lt;br /&gt;
There do exist issues, however, with respect to viewing one’s team’s reviews, particularly in the realm of usability. Our team has been tasked with revamping and enhancing the review UI to produce a more focused and uniform user experience for students and instructors alike.&lt;br /&gt;
&lt;br /&gt;
== Assignment ==&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
There is no denying that the usability of viewing peer reviews leaves much to be desired. It lacks uniformity across varying roles (student and instructor), and the view itself has no semblance of order or organization. Viewing a single student’s review is a chore for both instructor and student, as there is no clear separation between reviews. Our goal is to take the same data in the current display and present it in a more focused manner that allows a user, in either the instructor or student role, to absorb and process the content in the peer review more efficiently. Accessing, viewing, and understanding a review should be a far more simple task than what it currently is. In addition to the overhaul of the presentation layer, we also strive to drastically increase code reuse in the controller and model layers of the review module, which will in turn create a more uniform experience for both the instructor and student roles.&lt;br /&gt;
&lt;br /&gt;
=== Scope ===&lt;br /&gt;
The scope of this task is limited to enhancing the usability of viewing peer reviews for both students and instructors. It is within our scope to modify the corresponding views for this functionality, as well as the underlying controllers and models as needed. The modifications to the Ruby classes will either be to accommodate changes to the view or to provide a uniform experience for both the instructor and student. As this is more of a user experience task, e.g, changing the way data is displayed to the user, there will be limited modifications to the base functionality of this module. It is not within our scope to change any element of the actual peer review process, such as selecting a topic to review or completing a review of a topic. As a result, we will not be modifying the results of peer reviews; the same peer review data will be present both before and after our task is completed.&lt;br /&gt;
&lt;br /&gt;
== Design ==&lt;br /&gt;
&lt;br /&gt;
=== Discussion of Resolution ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Mock-Ups ===&lt;br /&gt;
[[File:Mock Up Screenshot 1.png|border]]&lt;br /&gt;
&lt;br /&gt;
=== Design Patterns ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Use Cases ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
=== Proposed Tests ===&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
Task 1: Compact the review display and colorize the background.&lt;br /&gt;
Target files: app/models/response.rb and app/views/grades/_reviews.html.erb.&lt;br /&gt;
The code for displaying review is implemented in a action call 'display_as_html' in app/models/response.rb. It basically links html code as string &lt;br /&gt;
To eliminate the blank line between items, some &amp;lt;BR&amp;gt; tags in the response.rb need to be delete.&lt;br /&gt;
To use different color in the background for different review, we plan to insert id for reviews in _reviews.html.erb, then write css for colorization in the app/assets/stylesheets/ folder.&lt;br /&gt;
&lt;br /&gt;
Task2: Show basic information about each review for both instructor and student:&lt;br /&gt;
Target files: app/views/grades/_reviews.html.erb and app/views/popup/team_users_popup.html.erb&lt;br /&gt;
Key tables: questionnaires, responses, response_maps&lt;br /&gt;
To extract the data that need to be displayed, we need to figure out what are the models involve and how are they related to each other. Data like&lt;br /&gt;
&lt;br /&gt;
== Suggestions for Future Improvements ==&lt;br /&gt;
&lt;br /&gt;
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_Screenshot_1.png&amp;diff=98242</id>
		<title>File:Mock Up Screenshot 1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Mock_Up_Screenshot_1.png&amp;diff=98242"/>
		<updated>2015-11-06T02:28:46Z</updated>

		<summary type="html">&lt;p&gt;Mjwitte: uploaded a new version of &amp;amp;quot;File:Mock Up Screenshot 1.png&amp;amp;quot;: Smaller.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;First screenshot for the mock up of what's going to change.&lt;/div&gt;</summary>
		<author><name>Mjwitte</name></author>
	</entry>
</feed>