Skip to content

Feature/fixes pr#408

Draft
Titiftw wants to merge 52 commits intomawoka-myblock:masterfrom
Titiftw:feature/fixes-pr
Draft

Feature/fixes pr#408
Titiftw wants to merge 52 commits intomawoka-myblock:masterfrom
Titiftw:feature/fixes-pr

Conversation

@Titiftw
Copy link

@Titiftw Titiftw commented Oct 17, 2024

🎩 What? Why?

  • When playing, there was a bug when a player would reconnect more than once which could potentially happen. I fixed it in my feature branch (now the player can refresh any time the game, as long as it is not answering a question).
  • When playing, the total score showed on the player screen was wrong if the player reconnected.
  • When playing, a player could give X answers if it would click X times on the "Validate" button. I adjusted the disabled button logic in the frontend and also return an "already_replied" on the WebSocket.
  • When playing on a CHECK question, the player could select multiple answers. I made sure all the selected answers were removed when clicking on anoth

Testing

Join a quiz and refresh twice the page. Previously, the second refresh would end up on the Quiz code input.

♥️ Thank you!

JasonDavidI8C and others added 30 commits September 25, 2024 17:08
View video

Wrong if else

Issue iframe

Edit on the displayed video

Small fixes

Hide title, better button location

Trying to hide title as showinfo no longer works

Display video

Reverted

Music upload

File input not declared

Removed compressing on musics

Issue uploading music

Trying to display size & type

Images not there

Trying stuffs

Trying with different object

Reverted

Added type, corrected filename

Display differnt image if music

Extra }

Updated user storage used

Issue in loop

Management for music

Set music from Library

Test blo

Audio player

Wrong link

Trying this

Back to list

Listing stuffs which are deleted

Issue filtering

Wrong path set

Issue when adding a music to a quizz not being linked to it

Wrong var used

Debug

Debug

Debug

Blo

Debug

Magic

Reverted

Fix in calculate hash

I'm banana

Remove storage path

Calculate hash is bugged

Blo

Blo

Debug

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Blo

Log

Log

Blo

Log

Log

Trying

Save item

Blo

Blo

Always delete button

Delete button always showed

Blo

Banana

Added player on admin

Fix player

UI fixes

Removed hardcoded blocorp
# Conflicts:
#	classquiz/routers/editor.py
@mawoka-myblock
Copy link
Owner

Please don't create a PR depending on another one. It'll make it even more complex. I'll ignore this PR for now until we figure #401 out if that's fine for you

@mawoka-myblock mawoka-myblock marked this pull request as draft October 18, 2024 10:24
Titiftw and others added 3 commits September 29, 2025 11:36
# Conflicts:
#	.gitignore
#	classquiz/db/models.py
#	classquiz/routers/editor.py
#	frontend/pnpm-lock.yaml
#	frontend/src/lib/editor/uploader.svelte
#	frontend/src/lib/editor/uploader/Library.svelte
#	frontend/src/routes/edit/files/+page.svelte
# Conflicts:
#	classquiz/socket_server/__init__.py
#	frontend/src/lib/play/question.svelte
#	frontend/src/lib/play/results_kahoot.svelte
{#each images as image}
<div class="rounded-sm border-2 border-[#B07156] p-2 flex-col flex gap-2">
{#each files as file}
{#if file.mime_type === 'music/mp3'}
Copy link
Owner

Choose a reason for hiding this comment

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

What about other file types than MP3? WAV maybe?

import { get_foreground_color } from '$lib/helpers';
import { kahoot_icons } from '$lib/play/kahoot_mode_assets/kahoot_icons';
import CircularTimer from '$lib/play/circular_progress.svelte';
import { QuizQuestionType } from '../../quiz_types';
Copy link
Owner

Choose a reason for hiding this comment

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

Please use absolute paths ($lib/)

});

const save_image_metadata = async () => {
const save_file_metadata = async () => {
Copy link
Owner

Choose a reason for hiding this comment

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

Only needed for images alt-text, but fine for others, too

<form class="flex flex-col" onsubmit={preventDefault(save_image_metadata)}>
<div class="w-auto h-auto m-auto rounded bg-white dark:bg-gray-700 p-4">
<h1 class="text-2xl text-center">{$t('file_dashboard.edit_the_file')}</h1>
<form class="flex flex-col" on:submit|preventDefault={save_file_metadata}>
Copy link
Owner

Choose a reason for hiding this comment

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

Suggested change
<form class="flex flex-col" on:submit|preventDefault={save_file_metadata}>
<form class="flex flex-col" onsubmit={prefentDefault(save_file_metadata)}>

Svelte 5 changes

Copy link
Owner

Choose a reason for hiding this comment

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

I'd prefer an inline uploader. This has only been done for the videos, as ffmpeg in WASM would only load with these specific headers.

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

Comments