-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend/feature/moderation final page #629
Merged
selinisik
merged 6 commits into
frontend/development
from
frontend/feature/moderationFinalPage
Dec 25, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5685a55
added moderation request and jury page route structure
selinisik 35abf9e
created final jury page and jury modal
selinisik 0ce8b80
updated logo
selinisik ba82022
moderation request is added
selinisik 6d5bd01
Merge branch 'frontend/development' into frontend/feature/moderationF…
selinisik 389d9ab
Merge branch 'frontend/development' into frontend/feature/moderationF…
selinisik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,118 changes: 1,118 additions & 0 deletions
1,118
prediction-polls/frontend/src/Assets/RectNewLogo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 52 additions & 0 deletions
52
prediction-polls/frontend/src/Components/Modals/JuryModal.jsx
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,52 @@ | ||
// JuryModal.js | ||
import React from 'react'; | ||
import { Modal } from 'antd'; | ||
import useModal from '../../contexts/ModalContext/useModal'; | ||
import { ModalNames } from '../../contexts/ModalContext/ModalNames'; | ||
import styles from './JuryModal.module.css'; | ||
|
||
const JuryModal = () => { | ||
const { modals, closeModal,setJuryCheckboxState } = useModal(); | ||
|
||
const handleCancel = () => { | ||
closeModal(ModalNames.JuryTermsModal); | ||
}; | ||
|
||
const handleOK = () => { | ||
setJuryCheckboxState(true); | ||
closeModal(ModalNames.JuryTermsModal); | ||
}; | ||
|
||
return ( | ||
<Modal | ||
title="Jury Terms" | ||
open={modals[ModalNames.JuryTermsModal]} | ||
onCancel={handleCancel} | ||
onOk={handleOK} | ||
okText="I Agree" | ||
cancelText="Cancel" | ||
> | ||
<div className={styles.juryRules}> | ||
<p>Before proceeding to make a decision on the poll in question, please carefully review and agree to the following terms:</p> | ||
|
||
<p><strong>1. Impartiality:</strong> I affirm that I have no personal or financial interest in the outcomes of this poll and that I have not participated in the poll. I commit to making an unbiased decision based solely on the poll's content and the evidence provided.</p> | ||
|
||
<p><strong>2. Confidentiality:</strong> I understand that my role as a jury member is a position of trust. I agree not to disclose or discuss any details of the poll or its deliberation process outside the official channels provided by the platform.</p> | ||
|
||
<p><strong>3. Knowledge and Honesty:</strong> I acknowledge that I am making decisions based on the tags I am interested in and knowledgeable about. I will conduct any necessary research and fact-checking to ensure the accuracy of my decision.</p> | ||
|
||
<p><strong>4. Respect and Civility:</strong> I commit to engaging respectfully and constructively with the poll and fellow jury members. I understand that my role is to contribute positively to the community and uphold the platform's standards.</p> | ||
|
||
<p><strong>5. Rule Adherence:</strong> I have read and understood the platform's rules and guidelines for jury members, including the consequences of any misconduct or failure to act responsibly. I agree to adhere to these rules throughout the decision-making process.</p> | ||
|
||
<p><strong>6. Timely Participation:</strong> I understand the importance of making a timely decision within the 24-hour timeframe and commit to adhering to this schedule to ensure the smooth functioning of the platform.</p> | ||
|
||
<p><strong>7. Ethical Conduct:</strong> I promise to conduct myself ethically and responsibly, recognizing the impact my decision may have on the poll's creator, participants, and the platform community.</p> | ||
|
||
<p>By clicking "I Agree," you affirm your understanding and commitment to these terms and the responsibilities of being a jury member. Your thoughtful and fair participation is crucial to maintaining the integrity and quality of our community's decision-making process.</p> | ||
</div> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default JuryModal; |
16 changes: 16 additions & 0 deletions
16
prediction-polls/frontend/src/Components/Modals/JuryModal.module.css
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,16 @@ | ||
.juryRules { | ||
font-size: 14px; | ||
color: #333; | ||
line-height: 1.5; | ||
overflow-y: auto; | ||
max-height: 60vh; | ||
padding: 20px; | ||
} | ||
|
||
.juryRules p { | ||
margin-bottom: 10px; | ||
} | ||
|
||
.juryRules strong { | ||
font-weight: bold; | ||
} |
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we have to revise this clause. In the backend implementation, the moderators can be voter-casters, too.