Skip to content

Nuevos cambios de Lennie - #157

Merged
SoyLennie merged 12 commits into
masterfrom
dev_lennie
Mar 11, 2026
Merged

Nuevos cambios de Lennie#157
SoyLennie merged 12 commits into
masterfrom
dev_lennie

Conversation

@spiccinini

Copy link
Copy Markdown
Contributor

No description provided.

SoyLennie and others added 12 commits March 10, 2026 18:55
- Dockerfile: imagen python:3.11-slim con ffmpeg, setuptools<58 y tzdata
- docker-compose.yml: levanta el server y corre migrate automáticamente
- .dockerignore: excluye archivos innecesarios de la imagen
- settings.py: corregir timezone a America/Argentina/Buenos_Aires (nombre canónico IANA)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- models.py: usar save_peaks_to_json() en lugar del método save() eliminado
- views.py: agregar view audio_peaks_json que sirve los datos de peaks como JSON
- urls.py: registrar ruta <pk>/peaks/ que el template ya referenciaba

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- models.py: aumentar bar_count de 57→200 y 117→400 para mayor resolución
- views.py: servir .big.json (400 peaks) con fallback a .json
- audio_detail.html: barWidth 3→2, agregar barRadius 2 para barras más finas y redondeadas

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Django 4.1 → 5.2 LTS
- django-allauth 0.43 → 65.15.0 (AccountMiddleware, ACCOUNT_SIGNUP_FORM_CLASS, CustomSignupForm rewrite)
- django-activity-stream 1.4.2 → 2.0.0
- django-taggit 3.1.0 → 6.1.0 (removes deprecated index_together)
- djangorestframework → 3.16.1
- django-crispy-forms → 2.6, crispy-bootstrap5 → 2026.3
- easy-thumbnails → 2.10.1, django-avatar → 9.0.0
- django-haystack → 3.3.0, django-cors-headers → 4.0
- Pillow → 12.1.0
- All 43 tests pass, pip-audit reports 0 vulnerabilities

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Add explicit minimum version constraints for vulnerable transitive deps:
- cryptography>=46.0.5 (CVE-2026-26007)
- pyasn1>=0.6.2 (CVE-2026-23490)
- requests>=2.32.4 (CVE-2024-47081)
- sqlparse>=0.5.4 (GHSA-27jp-wm6q-gp25)
- urllib3>=2.6.3 (CVE-2025-66418, CVE-2025-66471, CVE-2026-21441)

pip-audit now reports 0 vulnerabilities, all 43 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
allauth 65.x requires PyJWT (Google OAuth2), oauthlib and
requests-oauthlib (Twitter OAuth1) which were installed locally
as transitive deps but not declared in requirements.txt.
All 43 tests now pass in Docker.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add Docker option (recommended) with docker compose up
- Update virtualenv option to require Python 3.11
- Replace migrate --fake-initial with migrate
- Remove unnecessary makemigrations step

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Home page (/) now shows latest audio tracks for unauthenticated users
  instead of redirecting to login
- Implement audio_object.html with compact WaveSurfer player (64px):
  waveform visible on page load from pre-computed peaks, audio loads
  only when user clicks play
- Add WaveSurfer v7 globally to base.html with lazy audio loading
  and initRpPlayers() for el-pagination infinite scroll support
- Fix peaks endpoint to return {peaks, duration} (duration in seconds);
  WaveSurfer v7 requires duration to render peaks without a URL
- Fix peaks normalization (0-60 integers → 0-1 floats) and channel
  wrapping ([peaks] instead of flat array) for WaveSurfer v7 API
- Update audio_detail.html to use new peaks format and remove
  duplicate WaveSurfer script tag

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- mixed_list.html: wrap all items (audio, project, message) in <li
  class="mixed-item"> for valid HTML and uniform full-width rendering;
  message teaser gets teaser-box border to match audio/project style
- user_teaser.html: replace float-start with flexbox in all modes so
  <li> containers don't collapse and icons+names align properly
- redpanal.css: add .mixed-item (width 100%, mb-1rem), fix
  .users-list-wrapper to width 100%, add spacing between user items

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- index view: non-authenticated users now see the full mixed feed
  (audios, projects, messages) with stats and new users, same as /live/
- index.html: replace audio-only list with project description banner
  (with sign-up/sign-in CTAs), mixed feed, and right sidebar with
  statistics + new users list
- all_activities.html: call initRpPlayers() on el-pagination scroll
  so waveforms load for newly paginated items

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@SoyLennie
SoyLennie merged commit 9abe7df into master Mar 11, 2026
1 check passed
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