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

enhance(frontend): ノートに埋め込まれたメディアのコンテキストメニューから管理者用のファイル管理画面を開けるように #15460

Conversation

samunohito
Copy link
Member

What

タイトルの通りです。
ノートに埋め込まれた画像、動画、音声のメニューから管理者用のファイル管理画面を開けるようにします(モデレーター権限以上のみ)

Why

fix #15440

Additional info (optional)

ローカルで実際に動作確認済み

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Feb 11, 2025
@samunohito samunohito marked this pull request as ready for review February 11, 2025 12:09
Copy link

codecov bot commented Feb 11, 2025

Codecov Report

Attention: Patch coverage is 66.66667% with 15 lines in your changes missing coverage. Please review.

Project coverage is 18.84%. Comparing base (30df768) to head (b882a2e).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
packages/frontend/src/components/MkMediaImage.vue 0.00% 15 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #15460      +/-   ##
===========================================
+ Coverage    18.83%   18.84%   +0.01%     
===========================================
  Files          768      768              
  Lines       111570   111606      +36     
  Branches      1236     1236              
===========================================
+ Hits         21013    21037      +24     
- Misses       89966    89978      +12     
  Partials       591      591              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kakkokari-gtyih
Copy link
Contributor

アイコンがti-pencilなのがちょっとミスマッチ感あるかも

@samunohito
Copy link
Member Author

(言われて初めて気が付いた)

Comment on lines 233 to 234
text: i18n.ts._fileViewer.titleAdmin,
icon: 'ti ti-info-circle',
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
text: i18n.ts._fileViewer.titleAdmin,
icon: 'ti ti-info-circle',
text: i18n.ts.moderation,
icon: 'ti ti-photo-exclamation',

でよさそう

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed
b882a2e

@mi-gh-maintainer mi-gh-maintainer bot merged commit 4d562e7 into misskey-dev:develop Feb 13, 2025
22 checks passed
Copy link

Thank you 🙏

DA-TENSHI pushed a commit to SHINANOSKEY-Projekt/SHINANOSKEY that referenced this pull request Feb 13, 2025
…isskey-dev#15460)

* enhance(frontend): ノートに埋め込まれたメディアのコンテキストメニューから管理者用のファイル管理画面を開けるように

* fix icon

* fix menu

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
LemonDouble pushed a commit to LemonDouble/misskey that referenced this pull request Mar 1, 2025
…isskey-dev#15460)

* enhance(frontend): ノートに埋め込まれたメディアのコンテキストメニューから管理者用のファイル管理画面を開けるように

* fix icon

* fix menu

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
3 participants