Skip to content
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

Release 2021-10-27 03:30:57 #3447

Merged
merged 49 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
9c5d3a5
プラクティス個別ページのDocsのタブにDocの数を表示
Ichiyo14 Oct 17, 2021
174436f
プラクティスに紐付いたDocsのテストデータを追加
Ichiyo14 Oct 17, 2021
6dcbb54
lintを通した
Ichiyo14 Oct 17, 2021
5ee27cf
Update Ruby version
ima1zumi Oct 17, 2021
0b8a811
GitHub Actions の ruby-version のバージョンを上げる
ima1zumi Oct 18, 2021
1a8d68d
GemfileのRuby versionを固定値にする
ima1zumi Oct 18, 2021
175ade0
lintのRuby versionを2.7.4に上げる
ima1zumi Oct 18, 2021
ec96e71
Merge branch 'main' into feature/show-the-number-of-docs-in-the-docs-tab
Ichiyo14 Oct 21, 2021
899c693
ブックマークが0件の時の表示を変更した
Ichiyo14 Oct 21, 2021
96730b0
ユーザプロフィールの質問タブに、該当ユーザの質問した数を表示
IkumaTadokoro Oct 21, 2021
77713dd
Bump any_login 1.4.3 to 1.4.4
ima1zumi Oct 21, 2021
70ee41e
any_loginをdevelopmentに移動
ima1zumi Oct 21, 2021
e6746b7
ボタンの横幅の最小値を設定
mami-inuzuka Oct 21, 2021
c388980
any_loginの定義位置を戻す
ima1zumi Oct 21, 2021
48f2b25
any_loginをtracerouteの除外対象に定義
ima1zumi Oct 21, 2021
a2d3181
productionでany_loginを無効化する
ima1zumi Oct 21, 2021
72c1629
コメントを初期表示は8件としクリックで残り全てを表示する
kaiyu-tech Oct 13, 2021
88ce43d
ソースコードを一部誤って意図せず編集したため元のバージョンに戻した
kaiyu-tech Oct 13, 2021
2847c71
テストデータの並び順が不定になるため作成日時を明示的に設定
kaiyu-tech Oct 13, 2021
ea9d73e
ボタン要素を追加したためコメント要素が2番目になりテストがエラーとなるため修正
kaiyu-tech Oct 13, 2021
a85affa
テストデータに作成日時がなく並び順が不定になるため明示的に設定
kaiyu-tech Oct 13, 2021
bf7e2e1
コメントの全数が8件以下の場合はボタン要素を表示しない
kaiyu-tech Oct 13, 2021
25982f6
categories_practices.positionとcategories.positionにindexを追加
shibaaaa Oct 23, 2021
62f3aaa
未アサインの提出物のページングを削除
Ichiyo14 Oct 24, 2021
658e957
メンター向けプラクティスWatch機能の追加
kaiyu-tech Oct 15, 2021
64bf1c1
提出物が不要のプラクティスでもWatchボタンが表示されていたため修正
kaiyu-tech Oct 24, 2021
80819bf
メンターモードがOFF時にはWatchボタンを表示しないように修正
kaiyu-tech Oct 24, 2021
9143411
コメントが9件以上ある時のシステムテストを追加
kaiyu-tech Oct 24, 2021
7790163
必ず真になるため不要なIF文を削除
kaiyu-tech Oct 24, 2021
e088eb1
テストデータの「提出物へのコメント」を追加したため未返信の提出物が1件減ったためテストを修正
kaiyu-tech Oct 24, 2021
6f4ab18
テストデータの「提出物へのコメント」を追加したためコメントの総数が20件増えたためテストを修正
kaiyu-tech Oct 24, 2021
673c5a3
作成日付でソートされていることがわかるようにコメントのテストデータを1分間隔に変更
kaiyu-tech Oct 24, 2021
016d170
未アサインの提出物のページングに係るテストを修正
Ichiyo14 Oct 24, 2021
62f74c4
lintを通した
Ichiyo14 Oct 25, 2021
c93dc32
古いコメントを表示する にデザインを適用
machida Oct 25, 2021
8e446e9
プラクティスのウォッチにデザインをあてた
machida Oct 25, 2021
040f71c
:cop:
machida Oct 25, 2021
2807e61
Merge pull request #3406 from fjordllc/feature/show-the-number-of-doc…
komagata Oct 26, 2021
20b58c0
Merge pull request #3434 from fjordllc/bug/change-display-of-.a-card
komagata Oct 26, 2021
76e5327
Merge pull request #3439 from shibaaaa/add-index-categories
komagata Oct 26, 2021
e863f73
Merge pull request #3435 from fjordllc/fix-deprecation-warning
komagata Oct 26, 2021
5a150de
Merge pull request #3432 from fjordllc/feature/add-users-question-count
komagata Oct 26, 2021
cecce4c
rubocop-fjordを0.2.0にアップデート
komagata Oct 26, 2021
b369256
Merge pull request #3436 from fjordllc/bug/fix_copy_button_style
machida Oct 26, 2021
47dee56
Merge pull request #3448 from fjordllc/chore/rubocop-fjord-0.2.0
komagata Oct 26, 2021
a35516d
Merge pull request #3388 from fjordllc/feature/show_latest_8_comments…
komagata Oct 26, 2021
5ce8b48
Merge pull request #3402 from fjordllc/feature/practice_watch_for_men…
komagata Oct 26, 2021
6a884a6
Merge pull request #3441 from fjordllc/feature/remove-paging-for-unas…
komagata Oct 26, 2021
864e9ee
Merge pull request #3411 from fjordllc/update-ruby
komagata Oct 27, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.8
ruby-version: 2.7.4
bundler-cache: true

- name: Cache node modules
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
# uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@0c7e9c4d53d534e2c72b5b06535a3817d6d39fe1
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6.8
ruby-version: 2.7.4
bundler-cache: true # runs 'bundle install' and caches installed gems automatically

- name: Cache node modules
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.8
2.7.4
2 changes: 2 additions & 0 deletions .traceroute.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ignore_unused_routes:
- rails\/.*
- static_pages#thanks
- static_pages#retire
- any_login\/.*
ignore_unreachable_actions:
- rails\/.*
- .*#admin_login\?
Expand All @@ -22,3 +23,4 @@ ignore_unreachable_actions:
- reports#convert_to_ceiled_hour
- reports#practice_options
- home#pricing
- any_login\/.*
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:2.6.8-alpine
FROM ruby:2.7.4-alpine

ENV RAILS_ENV production
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source 'https://rubygems.org'
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby RUBY_VERSION
ruby '2.7.4'

gem 'bootsnap', '>= 1.4.4', require: false
gem 'image_processing', '~> 1.2'
Expand Down Expand Up @@ -72,7 +72,7 @@ group :development do
gem 'letter_opener_web', '~> 1.0'
gem 'rack-mini-profiler', '~> 2.0'
gem 'rubocop', require: false
gem 'rubocop-fjord', require: false
gem 'rubocop-fjord', '~> 0.2.0', require: false
gem 'rubocop-minitest', require: false
gem 'rubocop-performance', require: false
gem 'rubocop-rails', require: false
Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ GEM
activerecord (>= 4.2)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
any_login (1.4.3)
any_login (1.4.4)
rails (>= 4.2.7)
ast (2.4.2)
bcrypt (3.1.16)
Expand Down Expand Up @@ -356,7 +356,7 @@ GEM
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.8.0)
parser (>= 3.0.1.1)
rubocop-fjord (0.1.4)
rubocop-fjord (0.2.0)
rubocop (>= 1.0)
rubocop-performance
rubocop-minitest (0.11.0)
Expand Down Expand Up @@ -529,7 +529,7 @@ DEPENDENCIES
ransack
rollbar
rubocop
rubocop-fjord
rubocop-fjord (~> 0.2.0)
rubocop-minitest
rubocop-performance
rubocop-rails
Expand All @@ -553,7 +553,7 @@ DEPENDENCIES
webpacker (~> 5.0)

RUBY VERSION
ruby 2.6.8p205
ruby 2.7.4p191

BUNDLED WITH
2.2.24
2.2.27
7 changes: 7 additions & 0 deletions app/assets/stylesheets/atoms/_a-button.sass
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@
&.is-lg-icon
i
font-size: 1.5em
&.is-text
background: none
border: none
+hover-link-reversal
+default-link
height: auto !important
padding: 0 !important

//size
&.is-xs,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.practice-first-actions
+media-breakpoint-up(md)
display: flex
margin-bottom: 1.5rem
+media-breakpoint-down(sm)
margin-bottom: 1rem

.practice-first-actions__start
flex: 1

.practice-first-actions__end
min-width: 6rem
.is-inactive
background-color: $background-shade
+media-breakpoint-down(sm)
margin-top: .75rem
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.practice-status-buttons
+media-breakpoint-up(md)
margin-bottom: 1.5rem
+media-breakpoint-down(sm)
margin-bottom: 1rem

.practice-status-buttons__start
text-align: center
width: 100%
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$thread-header-author: 4.75rem
.thread-comment-form
+media-breakpoint-up(md)
+position(relative)
Expand Down
25 changes: 25 additions & 0 deletions app/assets/stylesheets/blocks/thread/_thread-comments-more.sass
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.thread-comments-more
+position(relative)
+media-breakpoint-up(md)
margin-bottom: 2rem
padding-left: $thread-header-author
+media-breakpoint-down(sm)
padding-left: 0
margin-bottom: 1rem
&::before,
&::after
content: ''
display: block
height: 8px
width: 100%
height: 7px
background: repeating-linear-gradient(-45deg, $border-shade, $border-shade 3px, transparent 3px, transparent 6px)

.thread-comments-more__inner
+padding(vertical, 1rem)

.thread-comments-more__action
+media-breakpoint-up(md)
max-width: 16rem
+padding(horizontal, .375rem)
+margin(horizontal, auto)
6 changes: 3 additions & 3 deletions app/assets/stylesheets/blocks/thread/_thread-comments.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$thread-header-author: 3.5rem
.thread-comments
+position(relative)
+margin(horizontal, auto)
Expand All @@ -8,10 +7,11 @@ $thread-header-author: 3.5rem
.thread-comment
+position(relative)
border-radius: .25rem
margin-bottom: 2rem
padding-left: $thread-header-author + 1.25rem
&.is-no-author-icon
padding-left: 0
+media-breakpoint-up(md)
margin-bottom: 2rem
padding-left: $thread-header-author
+media-breakpoint-down(sm)
padding-left: 0
margin-bottom: 1rem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
justify-content: flex-end

.thread-header-actions__action
min-width: 5.5rem
+media-breakpoint-up(md)
+padding(horizontal, .25rem)
min-width: 7rem
Expand Down
3 changes: 1 addition & 2 deletions app/assets/stylesheets/blocks/thread/_thread-questions.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$thread-header-author: 3.5rem
.thread-questions
+position(relative)
border-radius: .25rem
Expand All @@ -7,7 +6,7 @@ $thread-header-author: 3.5rem
+position(relative)
border-radius: .25rem
margin-bottom: 2rem
padding-left: $thread-header-author + 1.25rem
padding-left: $thread-header-author
&.is-no-author-icon
padding-left: 0
+media-breakpoint-down(sm)
Expand Down
1 change: 0 additions & 1 deletion app/assets/stylesheets/blocks/thread/_thread.sass
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
$thread-header-author: 6rem
.thread
+position(relative)
+margin(horizontal, auto)
Expand Down
1 change: 1 addition & 0 deletions app/assets/stylesheets/variables/_layout.sass
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ $header-height: 4rem
$main-visual-height: 20rem
$page-header-height: 6rem
$thread-max-width: 53rem
$thread-header-author: 4.75rem
5 changes: 4 additions & 1 deletion app/controllers/api/comments_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ class API::CommentsController < API::BaseController
before_action :set_available_emojis, only: %i[index create]

def index
@comments = commentable.comments.order(created_at: :asc)
@comments = commentable.comments.order(created_at: :desc)
@comment_total_count = @comments.size
@comments = @comments.limit(params[:comment_limit])
.offset(params[:comment_offset])
end

def create
Expand Down
1 change: 0 additions & 1 deletion app/controllers/api/products/unassigned_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def index
.not_wip
.list
.order_for_not_wip_list
.page(params[:page])
@latest_product_submitted_just_5days = @products.find { |product| product.elapsed_days == 5 }
@latest_product_submitted_just_6days = @products.find { |product| product.elapsed_days == 6 }
@latest_product_submitted_over_7days = @products.find { |product| product.elapsed_days >= 7 }
Expand Down
40 changes: 20 additions & 20 deletions app/javascript/bookmarks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@
|
| ロード中
.container.is-md(v-else)
.thread-list-tools(v-if='bookmarks.length')
.thread-list-tools(v-if='bookmarks.length === 0')
.o-empty-message
.o-empty-message__icon
i.far.fa-sad-tear
p.o-empty-message__text
| ブックマークしているものはありません。
.thread-list-tools(v-else)
.form-item.is-inline
label.a-form-label(for='thread-list-tools__action')
| 編集
Expand All @@ -17,25 +23,19 @@
v-model='checked'
)
span#spec-edit-mode
.thread-list-tools(v-else)
.o-empty-message
.o-empty-message__icon
i.far.fa-sad-tear
p.o-empty-message__text
| ブックマークしているものはありません。
nav.pagination(v-if='totalPages > 1')
pager(v-bind='pagerProps')
.thread-list.a-card
.thread-list__items
bookmark(
v-for='bookmark in bookmarks',
:key='bookmark.id',
:bookmark='bookmark',
:checked='checked',
@updateIndex='updateIndex'
)
nav.pagination(v-if='totalPages > 1')
pager(v-bind='pagerProps')
nav.pagination(v-if='totalPages > 1')
pager(v-bind='pagerProps')
.thread-list.a-card
.thread-list__items
bookmark(
v-for='bookmark in bookmarks',
:key='bookmark.id',
:bookmark='bookmark',
:checked='checked',
@updateIndex='updateIndex'
)
nav.pagination(v-if='totalPages > 1')
pager(v-bind='pagerProps')
</template>
<script>
import Bookmark from './bookmark.vue'
Expand Down
Loading