Skip to content

Merge upload field for documents and image on proposal admin form#13735

Merged
andreslucena merged 12 commits intodecidim:developfrom
i-need-another-coffee:feature/single-attachement-field-on-proposals
Jan 13, 2025
Merged

Merge upload field for documents and image on proposal admin form#13735
andreslucena merged 12 commits intodecidim:developfrom
i-need-another-coffee:feature/single-attachement-field-on-proposals

Conversation

@andra-panaite
Copy link
Copy Markdown
Contributor

🎩 What? Why?

I have added an attachments field on the admin proposal creation form to merge the document and image fields.

📌 Related Issues

Link your PR to an issue

Testing

  1. Go to the admin dashboard.
  2. Enable attachments for the proposal component.
  3. Go to "New proposal".
  4. Complete all the steps.
  5. On the section "Add documents".
  6. Upload documents and images.
  7. Create the proposal.

📷 Screenshots

The field now looks like:

{15547E4C-5F7D-42F6-9564-64E62C0F8EC2}

♥️ Thank you!

Copy link
Copy Markdown
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']

github-actions[bot]
github-actions bot previously approved these changes Dec 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 10, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 12, 2024
@andra-panaite andra-panaite marked this pull request as ready for review December 13, 2024 07:40
github-actions[bot]
github-actions bot previously approved these changes Dec 13, 2024
@alecslupu alecslupu self-assigned this Dec 13, 2024
github-actions[bot]
github-actions bot previously approved these changes Dec 16, 2024
@alecslupu alecslupu assigned greenwoodt and unassigned alecslupu Dec 16, 2024
@alecslupu alecslupu requested review from a team and greenwoodt December 16, 2024 21:49
alecslupu
alecslupu previously approved these changes Dec 16, 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.

👍

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

I have some suggestions in the UX:

This is how it currently looks in this PR:

Screenshot of the result of the PR

What I'd expect is this:

image

The same in the modal title:

image

This change should be also applied to the other places where this same button/upload is done (i.e. initiatives, debates, etc)

Also in the original issue I proposed to change the image help text: If it's an image, it preferably be a landscape image that does not have any text. The service crops the image.

Can you apply these changes too here?

@alecslupu
Copy link
Copy Markdown
Contributor

I have some suggestions in the UX:
This change should be also applied to the other places where this same button/upload is done (i.e. initiatives, debates, etc)

Can you apply these changes too here?

TBH i would add a new PR to apply the changes in all the places. I would keep this PR exclusively for "merging admin fields"

@alecslupu alecslupu dismissed stale reviews from github-actions[bot] and themself via aefbcbb January 9, 2025 23:24
github-actions[bot]
github-actions bot previously approved these changes Jan 9, 2025
@andreslucena
Copy link
Copy Markdown
Member

TBH i would add a new PR to apply the changes in all the places. I would keep this PR exclusively for "merging admin fields"

I'm OK with that approach. As far as I see the documents/attachments mess up is already happening, so at least is consistent xD

Can you check the failing specs?

@alecslupu
Copy link
Copy Markdown
Contributor

TBH i would add a new PR to apply the changes in all the places. I would keep this PR exclusively for "merging admin fields"

I'm OK with that approach. As far as I see the documents/attachments mess up is already happening, so at least is consistent xD

Can you check the failing specs?

@andreslucena , Done!
The requested changes are implemented in #13836 ( created on top of this PR )

Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

👍🏽

@andreslucena andreslucena merged commit 8ec90dc into decidim:develop Jan 13, 2025
@alecslupu alecslupu deleted the feature/single-attachement-field-on-proposals branch January 13, 2025 11:33
entantoencuanto added a commit that referenced this pull request Jan 14, 2025
* develop: (27 commits)
  WCAG navigation submenu (#13796)
  Update gem dependencies (part 3) (#13849)
  Prevent notifications for deleted users (#13812)
  Retries NPM installation a couple times to prevent network timeouts (#13831)
  Update gem dependencies (part 2) (#13839)
  Enhance signature pdf export (#13778)
  Fix HexaPDF dependency (#13834)
  Fix flaky spec in authentication (#13827)
  Merge upload field for documents and image on proposal admin form (#13735)
  Update gem dependencies (#13835)
  Upgrade erb_lint to 0.8.0 (#13833)
  Fix flaky spec in geocoder (#13820)
  Refactor modules mounting routes (#13294)
  Upgrade check-spelling action (#13825)
  Add missing images in the custom registration emails from meetings (#13632)
  Add missing translations (#13793)
  Fix proposal map performance with hundreds of markers (#13798)
  Create multiple surveys within same Survey component (#13420)
  Accountability bulk actions (#13730)
  Improve UI for sorting options on comments (#13670)
  ...
antopalidi pushed a commit to openpoke/decidim that referenced this pull request Feb 12, 2025
…cidim#13735)

* Merged upload field on proposal admin form

* Fixed tests

* Run linter

* Fixed tests

* Removed unused translations

* Apply suggestions from code review

* Change text

* Fix pipelines

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
andreslucena pushed a commit that referenced this pull request Mar 3, 2025
…3735)

* Merged upload field on proposal admin form

* Fixed tests

* Run linter

* Fixed tests

* Removed unused translations

* Apply suggestions from code review

* Change text

* Fix pipelines

---------

Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

No open projects
Archived in project

Development

Successfully merging this pull request may close these issues.

Documents allowed in the "add image" section

4 participants