Skip to content

Redesign: card L link whole card#10554

Merged
ferblape merged 8 commits intofeature/redesignfrom
feature/redesign-card-l-link-whole-card
Mar 27, 2023
Merged

Redesign: card L link whole card#10554
ferblape merged 8 commits intofeature/redesignfrom
feature/redesign-card-l-link-whole-card

Conversation

@entantoencuanto
Copy link
Copy Markdown
Contributor

@entantoencuanto entantoencuanto commented Mar 14, 2023

🎩 What? Why?

This PR:

  • Sets link whole card by default to true in card-l.
  • Removes unnecessary link_whole_card: true option on calls to card-l, since it's now the default.
  • Changes the structure of card-l with link_whole_card: false to wrap the title, description and metadata with the link if present
  • Since the metadata card is called inside the card link the cell is called disabling links by default
  • Updates some tests in proposals which expected card-l cells without link_whole_card

This PR is useful in budgets, where an extra data block with actions is shown with the card

To test it you should check the cards have a link at https://decidim-redesign.populate.tools/cards_debug#Decidim::Proposals::Proposal

📌 Related Issues

Testing

Describe the best way to test or validate your PR.

📷 Screenshots

Please add screenshots of the changes you're proposing
Description

♥️ Thank you!

@entantoencuanto entantoencuanto added the project: redesign Barcelona City Council contract label Mar 14, 2023
@entantoencuanto entantoencuanto force-pushed the feature/redesign-card-l-link-whole-card branch from 120f380 to 981769e Compare March 14, 2023 16:39
@entantoencuanto entantoencuanto marked this pull request as ready for review March 14, 2023 22:12
@ferblape ferblape changed the title Feature/redesign card l link whole card Redesign: card L link whole card Mar 17, 2023
@ferblape
Copy link
Copy Markdown
Contributor

@furilo
Copy link
Copy Markdown
Contributor

furilo commented Mar 21, 2023

@decidim/product this is something mostly technical, but you may want to take a look.

…le-card

* feature/redesign:
  Feature/redesign accountability versions (#10517)
  Redesign: add image to blog item (#10458)
  Redesign: search results (#10380)
  Redesign: layout item (#10376)
  Feature/redesign order filter (#10563)
@ferblape ferblape requested a review from a team March 22, 2023 04:09
@furilo furilo requested a review from a team March 22, 2023 08:14
…le-card

* feature/redesign: (94 commits)
  Fix test
  Finalize word standardization (#10557)
  Fix iframes stripped from admin entered proposals, meetings and debates (#10466)
  Fix ImageMagick errors when trying to identify image dimensions (#10343)
  Add required to proposal limit field in Proposal component (#10525)
  Standardize the format of the words "is not" (#10511)
  Standardize the format of the words "has not" (#10510)
  Standardize the format of the words "will not" (#10509)
  Make buttons respect the organizations' primary color (#10526)
  Fix flaky spec for questionnaire templates (#10544)
  Remove the deprecated `optional` option from the file upload modal (#10542)
  Standardize the format of the words "does not" (#10505)
  Standardize the format of the words "was not" (#10514)
  Add Procfile support (#10519)
  Standardize the format of the words "do not" (#10513)
  Change the `optional` option to `required` at participatory texts (#10498)
  Fix destroying scope types that have been associated with processes (#10496)
  Fix dynamic upload file field required indicator + make option naming consistent (#10497)
  Standardize the format of the words "should not" (#10515)
  Standardize the format of the words "were not" (#10516)
  ...
@ferblape
Copy link
Copy Markdown
Contributor

All yours @decidim/maintainers

…le-card

* feature/redesign: (183 commits)
  include a clause to change a data-attr on the fly
  Update tests
  Restore specs
  set different modals foreach comment
  unify report button for futher uses
  use report_button instead of flag_modal
  Unify comments:loaded event
  Remove pending
  Skip unless redesign enabled
  Remove turbo reference
  Remove unused method
  Remove unused components
  Disabled examples when redesign is disabled
  Fix edit comment after comment edited
  use label component
  clean duplicated class
  replace div with button and remove tabindex
  add type="button" to opinion buttons to avoid the form submit when clicking on them
  remove a[href*=/users/sign_] styles
  remove profile and cell author
  ...
@entantoencuanto
Copy link
Copy Markdown
Contributor Author

entantoencuanto commented Mar 24, 2023

@entantoencuanto could you review the broken test https://github.com/decidim/decidim/actions/runs/4420644015/jobs/7750595065?pr=10554 ??

Already fixed

@ferblape ferblape merged commit 0fa8142 into feature/redesign Mar 27, 2023
@ferblape ferblape deleted the feature/redesign-card-l-link-whole-card branch March 27, 2023 13:46
entantoencuanto added a commit that referenced this pull request Mar 29, 2023
…content-blocks

* feature/redesign: (187 commits)
  Redesign: author tooltip (#10438)
  Redesign: pending things of the public profile (#10472)
  Redesign: card L link whole card (#10554)
  strip links from cards, standarize author cell (#10547)
  include a clause to change a data-attr on the fly
  Update tests
  Restore specs
  set different modals foreach comment
  unify report button for futher uses
  use report_button instead of flag_modal
  Unify comments:loaded event
  Remove pending
  Skip unless redesign enabled
  Remove turbo reference
  Remove unused method
  Remove unused components
  Disabled examples when redesign is disabled
  Fix edit comment after comment edited
  use label component
  clean duplicated class
  ...
entantoencuanto added a commit that referenced this pull request Apr 10, 2023
* feature/redesign:
  Redesign: menu mobile (#10351)
  Fix comments scss to avoid compilation errors (#10657)
  Redesign: Add a new <aside> to layout item (#10620)
  Redesign: author tooltip (#10438)
  Redesign: pending things of the public profile (#10472)
  Redesign: card L link whole card (#10554)
  strip links from cards, standarize author cell (#10547)
entantoencuanto added a commit that referenced this pull request Apr 13, 2023
* feature/redesign:
  replace uses of specific margin-bottom for layout margins (#10675)
  Redesign: menu mobile (#10351)
  Fix comments scss to avoid compilation errors (#10657)
  Redesign: Add a new <aside> to layout item (#10620)
  Redesign: author tooltip (#10438)
  Redesign: pending things of the public profile (#10472)
  Redesign: card L link whole card (#10554)
  strip links from cards, standarize author cell (#10547)
entantoencuanto added a commit that referenced this pull request Apr 28, 2023
…ent-blocks

* feature/redesign: (196 commits)
  Redesign: process & process group cards (#10716)
  Redesign: conference cards (#10502)
  Redesign: pending blogs (#10686)
  Redesign: blog cards (#10685)
  Redesign: filters (#10390)
  replace uses of specific margin-bottom for layout margins (#10675)
  Redesign: menu mobile (#10351)
  Fix comments scss to avoid compilation errors (#10657)
  Redesign: Add a new <aside> to layout item (#10620)
  Redesign: author tooltip (#10438)
  Redesign: pending things of the public profile (#10472)
  Redesign: card L link whole card (#10554)
  strip links from cards, standarize author cell (#10547)
  include a clause to change a data-attr on the fly
  Update tests
  Restore specs
  set different modals foreach comment
  unify report button for futher uses
  use report_button instead of flag_modal
  Unify comments:loaded event
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

project: redesign Barcelona City Council contract

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants