Ajouter un tag d'énergie / ambiance optionnel sur les chansons
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 42/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- database, full-stack
Hướng nghiên cứu
Start by checking the existing song model, creation and update payloads, SongForm.svelte, and the library’s display and filtering code; inspect the current test setup and migration conventions. First propose an energy scale in the issue before coding. Done means the nullable field works through creation and updates, stays optional, appears as a tag only when set, filters the library, and make test-backend passes.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Contexte
Le modèle Song porte déjà tempo, tonalité et durée. C'est beaucoup, mais il manque une information que le tempo seul ne donne pas : l'intensité ressentie d'un morceau. Une ballade et un titre calme mais dense peuvent partager le même BPM.
Cette information sert à équilibrer un set : alterner les intensités, construire une montée, éviter trois morceaux calmes d'affilée.
User story
En tant que membre d'un groupe, je veux pouvoir qualifier l'énergie d'un morceau, afin d'équilibrer mes setlists et de retrouver rapidement les titres d'une ambiance donnée.
Périmètre
⚠️ Le champ est entièrement optionnel et ne doit jamais bloquer quoi que ce soit.
- colonne nullable en base ;
- présent dans le formulaire de chanson, mais jamais obligatoire ;
- aucun écran existant ne doit changer de comportement quand il est vide ;
- aucune validation ne doit échouer parce qu'il n'est pas renseigné.
Tâches
- Migration — ajouter une colonne nullable à
songs(par exempleenergy). Prévoir un.down.sql. - Choisir l'échelle — une échelle courte et lisible vaut mieux qu'une note sur 10. Suggestion :
calme,modéré,intense. Proposer son choix dans l'issue avant de coder. - Backend — exposer le champ dans le modèle et les payloads de création et de mise à jour, sans le rendre obligatoire.
- Frontend — ajouter un sélecteur dans
SongForm.svelte, avec une option vide sélectionnée par défaut. - Affichage — montrer le tag dans la bibliothèque, de façon discrète, et ne rien afficher quand il est absent.
- Filtre — permettre de filtrer la bibliothèque par énergie.
Critères d'acceptation
- Une chanson peut être créée et modifiée sans renseigner le champ
- Les chansons existantes restent parfaitement utilisables avec un champ vide
- Le tag apparaît dans la bibliothèque quand il est renseigné, et rien ne s'affiche sinon
- Le filtre par énergie fonctionne
-
make test-backendpasse
- Ngôn ngữ chính
- Python
- Star
- 2
- Fork
- 0
- Merge trung bình
- 21 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Doud75/Setly
-
agent-ready chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
-
Connexion avec Apple (SSO)Đang mởbackend enhancement frontend security
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
-
agent-ready backend enhancement frontend security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
-
agent-ready backend enhancement frontend security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
agent-ready backend bug frontend security
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
marketcalls/openalgo#2472 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 95/100
marimo-team/marimo#11949 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug server-time v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
modelcontextprotocol/servers#5559 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jxxghp/MoviePilot#7449 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
devops help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
guaardvark/guaardvark#421 ·
Maintainer thường phản hồi trong vòng 2 ngày