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

Friends #184

Merged
merged 7 commits into from
May 10, 2024
Merged

Friends #184

merged 7 commits into from
May 10, 2024

Conversation

kinoppyd
Copy link
Member

@kinoppyd kinoppyd commented May 9, 2024

Friends

Implementation of friends feature.

  • Show friend icons on schedule page
  • Show friend icons on Profile page
スクリーンショット 2024-05-10 0 50 06 スクリーンショット 2024-05-10 0 50 13 スクリーンショット 2024-05-10 0 50 21

@@ -29,11 +29,37 @@
</button>
<%= render 'dialog', profile: @profile %>
</div>
<% if @user.admin? %>
Copy link
Collaborator

Choose a reason for hiding this comment

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

すみません仕様をよく分かっていないのですが、adminじゃないとQRコードを表示できない仕様でしょうか?

Copy link
Member Author

Choose a reason for hiding this comment

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

すみません、説明不足でした!!!
これはリリースをRubyKaigiDay0に合わせたいなと思って塞いでいます、Day0の日にこのコミットをRevertして全員に使えるようにしようと思います

@e-ikuta
Copy link
Collaborator

e-ikuta commented May 10, 2024

[nice to have]
友達追加済みの人や、自分自身を追加しようとすると500エラーになります。

<div class="flex flex-wrap ml-6 mb-4">
<% @user.profile.friend_profiles.each do |profile| %>
<% if @friends_schedules_map[profile.id].include?(row.tracks[track].id) %>
<img src="<%= profile.avatar_url %>" class="h-8 w-8 rounded-full border-2 border-black mt-[-4px] ml-[-16px] mt-1" />
Copy link
Collaborator

@e-ikuta e-ikuta May 10, 2024

Choose a reason for hiding this comment

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

モバイルだとスケジュールに友達のアイコンが表示されませんでした。これから対応予定でしたらすみません🙏

Copy link
Member Author

Choose a reason for hiding this comment

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

モバイルの存在忘れてました

Copy link
Collaborator

Choose a reason for hiding this comment

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

モバイル対応はこのPRでやります?

Copy link
Member Author

Choose a reason for hiding this comment

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

別PRでやります

Copy link
Collaborator

@e-ikuta e-ikuta left a comment

Choose a reason for hiding this comment

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

LGTM!

@kinoppyd kinoppyd merged commit 0592dd9 into main May 10, 2024
2 checks passed
@kinoppyd kinoppyd deleted the features/friends branch May 10, 2024 13:37
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