Profiles: add local player profiles and isolated learning progress
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
Hướng nghiên cứu
Start by locating the Unity startup flow, persistent progress storage, profile settings UI, and existing automated tests in the C# project. Identify the current unscoped progress model and the APIs that read or mutate it, then define the profile context, migration, and backup boundaries described in the issue. Done means the acceptance criteria pass, including isolation, safe migration, deterministic import/export, failure atomicity, and keyboard and drum-navigation support for profile selection.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Add local player profiles so multiple people can use the same HitTheKit installation without overwriting one another's learning progress, practice history, results, or preferences.
This foundation should remain local-first. It must not require an account, email address, cloud service, or backend.
User experience
When no profile exists, guide the player through creating the first one.
When multiple profiles exist, show a Who's playing? screen at startup with:
- display name;
- one original preset avatar;
- practice level or progress summary when available;
- total practice time;
- most recent activity;
- create-profile action;
- manage-profile action.
When exactly one profile exists, the application may open it automatically while keeping profile switching available from the main menu or Settings.
An optional Play as guest entry may allow a temporary session that does not modify persistent player progress.
Profile identity
Each profile should contain only the minimum local identity data:
- stable internal profile ID;
- player-chosen display name;
- preset avatar ID;
- creation timestamp;
- last-used timestamp.
Preset avatars must be original project assets. Do not collect a real name, email address, date of birth, photograph, or other unnecessary personal information.
Profile-scoped data
The following data should belong to the active player profile:
- learning-path and lesson progress;
- unlocked lessons or exercises;
- song and lesson results;
- accuracy, high scores, streaks, and personal bests where supported;
- total and per-session practice time;
- per-song and per-lesson statistics;
- practice speed and difficulty preferences;
- training preferences that affect the individual learning experience;
- first-encounter/tutorial state;
- accessibility preferences when they are intended to follow the player.
All persistence APIs must require an explicit profile identity or an active-profile context. A profile must never read or mutate another profile's progress accidentally.
Device-scoped data
The following data should remain shared by the installation unless a later requirement proves otherwise:
- MIDI device discovery and hardware configuration;
- electronic-drum mappings and local device profiles;
- audio output and technical graphics settings;
- local song-library folders;
- local audio bindings and machine-specific file paths;
- application update and installation settings.
The application language may remain installation-wide initially. If it becomes profile-specific later, that policy must be explicit and migration-safe.
Profile management
Players should be able to:
- create a profile;
- select and switch profiles outside an active gameplay session;
- rename a profile;
- change its preset avatar;
- export a profile backup;
- import a compatible profile backup;
- delete a profile only after a clear confirmation;
- understand which profile is currently active.
Switching profiles during an active lesson or song must be rejected or deferred until the session ends.
Backup boundary
Support both:
- exporting a single profile;
- exporting all local profiles when appropriate.
Backups must not automatically contain:
- commercial audio;
- local audio files;
- machine-specific absolute paths;
- credentials or secrets;
- hardware identifiers that are not required for portable progress.
Import must validate the schema and avoid silently overwriting an existing profile. Profile-ID collisions need an explicit merge, replace, or create-copy policy.
Migration
Existing installations currently using unscoped progress must migrate safely:
- create one default local profile;
- attach existing compatible progress and practice history to that profile exactly once;
- preserve device-scoped configuration;
- make the migration idempotent;
- retain a recoverable backup until migration succeeds.
Acceptance criteria
- A new installation can create and select its first local profile.
- Two profiles can complete different lessons without affecting each other.
- Results, statistics, unlocks, and practice time are isolated by profile.
- Shared MIDI/device and local song configuration remains available to both profiles.
- The active profile is visible in the main experience and can be switched outside gameplay.
- Profile switching is prevented or safely deferred during an active session.
- Renaming or changing an avatar does not change the stable profile ID.
- Deleting a profile requires confirmation and cannot delete another profile's data.
- Single-profile and all-profile backups round-trip deterministically.
- Import rejects malformed, incompatible, or ambiguous backups without partial state.
- Backups contain no commercial media, credentials, or machine-specific absolute paths.
- Existing unscoped progress migrates once to a default profile without resetting hardware configuration.
- Automated tests cover creation, selection, isolation, switching, deletion, migration, backup, import, and failure atomicity.
- The profile-selection screen works with mouse, keyboard, and supported drum-navigation input.
Out of scope
- online accounts;
- passwords or PIN protection;
- cloud synchronization;
- social profiles or leaderboards;
- remote avatars or user-uploaded photographs;
- parental-control or identity-verification systems;
- backend services.
These can be evaluated later without making local profiles depend on them.
- Ngôn ngữ chính
- C#
- Star
- 0
- Fork
- 0
- Merge trung bình
- 16 giờ 9 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay 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 Codewriter90x/HitTheKit
-
hardware help wanted
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
Codewriter90x/HitTheKit#14 ·
-
documentation enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Codewriter90x/HitTheKit#54 ·
-
Platforms: electronic-drum MIDI input on Windows (and Linux)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởenhancement hardware help wanted
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 40/100
Codewriter90x/HitTheKit#53 ·
-
enhancement hardware
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 58/100
Codewriter90x/HitTheKit#52 ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
Codewriter90x/HitTheKit#42 ·
Tất cả issue của Codewriter90x/HitTheKit
Issue tương tự
-
type:task ux
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
elsa-workflows/elsa-foundation#5253 ·
Maintainer thường phản hồi trong vòng 1 ngày