Skip to content

Add attachments to debate#13521

Merged
alecslupu merged 30 commits intodevelopfrom
change/add-attachments-in-debates
Dec 6, 2024
Merged

Add attachments to debate#13521
alecslupu merged 30 commits intodevelopfrom
change/add-attachments-in-debates

Conversation

@antopalidi
Copy link
Copy Markdown
Member

@antopalidi antopalidi commented Oct 11, 2024

🎩 What? Why?

This pull request introduces the ability to attach files when creating or editing debates. The proposed feature enables file attachments for debates, both from the admin panel and the frontend, improving the flexibility and functionality of debates within the platform.

📌 Related Issues

Testing

  1. As an admin, go to the admin panel and configure a Debate component.

    • Verify that there is a new setting "Allow attachments" in the configuration.
    • Enable this setting and try to create or edit a debate, ensuring that attachments can be uploaded.
    • Verify that uploaded attachments appear as downloadable links in the debate view.
  2. As a participant, try to create or edit a debate from the frontend.

    • Verify that, if the admin has enabled "Allow attachments", you can upload attachments during debate creation or editing.
  3. Test file type and size validation by uploading files that either exceed the configured limits or are of unsupported types, ensuring the system shows appropriate error messages.

📷 Screenshots

2024-11-04 в 11 42 09 2024-11-04 в 11 42 31

♥️ Thank you!

@antopalidi antopalidi added type: change PRs that implement a change for an existing feature project: 2024-developments Barcelona City Council contract labels Oct 11, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 11, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 15, 2024
github-actions[bot]
github-actions bot previously approved these changes Oct 16, 2024
Copy link
Copy Markdown
Member

@carolromero carolromero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@antopalidi here's the feedback from the review, only a couple things to adjust:

  • On the frontend side: the button to add/edit documents should look the same as the one in the proposals form, and use the same help text as well:

Debates:
image

Proposals:
image

  • On the admin side, use the same text as in proposal setting:
    image

Thanks!

github-actions[bot]
github-actions bot previously approved these changes Nov 3, 2024
github-actions[bot]
github-actions bot previously approved these changes Nov 3, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 2, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 4, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 4, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 4, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 5, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 5, 2024
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was reviewing this, and i think we missing something . Could you have a look ?

…te.rb

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
github-actions[bot]
github-actions bot previously approved these changes Dec 6, 2024
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@alecslupu alecslupu merged commit 08d79b6 into develop Dec 6, 2024
@alecslupu alecslupu deleted the change/add-attachments-in-debates branch December 6, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: 2024-developments Barcelona City Council contract type: change PRs that implement a change for an existing feature

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Add attachments in debates

4 participants