From 8eee5ca8bfd79f47f1283c5756ff677c537fe3da Mon Sep 17 00:00:00 2001
From: Arif Khalid <88131400+Arif-Khalid@users.noreply.github.com>
Date: Thu, 17 Jul 2025 00:24:46 +0800
Subject: [PATCH] feat(client): Editor file visual indication (#59186)
---
client/src/templates/Challenges/classic/editor.css | 8 ++++++++
client/src/templates/Challenges/classic/editor.tsx | 7 +++++++
e2e/multifile-editor.spec.ts | 11 ++---------
3 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/client/src/templates/Challenges/classic/editor.css b/client/src/templates/Challenges/classic/editor.css
index 50d7e944fab..bbea71a0d3c 100644
--- a/client/src/templates/Challenges/classic/editor.css
+++ b/client/src/templates/Challenges/classic/editor.css
@@ -60,6 +60,14 @@ textarea.inputarea {
white-space: pre-wrap;
}
+.editor-file-name {
+ font-size: 18px;
+ font-weight: bold;
+ border-bottom: 1px solid var(--quaternary-background);
+ padding-left: 11px;
+ overflow: hidden;
+}
+
.action-row-container,
.description-container {
background-color: var(--secondary-background);
diff --git a/client/src/templates/Challenges/classic/editor.tsx b/client/src/templates/Challenges/classic/editor.tsx
index fa43fa0a6b4..1f3bd52bc83 100644
--- a/client/src/templates/Challenges/classic/editor.tsx
+++ b/client/src/templates/Challenges/classic/editor.tsx
@@ -1317,8 +1317,15 @@ const Editor = (props: EditorProps): JSX.Element => {
return challengeIsComplete();
};
+ const challengeFile = props.challengeFiles?.find(
+ challengeFile => challengeFile.fileKey === props.fileKey
+ );
+ const showFileName = challengeFile && props.challengeFiles!.length > 1;
return (