Skip to content

Commit

Permalink
A notebook for EvaP (#1771)
Browse files Browse the repository at this point in the history
* notebook design study

* card approach

* bugfixes

* bugfixes2

* make css work

* Update _utilities.scss

* working

* fix template

* format

* Update evap/context_processors.py

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* remove login_required decorators

* Update evap/evaluation/templates/base.html

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* make filter work

* make test run

* notebook toggle and new test

* make codecov happy

* test the correct line

* calculate hight

* Update evap/evaluation/templates/base.html

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* Update evap/evaluation/templates/base.html

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* Update evap/results/tests/test_views.py

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* Update evap/evaluation/templatetags/evaluation_filters.py

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* Update evap/evaluation/tests/test_views.py

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* some requested changes

* make textfield grow

* revert login_required

* magrins correct

* enter

* update things

* missing var

* ts

* migrations

* test suite chane to fit split files

* format

* ignore ts

* jsdom

* i dont know

* i dont know

* NEXTTRY

* Revert "NEXTTRY"

This reverts commit 1cdef0d.

* langsam gehen mir die ideen aus

* another one

* try package.json mod

* next round

* next

* new try

* another one

* another one

* another one

* another one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* next one

* Update evap/evaluation/templatetags/evaluation_filters.py

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>

* Update evap/evaluation/templates/base.html

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>

* Update utils.ts

* revert changes last line

* .ts file

* format notebook.ts

* fix changed import test

* csrf

* move tests

* remove js ending

* allow

* add js back

* update package

* fix order

* pckg

* make forCCmatter happy

* cookie

* null

* Revert "null"

This reverts commit 25ade84.

* package lock

* hideshow fix

* jest version bump

* try resolver

* ipdate package lock

* eslint

* make tests fail

* add typing

* space

* tslint

* make cookie pagewide

* revert dep

* sass dep

* lock

* cooldown; 204 check and error msg

* format

* add resolver

* "allowJs": true

* add resolver

* try if allowjs runs

* format and eslint

* correct lint ignore codacy

* fix codacy hopefully

* reoder again

* fix scss

* add calc => / deprecated

* fix migration

* fix stuff

* format and fix migratiomn

* unused import

* ts 5.1.3

* comit resolves

* fix migration

* remove value

* add tomselect comments

* add default label text

* remove unused label

* fix l

* Update evap/evaluation/templates/notebook.html

Co-authored-by: Johannes Wolf <janno42@posteo.de>

* Update evap/evaluation/models.py

Co-authored-by: Johannes Wolf <janno42@posteo.de>

* edit comment, add html

* use localstorage

* fix import

* rename migration, fix form, fix test

* Update evap/evaluation/templates/base.html

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* Update evap/evaluation/templates/notebook.html

Co-authored-by: Johannes Wolf <janno42@posteo.de>

* merge main

* fixes

* reset stuff

* revert deletion

* remove utils

* Update evap/static/scss/evap.scss

Co-authored-by: Richard Ebeling <dev@richardebeling.de>

* fix things

* make tests run

* change notebook open

* Update evap/evaluation/forms.py

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>

* annotations

* change notebook logic

* Apply suggestions from code review

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>

* changes

* format, migration graph

* fix error message

* resolve and fix stuff

* fix ts naming

* remove error state and arial label

* remove auth

* naming and remove css

* push to make github work again

* fix stuff

* fix select or error

* fix local storage key

* Update evap/static/ts/src/notebook.ts

Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>

---------

Co-authored-by: fidoriel <fidoriel@users.noreply.github.com>
Co-authored-by: Richard Ebeling <dev@richardebeling.de>
Co-authored-by: Niklas Mohrin <dev@niklasmohrin.de>
Co-authored-by: Johannes Wolf <janno42@posteo.de>
  • Loading branch information
5 people authored Oct 10, 2023
1 parent 819bdbd commit baaa7dd
Show file tree
Hide file tree
Showing 23 changed files with 1,294 additions and 16 deletions.
8 changes: 8 additions & 0 deletions evap/context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
from django.conf import settings
from django.utils.translation import get_language

from evap.evaluation.forms import NotebookForm


def slogan(request):
if get_language() == "de":
Expand All @@ -14,5 +16,11 @@ def debug(request):
return {"debug": settings.DEBUG}


def notebook_form(request):
if request.user.is_authenticated:
return {"notebook_form": NotebookForm(instance=request.user)}
return {}


def allow_anonymous_feedback_messages(request):
return {"allow_anonymous_feedback_messages": settings.ALLOW_ANONYMOUS_FEEDBACK_MESSAGES}
Loading

0 comments on commit baaa7dd

Please sign in to comment.