Skip to content

geen idee knop toegevoegd bij invoervragen#175

Open
JesseHoekema wants to merge 2 commits intopolarnl:stablefrom
JesseHoekema:stable
Open

geen idee knop toegevoegd bij invoervragen#175
JesseHoekema wants to merge 2 commits intopolarnl:stablefrom
JesseHoekema:stable

Conversation

@JesseHoekema
Copy link
Copy Markdown
Member

Een geen idee knop link dinges toegevoegd als je het antwoord niet weet
ishare-1772293551-google chrome

@andr3i1010
Copy link
Copy Markdown
Member

LGTM, maak het ook zo dat het hetzelfde doet als je niks invult maar wel op enter of "Controleer" drukt

@JesseHoekema
Copy link
Copy Markdown
Member Author

LGTM, maak het ook zo dat het hetzelfde doet als je niks invult maar wel op enter of "Controleer" drukt

Ik zal later even kijken

@supersiem
Copy link
Copy Markdown
Contributor

wrm niet gewoon een defalt value van

@JesseHoekema
Copy link
Copy Markdown
Member Author

wrm niet gewoon een defalt value van

???

@supersiem
Copy link
Copy Markdown
Contributor

geloof het of niet het niks invulen doet niks is een functie geloof ik

@supersiem
Copy link
Copy Markdown
Contributor

leerinstellingen

@andr3i1010
Copy link
Copy Markdown
Member

geloof het of niet het niks invulen doet niks is een functie geloof ik

keyword: geloof ik

@supersiem
Copy link
Copy Markdown
Contributor

in het geval dat het niet werkt kan je beter bij de functies zelf het probleem oplossen ipv een extra functie hebben die dingen anders doet

@supersiem
Copy link
Copy Markdown
Contributor

@copilot zou de coden kapot gaan als we de check voor dat de string een waarde heeft kapot gaan als we die zouden verwijderen in learntool

@Jvr2022
Copy link
Copy Markdown
Member

Jvr2022 commented Mar 20, 2026

@andr3i1010?

@JesseHoekema
Copy link
Copy Markdown
Member Author

@andr3i1010 waneer word dit eens gemerged

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Deze PR voegt een “Geen idee” actie toe bij invoervragen in de leer-tool, zodat gebruikers kunnen aangeven dat ze het antwoord niet weten en alsnog door kunnen gaan.

Changes:

  • “Geen idee” knop/link toegevoegd in test en hints mode.
  • Nieuwe handleDontKnow handler die de vraag als fout markeert en de result overlay toont.
  • Brede formatting/quote-style aanpassingen in LearnTool.tsx.

Comment on lines +12 to +16
import { motion, AnimatePresence } from "motion/react";
import { saveLearnSession } from "@/utils/saveLearnSession";
import type { ListStoreState } from "./listStore";
import { useRouter } from "next/navigation";
import { Button } from "../ui/button";
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

Button is imported from ../ui/button but never used. Remove the unused import (or replace the plain <button> below with the shared Button component) to avoid lint/build failures in stricter TS/ESLint setups.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@copilot apply changes based on this feedback

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

apply changes based on this feedback
dit kan niet voor cross repo pull requests @JesseHoekema doe het zelf

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

of doe dit in je eigen repo en dan update de pr vanzelf

Comment on lines 424 to +429
const handleSubmit = () => {
if (!currentWord || !userInput.trim()) return;
const answer = currentWord["2"] || '';
if (!currentWord) return;
if (!userInput.trim()) {
handleDontKnow();
return;
}
Copy link

Copilot AI Apr 5, 2026

Choose a reason for hiding this comment

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

handleSubmit now treats an empty/whitespace input as “Geen idee” by calling handleDontKnow(). This changes prior behavior (empty Enter/"Controleer" becomes a logged wrong answer) and can be triggered accidentally. Consider restoring the early return for empty input and only invoking handleDontKnow from the explicit "Geen idee" action.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

zit wat in, doe anders met 2x enter pas

@SSoggyTacoMan
Copy link
Copy Markdown
Contributor

@JesseHoekema aan de slag

@supersiem
Copy link
Copy Markdown
Contributor

vibe coding D:

@JesseHoekema
Copy link
Copy Markdown
Member Author

👍

@JesseHoekema
Copy link
Copy Markdown
Member Author

ik vind dit niet tellen als vibecoden tbh

@JesseHoekema
Copy link
Copy Markdown
Member Author

en jullie gebruiken copilot om dit te reviewen dus

@SSoggyTacoMan
Copy link
Copy Markdown
Contributor

ik vind dit niet tellen als vibecoden tbh

ja nou dat is het wel als je met copilot het toepast maar dan kan je het beter hebben over vibecode tolerantie

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.

6 participants