diff --git a/frontend/src/components/PlayerPanel.vue b/frontend/src/components/PlayerPanel.vue index 240c54c..aa713f6 100644 --- a/frontend/src/components/PlayerPanel.vue +++ b/frontend/src/components/PlayerPanel.vue @@ -350,7 +350,7 @@ async function cycleLoop() { type="button" class="btn-effect" :class="{ active: fx.active }" - :title="`${fx.name} – ${fx.description}`" + :title="fx.name" @click="onToggleEffect(fx)" > diff --git a/frontend/src/types/status.ts b/frontend/src/types/status.ts index 3253a90..0b875c8 100644 --- a/frontend/src/types/status.ts +++ b/frontend/src/types/status.ts @@ -53,7 +53,6 @@ export interface UploadedFile { export interface PlayerEffect { id: string name: string - description: string icon: string active: boolean } diff --git a/tests/test_effects.py b/tests/test_effects.py index dc93e5b..9580b98 100644 --- a/tests/test_effects.py +++ b/tests/test_effects.py @@ -89,7 +89,7 @@ class TestAudioEffects(unittest.TestCase): self.assertFalse(toggled) self.assertFalse(pipeline.is_active("distortion")) - def test_effects_metadata_does_not_contain_badge(self): + def test_effects_metadata_does_not_contain_badge_or_description(self): from zyrarbot.audio.effects.registry import get_available_effects_metadata metadata = get_available_effects_metadata() @@ -97,13 +97,14 @@ class TestAudioEffects(unittest.TestCase): for entry in metadata: self.assertIn("id", entry) self.assertIn("name", entry) - self.assertIn("description", entry) self.assertIn("icon", entry) self.assertNotIn("badge", entry) + self.assertNotIn("description", entry) - def test_effect_instances_have_no_badge_attribute(self): + def test_effect_instances_have_no_badge_or_description_attribute(self): for effect in create_default_effects(): self.assertFalse(hasattr(effect, "badge")) + self.assertFalse(hasattr(effect, "description")) if __name__ == "__main__": diff --git a/zyrarbot/audio/effects/base.py b/zyrarbot/audio/effects/base.py index f26e59d..31d633f 100644 --- a/zyrarbot/audio/effects/base.py +++ b/zyrarbot/audio/effects/base.py @@ -8,7 +8,6 @@ class AudioEffect(ABC): id: str name: str - description: str icon: str @abstractmethod diff --git a/zyrarbot/audio/effects/distortion.py b/zyrarbot/audio/effects/distortion.py index ded7c41..321a610 100644 --- a/zyrarbot/audio/effects/distortion.py +++ b/zyrarbot/audio/effects/distortion.py @@ -16,7 +16,6 @@ class DistortionEffect(AudioEffect): id = "distortion" name = "Przester" - description = "Ekstremalne podbicie głośności (1000%) z przesterem" icon = "zap" def __init__(self, multiplier: float = 10.0) -> None: diff --git a/zyrarbot/audio/effects/fourth_density.py b/zyrarbot/audio/effects/fourth_density.py index 530750c..89be80a 100644 --- a/zyrarbot/audio/effects/fourth_density.py +++ b/zyrarbot/audio/effects/fourth_density.py @@ -11,7 +11,6 @@ class FourthDensityEffect(AudioEffect): id = "fourth_density" name = "Czwarta gęstość" - description = "Pływający ton (sinusoidalna zmiana pitch z okresem ~1 sekundy)" icon = "sparkles" def __init__( diff --git a/zyrarbot/audio/effects/muffled.py b/zyrarbot/audio/effects/muffled.py index b3d3a08..1657e8c 100644 --- a/zyrarbot/audio/effects/muffled.py +++ b/zyrarbot/audio/effects/muffled.py @@ -10,7 +10,6 @@ class MuffledEffect(AudioEffect): id = "muffled" name = "Pod wodą" - description = "Filtr dolnoprzepustowy (dźwięk przytłumiony / zza ściany)" icon = "waves" def __init__(self, alpha: float = 0.085) -> None: diff --git a/zyrarbot/audio/effects/registry.py b/zyrarbot/audio/effects/registry.py index 9bd2aec..dea5f82 100644 --- a/zyrarbot/audio/effects/registry.py +++ b/zyrarbot/audio/effects/registry.py @@ -30,7 +30,6 @@ def get_available_effects_metadata() -> list[dict[str, Any]]: { "id": effect.id, "name": effect.name, - "description": effect.description, "icon": effect.icon, } for effect in create_default_effects() diff --git a/zyrarbot/audio/effects/robot.py b/zyrarbot/audio/effects/robot.py index 55cc5d9..8e6d231 100644 --- a/zyrarbot/audio/effects/robot.py +++ b/zyrarbot/audio/effects/robot.py @@ -11,7 +11,6 @@ class RobotEffect(AudioEffect): id = "robot" name = "Robot" - description = "Metaliczny, robotyczny głos cyborga (ring modulation ~65Hz)" icon = "bot" def __init__(self, freq_hz: float = 65.0, mix: float = 0.85) -> None: diff --git a/zyrarbot/audio/effects/toaster.py b/zyrarbot/audio/effects/toaster.py index 6483191..79025d3 100644 --- a/zyrarbot/audio/effects/toaster.py +++ b/zyrarbot/audio/effects/toaster.py @@ -10,7 +10,6 @@ class ToasterEffect(AudioEffect): id = "toaster" name = "Dźwięk z tostera" - description = "Memiczny dźwięk z mikrofalówki / kalkulatora (bitcrusher 5-bit, aliasing)" icon = "radio" def __init__(self, bit_depth: int = 5, downsample: int = 6) -> None: diff --git a/zyrarbot/audio/effects/tremolo.py b/zyrarbot/audio/effects/tremolo.py index f73dd50..ae7a80d 100644 --- a/zyrarbot/audio/effects/tremolo.py +++ b/zyrarbot/audio/effects/tremolo.py @@ -18,7 +18,6 @@ class TremoloEffect(AudioEffect): id = "tremolo" name = "Tremolo" - description = "Pulsowanie amplitudy (efekt wibracji głośności)" icon = "activity" def __init__(self, freq_hz: float = 4.0, depth: float = 0.6) -> None: