-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* #41: add functionality to calculate and store voting result to backend * #41: minor changes * #41: draft for adding the final result (backend) * #41: added WebSocket message for final result * #41 extended function to show the average voted complexity for tasks + fixed/refactured some code Co-authored-by: diiinesh <63147290+diiinesh@users.noreply.github.com> Co-authored-by: sarahffm <sarahboeckel999@gmail.com> * #41 fixed some errors after merge Co-authored-by: diiinesh <63147290+diiinesh@users.noreply.github.com> Co-authored-by: sarahffm <sarahboeckel999@gmail.com> * Implemented function to submit finalValue Co-authored-by: diiinesh <63147290+diiinesh@users.noreply.github.com> Co-authored-by: sarahffm <sarahboeckel999@gmail.com> * #41: store finalValue in TaskStore + cleanup * #41: send finalValue to backend + cleanup * impl. function to show cloesd tasks ratings + accept finalValue from sockets * #41: added Result to SessionStatus * #41: fixed reload data on refresh of Result * #41: Implemented checkmark for closed/finished tasks * fix imports * #41: added headers to some requests * #41: fixed elements shown to wrong user + cleanup * #41: removed CertificatePassword * #41: fixed bugs + cleanup * #41: default value for final result Co-authored-by: sarahffm <sarahboeckel999@gmail.com> Co-authored-by: sarahffm <58327878+sarahffm@users.noreply.github.com> Co-authored-by: diiinesh <63147290+diiinesh@users.noreply.github.com>
- Loading branch information
1 parent
183cd36
commit 386c5de
Showing
24 changed files
with
476 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
client/app/Components/Features/Session/Tasks/Components/Checkmark.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react"; | ||
import { FunctionComponent } from "react"; | ||
interface CheckboxPoperties { | ||
size: string; | ||
backgroundColor: string; | ||
accentColor: string; | ||
} | ||
export const Checkbox: FunctionComponent<CheckboxPoperties> = ({ | ||
size, | ||
backgroundColor, | ||
accentColor, | ||
}) => { | ||
const style = { width: size, height: size }; | ||
return ( | ||
<svg | ||
className="checkmark" | ||
xmlns="http://www.w3.org/2000/svg" | ||
style={style} | ||
viewBox="0 0 52 52" | ||
> | ||
<circle | ||
className="checkmark__circle" | ||
cx="26" | ||
cy="26" | ||
r="25" | ||
fill={backgroundColor} | ||
/> | ||
<path | ||
className="checkmark__check" | ||
d="M14.1 27.2l7.1 7.2 16.7-16.8" | ||
stroke={accentColor} | ||
fill="none" | ||
strokeWidth="6" | ||
/> | ||
</svg> | ||
); | ||
}; |
Oops, something went wrong.