Skip to content
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

Fix Front UI create election #127

Merged
merged 24 commits into from
May 30, 2022
Merged

Fix Front UI create election #127

merged 24 commits into from
May 30, 2022

Conversation

badrlarhdir
Copy link
Contributor

@badrlarhdir badrlarhdir commented May 17, 2022

  • Main page
    • remove drag and drop for importing JSON and replace it with only text
    • padding top main title
    • Block default input of titles so i can remove no main title etc.
    • default input when importing json is already validated
    • Line for remove subject in dropdown
    • Rank min/max values to be only one
    • Tab for preview in phones
    • Problem : working on both phone and laptop without having two different states
  • Modal
    • 2 col modal
    • Add type Icons in modal create question
    • MaxN & minN more relevant
    • Validation on each question before saving
    • Add confirm modal for remove subject
    • Preview of the question inside the modal ( TODO later )

@badrlarhdir badrlarhdir marked this pull request as ready for review May 24, 2022 14:14
@badrlarhdir badrlarhdir requested a review from nkcr May 30, 2022 09:51
Copy link
Contributor

@nkcr nkcr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍
The input fields would render better with a bit of padding, I think :)

</div>

<div className="flex mt-2 ml-2">
<div className="ml-8">{Type.charAt(0).toUpperCase() + Type.slice(1)}</div>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still think this is not necessary to display the question type in plain text, as there is already the icon.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we made the redundancy on purpose in case someone doesn't understand the icon @cmsigrist .

@badrlarhdir badrlarhdir requested a review from nkcr May 30, 2022 12:24
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 12 Code Smells

0.0% 0.0% Coverage
6.2% 6.2% Duplication

@badrlarhdir badrlarhdir merged commit ff7f119 into main May 30, 2022
@badrlarhdir badrlarhdir deleted the front-ui-create-election branch May 30, 2022 15:52
@coveralls
Copy link

coveralls commented May 30, 2022

Pull Request Test Coverage Report for Build 2410039949

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 63.494%

Totals Coverage Status
Change from base Build 2409388888: 0.0%
Covered Lines: 3129
Relevant Lines: 4928

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants