Skip to content

Commit

Permalink
Merge branch 'v3' into v3-student-timeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sjschlapbach authored Feb 19, 2025
2 parents febe5ad + f8bdff4 commit de312e2
Show file tree
Hide file tree
Showing 25 changed files with 53 additions and 33 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,18 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.3.0-alpha.27](https://github.com/uzh-bf/klicker-uzh/compare/v3.3.0-alpha.26...v3.3.0-alpha.27) (2025-02-19)


### Bug Fixes

* **apps/frontend-manage:** disable animation on case study evaluation scatter plots ([dc37349](https://github.com/uzh-bf/klicker-uzh/commit/dc373494f5f6d24d383b31903ed8b780284dd693))
* **apps/frontend-manage:** ensure that chart on evaluation view is initialized correctly ([791c347](https://github.com/uzh-bf/klicker-uzh/commit/791c347cb20d4b3c1786e99794f2df9de3158f30))
* **apps/frontend-manage:** fix number of bins and corresponding labels on case study histogram evaluation plot ([6581f9c](https://github.com/uzh-bf/klicker-uzh/commit/6581f9c20108a147aca760fecee17aa88bb9451f))
* **apps/frontend-manage:** remove white text style from choices sidebar answer options ([78718f4](https://github.com/uzh-bf/klicker-uzh/commit/78718f461fd490b39a63ba2219bedea0618f1edb))
* **packages/shared-components:** ensure that selection answer options are cleared after submission ([8612fa3](https://github.com/uzh-bf/klicker-uzh/commit/8612fa31b66dad5f690880dd78f733691074c97d))
* **packages/shared-components:** resolve issue with table resorting on live quiz evaluation re-fetch ([#4516](https://github.com/uzh-bf/klicker-uzh/issues/4516)) ([5c477fa](https://github.com/uzh-bf/klicker-uzh/commit/5c477fab3beede466f28a0ed3d49b8272c00038a))

## [3.3.0-alpha.26](https://github.com/uzh-bf/klicker-uzh/compare/v3.3.0-alpha.25...v3.3.0-alpha.26) (2025-02-13)


Expand Down
2 changes: 1 addition & 1 deletion apps/auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/auth",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"dependencies": {
"@klicker-uzh/i18n": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion apps/backend-docker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/backend-docker",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@klicker-uzh/docs",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"devDependencies": {
"@docusaurus/core": "~3.6.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-control/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@klicker-uzh/frontend-control",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"dependencies": {
"@apollo/client": "3.11.8",
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-manage/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@klicker-uzh/frontend-manage",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"dependencies": {
"@apollo/client": "3.11.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ function CSOneDimScatterPlot({
shape={(props: any) => (
<circle cx={props.cx} cy={props.cy} r={6} fill={props.fill} />
)}
isAnimationActive={false}
>
<LabelList
dataKey="itemLabel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ function CSTwoDimScatterPlot({
shape={(props: any) => (
<circle cx={props.cx} cy={props.cy} r={6} fill={props.fill} />
)}
isAnimationActive={false}
>
<LabelList
dataKey="itemLabel"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function ChoicesSidebar({
maxLines={3}
// maxLength={60}
className={{
tooltip: 'z-20 float-right min-w-[25rem] !text-white',
tooltip: 'z-20 float-right min-w-[25rem]',
markdown: textSize.text,
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ function useCaseStudyHistogramData({
return missingData
}

const criterionMin = resultObject.min
const criterionMax = resultObject.max
const criterionMin = resultObject.min - resultObject.step / 2
const criterionMax = resultObject.max + resultObject.step / 2
const binCount = Math.min(
30,
(criterionMax - criterionMin) / resultObject.step
(resultObject.max - resultObject.min) / resultObject.step + 1
)

// sort responses into bins and count number of responses in each bin
Expand All @@ -200,6 +200,15 @@ function useCaseStudyHistogramData({
const binWidth =
dataArray.length > 1 ? dataArray[1]!.value - dataArray[0]!.value : 1

const labelLower = Math.max(
round(bin.value - binWidth / 2, 1),
resultObject.min
)
const labelUpper = Math.min(
round(bin.value + binWidth / 2, 1),
resultObject.max
)

return {
value: round(bin.value, 2),
count: countResponsesInBin({
Expand All @@ -208,10 +217,7 @@ function useCaseStudyHistogramData({
binValue: bin.value,
criterionMax,
}),
label: `${round(bin.value - binWidth / 2, 1)} - ${round(
bin.value + binWidth / 2,
1
)}`,
label: `${labelLower} - ${labelUpper}`,
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function useChartTypeUpdate({
setChartType(ACTIVE_CHART_TYPES[activeElementType][0].value)
}
}
}, [activeInstance])
}, [activeInstance, activeElementType])
}

export default useChartTypeUpdate
2 changes: 0 additions & 2 deletions apps/frontend-manage/src/pages/quizzes/[id]/evaluation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ import { useQuery } from '@apollo/client'
import ActivityEvaluation from '@components/evaluation/ActivityEvaluation'
import { GetLiveQuizEvaluationDocument } from '@klicker-uzh/graphql/dist/ops'
import Loader from '@klicker-uzh/shared-components/src/Loader'
import { useTranslations } from 'next-intl'
import { useRouter } from 'next/router'
import EvaluationUnavailableNotification from '~/components/evaluation/EvaluationUnavailableNotification'

function Evaluation() {
const router = useRouter()
const t = useTranslations()

// fetch evaluation data
const { data, loading } = useQuery(GetLiveQuizEvaluationDocument, {
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend-pwa/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@klicker-uzh/frontend-pwa",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"dependencies": {
"@apollo/client": "3.11.8",
Expand Down
2 changes: 1 addition & 1 deletion apps/func-incoming-responses/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@klicker-uzh/func-incoming-responses",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion apps/func-response-processor/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@klicker-uzh/func-response-processor",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion apps/office-addin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/office-addin",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"dependencies": {
"@uzh-bf/design-system": "3.0.0-alpha.57",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"name": "@klicker-uzh/monorepo",
"description": "KlickerUZH instant-class-response system.",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"repository": "uzh-bf/klicker-uzh.git",
"homepage": "https://www.klicker.uzh.ch/",
"bugs": "https://github.com/uzh-bf/klicker-uzh/issues",
Expand Down
2 changes: 1 addition & 1 deletion packages/grading/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/grading",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/graphql",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/markdown",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown/src/Ellipsis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function Ellipsis({
withMarkdown ? (
<Prose
className={{
root: 'prose-p:m-0 prose-img:m-0 max-w-full flex-initial leading-6 hover:text-white',
root: 'prose-p:m-0 prose-img:m-0 max-w-full flex-initial leading-6',
}}
>
<Markdown
Expand Down
5 changes: 0 additions & 5 deletions packages/markdown/src/public/utilities.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,6 @@
--tw-text-opacity: 1;
color: rgb(0 0 0 / var(--tw-text-opacity, 1))
}

.hover\:text-white:hover {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity, 1))
}
}

@media (min-width: 768px) {
Expand Down
2 changes: 1 addition & 1 deletion packages/prisma/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@klicker-uzh/prisma",
"version": "3.3.0-alpha.26",
"version": "3.3.0-alpha.27",
"license": "AGPL-3.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion packages/shared-components/src/charts/ElementTableChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,11 @@ function ElementTableChart({
<DataTable
isPaginated
isResetSortingEnabled
initialSorting={[{ id: 'count', desc: true }]}
initialSorting={[
{ id: 'count', desc: true },
// default ordering by value after count to fix order for elements with identical counts
{ id: 'value', desc: false },
]}
columns={columns}
data={tableData}
csvFilename={`${instance.name}_results`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ function SELECTIONAnswerOptions({
)?.value

return (
<div key={inputIndex} className="flex flex-col">
<div
key={`selection-element-${elementIx}-${inputIndex}-${selectedValue}`}
className="flex flex-col"
>
<FormLabel
required
label={t('shared.questions.seCorrectAnswerN', {
Expand Down

0 comments on commit de312e2

Please sign in to comment.