From 21be1019306d4f0358af9e3cf602af6a91cf4dfd Mon Sep 17 00:00:00 2001 From: Sarah Rietkerk <49178322+srietkerk@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:08:35 -0700 Subject: [PATCH] Teacher tool: print results page (#9916) * printing hooked up * not showing add notes button, chevron for status on print * showing a toast if printing errors * keep the label for notes and make the individual result larger if there are notes * got rid of pill on status, made height on criteria entries shorter * got rid of useref in evalresultdisplay * rename withrefprops * use prop interface in evalresultdisplay * update ternary operator in classlist on result notes Co-authored-by: Thomas Sparks <69657545+thsparks@users.noreply.github.com> * sanitizing project name for print document title * get rid of unused onHandlePrint * ran prettier * renamed printref to resultsref, split toolbar buttons, tabpanels props into their own thing * using rubric name - project name for the printed document title * sanitizing rubric name, too --------- Co-authored-by: Thomas Sparks <69657545+thsparks@users.noreply.github.com> --- .../src/components/CriteriaResultEntry.tsx | 13 +++++++--- .../src/components/EvalResultDisplay.tsx | 8 ++++-- teachertool/src/components/PrintButton.tsx | 15 ++++++++--- .../src/components/RubricWorkspace.tsx | 26 ++++++++++++------- .../styling/EvalResultDisplay.module.scss | 22 ++++++++++++++-- teachertool/src/style.overrides/Button.scss | 13 ++++++++++ teachertool/src/style.overrides/Textarea.scss | 8 ++++++ 7 files changed, 84 insertions(+), 21 deletions(-) diff --git a/teachertool/src/components/CriteriaResultEntry.tsx b/teachertool/src/components/CriteriaResultEntry.tsx index f92dc1b51ee1..613d7a2271a0 100644 --- a/teachertool/src/components/CriteriaResultEntry.tsx +++ b/teachertool/src/components/CriteriaResultEntry.tsx @@ -22,7 +22,7 @@ const AddNotesButton: React.FC = ({ criteriaId, setShowInpu setShowInput(true); }; return ( -
+