Skip to content

Conversation

@pierluca
Copy link
Contributor

@pierluca pierluca commented Nov 20, 2025

Summary by cubic

Adds delete confirmation modals for classes and lessons, introduces a lesson share modal, standardizes sharing types (anonymous/private), updates translations, and tweaks dashboard/table layout for better small‑screen support.

  • New Features

    • Class and lesson deletion now show confirmation modals with success/error toasts (CRT-218).
    • Lesson “Copy Link” opens a share modal with context-aware text and the join link (CRT-213).
    • i18n extraction now includes src/i18n; added missing keys and messages (CRT-201).
  • Refactors

    • Sharing type unified from “public” to “private” across UI, forms, and locales (CRT-197).
    • Translation fixes and consistency updates in EN/FR (Classes vs Lessons, Students/Élèves) (CRT-226, CRT-201).
    • Dashboard card padding updated and table column sizes set to fit smaller screens; home card order adjusted (CRT-226, CRT-197).
    • SessionActions now receives the session object; share link generation updated.

Written for commit d8a2ff1. Summary will update automatically on new commits.

@pierluca pierluca merged commit 34110f7 into feature/CRT-197_ChakraUIIntegration Nov 20, 2025
1 check failed
@pierluca pierluca deleted the bugfix/various_fixes branch November 20, 2025 03:39
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

6 issues found across 18 files

Prompt for AI agents (all 6 issues)

Understand the root cause of the following 6 issues and fix them.


<file name="frontend/content/locales/fr.json">

<violation number="1" location="frontend/content/locales/fr.json:661">
The French description for `ListClasses.pageDescription` uses incorrect gender agreement (“créés”, “donné”), resulting in ungrammatical UI text. Please adjust the participles to match the feminine nouns.</violation>
</file>

<file name="frontend/src/components/session/SessionActions.tsx">

<violation number="1" location="frontend/src/components/session/SessionActions.tsx:112">
`values.link` never renders because the underlying message strings lack a `{link}` placeholder, so the Share modal drops the intended detail link.</violation>
</file>

<file name="frontend/content/compiled-locales/fr.json">

<violation number="1" location="frontend/content/compiled-locales/fr.json:221">
Spell “réessayer” correctly in this error message (no hyphen, accented é) to provide proper French text.</violation>

<violation number="2" location="frontend/content/compiled-locales/fr.json:1621">
Correct the spelling of “réessayer” in this error message to avoid a French typo.</violation>

<violation number="3" location="frontend/content/compiled-locales/fr.json:1949">
Use the correct imperative “Authentifie-toi” in this message to avoid a French grammar mistake.</violation>

<violation number="4" location="frontend/content/compiled-locales/fr.json:2027">
Fix the typo in “réessayer” and apply proper French punctuation (space before “!”) in this error message.</violation>
</file>

Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR

},
"ListClasses.pageDescription": {
"message": ""
"message": "Cette page affiche les classes que vous avez créés. Cliquez sur une classe donné pour modifier les leçons et voir les progrès de vos élèves."
Copy link

@cubic-dev-ai cubic-dev-ai bot Nov 20, 2025

Choose a reason for hiding this comment

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

The French description for ListClasses.pageDescription uses incorrect gender agreement (“créés”, “donné”), resulting in ungrammatical UI text. Please adjust the participles to match the feminine nouns.

Prompt for AI agents
Address the following comment on frontend/content/locales/fr.json at line 661:

<comment>The French description for `ListClasses.pageDescription` uses incorrect gender agreement (“créés”, “donné”), resulting in ungrammatical UI text. Please adjust the participles to match the feminine nouns.</comment>

<file context>
@@ -597,14 +648,20 @@
   },
   &quot;ListClasses.pageDescription&quot;: {
-    &quot;message&quot;: &quot;&quot;
+    &quot;message&quot;: &quot;Cette page affiche les classes que vous avez créés. Cliquez sur une classe donné pour modifier les leçons et voir les progrès de vos élèves.&quot;
   },
   &quot;ListClasses.pageTitle&quot;: {
</file context>
Suggested change
"message": "Cette page affiche les classes que vous avez créés. Cliquez sur une classe donné pour modifier les leçons et voir les progrès de vos élèves."
"message": "Cette page affiche les classes que vous avez créées. Cliquez sur une classe donnée pour modifier les leçons et voir les progrès de vos élèves."
Fix with Cubic

{...(session?.isAnonymous
? SessionShareMessages.shareModalAnonymousLessonInfo
: SessionShareMessages.shareModalPrivateLessonInfo)}
values={{
Copy link

@cubic-dev-ai cubic-dev-ai bot Nov 20, 2025

Choose a reason for hiding this comment

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

values.link never renders because the underlying message strings lack a {link} placeholder, so the Share modal drops the intended detail link.

Prompt for AI agents
Address the following comment on frontend/src/components/session/SessionActions.tsx at line 112:

<comment>`values.link` never renders because the underlying message strings lack a `{link}` placeholder, so the Share modal drops the intended detail link.</comment>

<file context>
@@ -105,16 +88,43 @@ const SessionActions = ({
+            {...(session?.isAnonymous
+              ? SessionShareMessages.shareModalAnonymousLessonInfo
+              : SessionShareMessages.shareModalPrivateLessonInfo)}
+            values={{
+              link: (chunks) =&gt; (
+                &lt;Link
</file context>
Fix with Cubic

{
"type": 0,
"value": "There was an error deleting the task. Please try again!"
"value": "Une erreur est survenue lors de l'effacement de l'activité. Merci de re-essayer!"
Copy link

@cubic-dev-ai cubic-dev-ai bot Nov 20, 2025

Choose a reason for hiding this comment

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

Fix the typo in “réessayer” and apply proper French punctuation (space before “!”) in this error message.

Prompt for AI agents
Address the following comment on frontend/content/compiled-locales/fr.json at line 2027:

<comment>Fix the typo in “réessayer” and apply proper French punctuation (space before “!”) in this error message.</comment>

<file context>
@@ -1834,43 +2000,43 @@
     {
       &quot;type&quot;: 0,
-      &quot;value&quot;: &quot;There was an error deleting the task. Please try again!&quot;
+      &quot;value&quot;: &quot;Une erreur est survenue lors de l&#39;effacement de l&#39;activité. Merci de re-essayer!&quot;
     }
   ],
</file context>
Fix with Cubic

{
"type": 0,
"value": "Une erreur s'est produite lors de la suppression de la leçon. Veuillez réessayer !"
"value": "Une erreur est survenue lors de l'effacement de la leçon. Veuillez re-essayer."
Copy link

@cubic-dev-ai cubic-dev-ai bot Nov 20, 2025

Choose a reason for hiding this comment

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

Correct the spelling of “réessayer” in this error message to avoid a French typo.

Prompt for AI agents
Address the following comment on frontend/content/compiled-locales/fr.json at line 1621:

<comment>Correct the spelling of “réessayer” in this error message to avoid a French typo.</comment>

<file context>
@@ -1449,46 +1591,46 @@
     {
       &quot;type&quot;: 0,
-      &quot;value&quot;: &quot;Une erreur s&#39;est produite lors de la suppression de la leçon. Veuillez réessayer !&quot;
+      &quot;value&quot;: &quot;Une erreur est survenue lors de l&#39;effacement de la leçon. Veuillez re-essayer.&quot;
     }
   ],
</file context>
Fix with Cubic

"ClassDeleteModal.error": [
{
"type": 0,
"value": "Une erreur est survenue lors de l'effacement de la classe. Veuillez re-essayer."
Copy link

@cubic-dev-ai cubic-dev-ai bot Nov 20, 2025

Choose a reason for hiding this comment

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

Spell “réessayer” correctly in this error message (no hyphen, accented é) to provide proper French text.

Prompt for AI agents
Address the following comment on frontend/content/compiled-locales/fr.json at line 221:

<comment>Spell “réessayer” correctly in this error message (no hyphen, accented é) to provide proper French text.</comment>

<file context>
@@ -185,10 +191,46 @@
+  &quot;ClassDeleteModal.error&quot;: [
+    {
+      &quot;type&quot;: 0,
+      &quot;value&quot;: &quot;Une erreur est survenue lors de l&#39;effacement de la classe. Veuillez re-essayer.&quot;
+    }
+  ],
</file context>
Suggested change
"value": "Une erreur est survenue lors de l'effacement de la classe. Veuillez re-essayer."
"value": "Une erreur est survenue lors de l'effacement de la classe. Veuillez réessayer."
Fix with Cubic

{
"type": 0,
"value": "Please authenticate below to access your lesson."
"value": "Authentifies-toi ci-dessous pour accéder à la leçon."
Copy link

@cubic-dev-ai cubic-dev-ai bot Nov 20, 2025

Choose a reason for hiding this comment

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

Use the correct imperative “Authentifie-toi” in this message to avoid a French grammar mistake.

Prompt for AI agents
Address the following comment on frontend/content/compiled-locales/fr.json at line 1949:

<comment>Use the correct imperative “Authentifie-toi” in this message to avoid a French grammar mistake.</comment>

<file context>
@@ -1780,13 +1946,13 @@
     {
       &quot;type&quot;: 0,
-      &quot;value&quot;: &quot;Please authenticate below to access your lesson.&quot;
+      &quot;value&quot;: &quot;Authentifies-toi ci-dessous pour accéder à la leçon.&quot;
     }
   ],
</file context>
Fix with Cubic

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.

2 participants