Skip to content

Ограниченная видимость курсов #593

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

bulat-tsydendorzhiev
Copy link

@bulat-tsydendorzhiev bulat-tsydendorzhiev commented May 7, 2025

  • При создании/редактировании курса можно выбрать/поменять опцию "Ограниченно видимый курс" и добавить/изменить описание. Для пояснения опции была добавлена подсказка с пояснением.
    course_creation
    course_editing
  • Как выглядит страница, когда на нее переходят незарегистрированные студенты.
    Not_enrolled_students_on_the_closed_course

Comment on lines 41 to 43
var hasAccessToMaterials = courseDto.IsOpen
? true
: isCourseStudent;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
var hasAccessToMaterials = courseDto.IsOpen
? true
: isCourseStudent;
var hasAccessToMaterials = courseDto.IsOpen || isCourseStudent;

}}
/>
}
label="Ограниченно видимый курс"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
label="Ограниченно видимый курс"
label="Ограниченно-видимый курс"

Comment on lines 102 to 104
const showMaterialsTab = course.isOpen
? true
: isCourseMentor || isAcceptedStudent
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const showMaterialsTab = course.isOpen
? true
: isCourseMentor || isAcceptedStudent
const showMaterialsTab = course.isOpen || isCourseMentor || isAcceptedStudent

@@ -131,7 +132,7 @@ export const CreateCourse: FC = () => {
const courseViewModel = {
name: state.courseName,
groupNames: state.selectedGroups,
isOpen: true,
isOpen: !state.isOpen,
Copy link
Member

Choose a reason for hiding this comment

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

Почему отрицание?

modifiers: [{ name: "offset", options: { offset: [0, -5], } }]
}}
title={"Материалы заданий и задач будут доступны только преподавателям и студентам курса"}>
<IconButton>
Copy link
Member

Choose a reason for hiding this comment

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

Давай всю эту галочку вынесем в отдельный компонент, чтобы конфигурацию для неё в двух местах не дублировать

Copy link
Member

Choose a reason for hiding this comment

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

Хотя лучше поменять текст при создании курса на "Сделать курс ограниченно-видимым", чтобы соотносилось с галочкой выше

@YuriUfimtsev
Copy link
Member

И добавь, пожалуйста, скриншот, как сейчас будет выглядеть ограниченно-видимый курс. Чтобы страница до интеграции описаний не была совсем уж пустой, можно туда добавить желтое предупреждение, что курс является ограниченно-видимым и для просмотра материалов необходимо на него записаться

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