Skip to content

Jc/2448 integration avatar#2523

Open
jlchilders11 wants to merge 3 commits into
jc/update-avatar-componentfrom
jc/2448-integration-avatar
Open

Jc/2448 integration avatar#2523
jlchilders11 wants to merge 3 commits into
jc/update-avatar-componentfrom
jc/2448-integration-avatar

Conversation

@jlchilders11

Copy link
Copy Markdown
Collaborator

Issue: #2448

Summary & Context

Performs the necessary hook up for allowing for the saving of a new avatar image for the user, or deleting that same image.

  • Link to components/page: localhost:8000/users/me/?edit=True

Changes

  • Implements the alpine click functionality on the button component to allow for saving the file when clicking the button
  • Implements the save function, which passes the formdata to the api/v1/users/me/ endpoint
  • Updates that endpoint to accept new profile images, as well as allowing the view to optionally accept the delete argument to delete the profile_image
  • Updates the user profile page to redirect to login if not already logged in

‼️ Risks & Considerations ‼️

Please list any potential risks or areas that need extra attention during review/testing
The states in the form are somewhat fragile, as they rely on invisible checkboxes and srcs on images.
Javascriptless functionality will be implemented in a future ticket.

Self-review Checklist

  • Link this PR to the related GitHub Project ticket

Frontend

  • No console errors or warnings

@coderabbitai

coderabbitai Bot commented Jul 9, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eb08a608-16a5-40fd-b251-df6379f34aee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch jc/2448-integration-avatar

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant