ContriHUB / ContriHUB-24

ContriHub is an event under Avishkar-24 where we are expecting to get more and more people involved in Open Source activities.
https://sac.mnnit.ac.in/contrihub
MIT License
4 stars 24 forks source link

Add different card color based on levels #164

Closed Nandika-A closed 1 year ago

Nandika-A commented 1 year ago

resolves #161

A color is linked with each level by declaring the tuple LEVEL_COLORS in project-models/issues. This tuple is given as a choice at the field "levelcolor". The values in this field are filled automatically using project-views/populate_issues, by assigning the level number to the levelcolor field. The following colors are linked with the levels:

  1. FREE : #f2f2f2
  2. EASY : #00b74a
  3. MEDIUM : #ffa900
  4. HARD : #f93154
  5. VERY_EASY : default
Nandika-A commented 1 year ago

@PriyavKaneria I have reset the migrations folder deletions and provided the default color code. Please check if any changes are required.

PriyavKaneria commented 1 year ago

@Nandika-A Build is failing due to flake8 linting Please resolve the minor lint issue so I can merge

Nandika-A commented 1 year ago

@Nandika-A Build is failing due to flake8 linting Please resolve the minor lint issue so I can merge

Sir this lint failure is because one line has more than 119 characters in project-models/issues. When I break it into 2 lines, it shows invalid syntax in python. FREE_COLOR, VERY_EASY_COLOR, EASY_COLOR, MEDIUM_COLOR, HARD_COLOR = "#f2f2f2", "#39c0ed", "#00b74a", "#ffa900", "#f93154" \ Should I assign these values individually?

Nandika-A commented 1 year ago

@PriyavKaneria I have now put these level colors in different lines.