Skip to content

[UI] Редизайн расписания - #699

Open
Namxobick wants to merge 19 commits into
developfrom
feature/697
Open

Namxobick wants to merge 19 commits into
developfrom
feature/697

Conversation

@Namxobick

@Namxobick Namxobick commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

resolves #697

Я вижу дизайн этой странички так. Глянь тоже: если по дизайну всё устраивает, то маякни, чтобы я начал рефакторить этот код =) Также, если встретишь баги, пиши об этом.

Bugs:

  • Происходит лишняя отрисовка белого прямоугольника при поиске, когда история пуста и введено менее трех символов или когда ничего не найдено. Из-за этого происходит маргание
  • При нажатии на расписание в нижнем меню хотелось бы, чтобы оно возвращалось в исходное состояние, как это было раньше
  • Запретить скейл текста в виджете с датой
  • При переходе со вкладки «Преподаватель» на вкладку «Студент» возникает некорректное поведение

commit 324b238
Merge: 2d4faa5 b29bdca
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 23:02:58 2026 +0300

    Merge branch 'minorchange/schedule-color' of https://github.com/BitCodersNN/unn-mobile into minorchange/schedule-color

commit 2d4faa5
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 23:02:54 2026 +0300

    Изменил цвет фона при чередовании

commit c83544e
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 22:57:51 2026 +0300

    Revert "Изменил цвет фона при чередовании пар"

    This reverts commit b4f831e.

commit b29bdca
Author: UNN MOBILE runner <unnmobile@mail.ru>
Date:   Thu Sep 10 18:08:03 2026 +0000

    Change version in pubspec

commit b4f831e
Author: Yurin Andrey <andreyyurin@icloud.com>
Date:   Thu Sep 10 21:05:36 2026 +0300

    Изменил цвет фона при чередовании пар
@Namxobick Namxobick added feature New feature or request refactor labels Sep 12, 2026
@Namxobick

Copy link
Copy Markdown
Member Author

@Namxobick Namxobick self-assigned this Sep 12, 2026
@KriseevM
KriseevM deployed to develop-android September 15, 2026 15:44 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 15, 2026 15:44 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-ios September 15, 2026 17:55 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 15, 2026 18:04 — with GitHub Actions Active
Namxobick and others added 8 commits September 23, 2026 12:42
- Вынесены общие виджеты и создан AppSearchController<T>.
- Логика перенесена в ViewModels.
- Экспорт вынесен в отдельный файл.
- Нумерация недель привязана к семестрам, добавлен скролл к сегодня.
@Namxobick
Namxobick marked this pull request as ready for review September 23, 2026 14:36
@Namxobick
Namxobick requested a review from KriseevM September 23, 2026 14:36
@KriseevM
KriseevM deployed to develop-ios September 23, 2026 18:47 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 23, 2026 18:47 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 23, 2026 19:51 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 23, 2026 20:01 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 24, 2026 06:26 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-ios September 24, 2026 06:26 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 24, 2026 06:26 — with GitHub Actions Active
@KriseevM
KriseevM deployed to develop-android September 24, 2026 06:35 — with GitHub Actions Active
Comment on lines +8 to +22
DateTime get normalizeStartOfDay => copyWith(
hour: 0,
minute: 0,
second: 0,
millisecond: 0,
microsecond: 0,
);

DateTime get endOfDay => copyWith(
hour: 23,
minute: 59,
second: 59,
millisecond: 999,
microsecond: 999,
);

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.

Почему один normalize, а другой нет?

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.

Мб который normalize назвать просто startOfDay?

static String format(
DateTime dateTime,
String pattern, {
String local = 'ru_RU',

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.

А давно мы локаль через local называем, вместо locale? :D
Просто так уже было, судя по всему, но чёто до этого не замечал как-то)

Comment on lines +13 to +15
DateTime get start => _reference.startOfWeek.addWeeks(weekOffset);

DateTime get end => start.endOfWeek;

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.

Я конечно хз, мб дарт сам это оптимизирует как-то, но я бы не стал эти даты каждый раз пересчитывать, особенно учитывая, что weekOffset финальный

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.

Я верю в оптимизатор


extension IdTypeExtensions on IdType {
String getDisplayName() => switch (this) {
String get getDisplayName => switch (this) {

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.

Если делать геттер, то пусть уж будет displayName тогда

_exportScheduleService.requestCalendarPermission();

Future<bool> exportSchedule(DateTimeRangeType type) async {
final week = WeekRange(weekOffset: weekOffset);

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.

Мб сделать selectedTimeRange из поля класса, только переделать его на WeekRange тоже, вместо текущего DateTimeRange?

final nextStart = _nextSemester(semester).start;
if (!monday.isBefore(nextStart) ||
monday.addWeeks(1).startOfWeek.isSameDate(nextStart)) {
return _nextSemester(semester);

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.

В продолжение предыдущего коммента - тут тогда тоже можно будет вместо понедельника принимать целиком weekOffset, или вообще из класса его брать - как больше нравится, и использовать оттуда даты для проверки

This branch was successfully deployed

2 active deployments
develop-android — 56f7d962 Deployed Sep 24, 2026 by KriseevM via deploy #371
develop-ios — 56f7d962 Deployed Sep 24, 2026 by KriseevM via Build iOS app package (no codesign) #371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI] Улучшение внешнего вида расписания

3 participants