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
add view completed exercises list #385
Conversation
Ага, только можно показывать еще названия упражнений, а глав думаю необязательно |
|
Т.е. можно например показывать все упражнения и на этой вкладке их отмечать/добавлять решение, а с первой убрать. Но как-то подумать щас, чтобы можно было минимальную версию сделать и потом допиливать |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Скорее всего часть изменений сделана не тобой, а просто копипаста из-за переноса, но мы руководствуемся принципами бойскаутов и оставляем место после себя чище
<div class="d-flex border border-top-0"> | ||
<div class="col-12 col-md-4 my-4 border-right"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
когда у нас потомки .col
- родителем должен быть .row
в твоем случае ты потерял адаптив этими флексами
при изменении на .row
проверь что границы не выпадают за экран (из-за отрицательного отступа скорее всего они выпадут, поэтому нужно будет их сделать уровнем выше)
<div class="col-12 col-md-8 mt-2"> | ||
<div class="pl-2 pr-3"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
накладываешь отступ на отступ
проверь мобильный вид 320 пикселей, он тебя удивит
<div class="tab-content"> | ||
@foreach($mainChapters as $mainChapter) | ||
<div | ||
class="tab-pane card-body {{ $mainChapter->path === '1' ? 'active' : '' }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.card-body
есть, а где родитель с .card
? или я что-то пропустил?
@include('partials.chapter_form_element', ['chapter' => $mainChapter]) | ||
</div> | ||
@endforeach | ||
<div class="form-group text-right"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а нужен ли тут .form-group
если элемент один?
resources/views/my/index.blade.php
Outdated
<div class="d-flex justify-content-between mb-4"> | ||
<div class="h3">{{ __('layout.nav.my_progress') }}</h3></div> | ||
<div class="h5"> | ||
<a href="{{ route('users.show', $user) }}">{{ $user->name }}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут тоже не подумал про мобилку
про переполнение в имени
(да и из-за разной высоты заголовков на мобилке кажется что что-то сломалось)
ok, хорошо
active, кстати, вроде нигде не потянулся
табов в проекте больше нет) можно было бы для верности еще id использовать,
тогда применится только по месту
вт, 30 июн. 2020 г. в 15:59, Andrey <notifications@github.com>:
… ***@***.**** commented on this pull request.
------------------------------
In resources/sass/app.scss
<#385 (comment)>:
> @@ -14,3 +14,7 @@
.x-z-index-0 {
z-index: 0 !important;
}
+
+.nav-tabs .nav-link.active {
Если изменения не готовы к вливанию, используй Draft PR при отправке, и
тегай меня и Колю (смотря кто нужен)
Так будет понятнее что еще что-то не доделано и ожидает исправлений)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#385 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACV2LTI4RLYMQDD7CHRX2VLRZHORPANCNFSM4OLQHMFA>
.
|
это всё равно плохое решение, даже с Id тут, к сожалению, работает теория разбитых окон, и мы не должны увеличивать энтропию :) |
Сделал в первом приближении |
Смотри, в общем списке показываются решения по отдельности. |
Давай немного причешем то, что есть, А потом уже будем дальше допиливать юзабилити. |
Да, там нужен distinct
Локально уже исправил
Кстати, это издержки работы с sqlite уже второй раз напарываюсь.
Почему-то sqlite прощает некоторые ошибки в запросах, локально все
работает, переходишь на postgresql, сыпятся ошибки
В sqlite distinct и groupBy в контексте этого запроса отрабатывают
одинаково, а в postgresql - нет
чт, 2 июл. 2020 г. в 17:47, Nikolay (feycot) Gagarinov <
notifications@github.com>:
… Смотри, в общем списке показываются решения по отдельности.
Т.е. на каждое решение своя запись.
И получается, что если у нас 2 решения, то запись как бы "дублируется",
потому что если мы заходим в детали то по факту всегда сперва видим v1
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#385 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACV2LTP7G4CA47MECT7K4ATRZSMXNANCNFSM4OLQHMFA>
.
|
Да, в sqlite свои особенности. |
исправил: |
Давай пока вкладку переименуем в "My Solutions" потому что она именно это показывает. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
замечания есть, надо их проработать и проведем ревью дальше
@@ -1,5 +1,7 @@ | |||
// Body | |||
$body-bg: #f8fafc; | |||
// | |||
$nav-tabs-link-active-bg: #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а зачем цвет менять?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Здесь пришлось прописывать цвет таба, так как был изменен цвет основного фона для этого проекта, а он тянет за собой изменение цвета таба (по умолчанию он был белым, как и нужно). Обсуждал это с Андреем, он подсказал, что это решается так
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Как это выглядит можно посмотреть здесь:
https://hexlet-sicp-test.herokuapp.com/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
кажется всё ок, но может еще что найду :D
newUrl = url.split("#")[0] + hash; | ||
history.replaceState(null, null, newUrl); | ||
}); | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Может этот код завернуть в функцию, Которую вызывать + убрать var
и заменить на const? Просто и правда выглядит, что какой-то чувак по-быстрому накидал решение не разбираясь в тонкостях js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, подумаю как это сделать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Смотри, если с js не хочешь морочиться, то можно и не делать, потом поправим наверное.
Просто из-за var
будет глобальная переменная. Ну и вообще тут код не очень написан, как мне кажется.
Посмотри, пожалуйста, я правильно понял, как это должно выглядеть