Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render investments list when budget has multiple headings #4594

Merged
merged 7 commits into from
Aug 10, 2021

Conversation

taitus
Copy link
Member

@taitus taitus commented Jul 26, 2021

References

Related PR's: #4198 #4507

Objectives

Render investments list component in all budgets types:

  • We make this change to unify the index/show budget pages. This way both single and multiple budgets will render the investments list component.
  • When budget has multiple headings, the link "see all investments" we redirect to budget groups index page

Visual Changes

Budget groups index page

@taitus taitus added the Budgets label Jul 26, 2021
@taitus taitus self-assigned this Jul 26, 2021
@taitus taitus changed the title Render investments list component in budgets with multiple headings Render investments list when budget has multiple headings Jul 27, 2021
@javierm javierm force-pushed the unify-budget-views branch 2 times, most recently from 44ab41a to 185b0de Compare August 8, 2021 20:05
@javierm javierm self-assigned this Aug 8, 2021
@javierm javierm force-pushed the unify-budget-views branch 3 times, most recently from d833ffd to 9fd68be Compare August 9, 2021 18:05
javierm and others added 4 commits August 9, 2021 20:07
In general, slow system tests requiring no interaction from the user are
good candidates to be moved to component tests because component tests
are much faster.

In this case, the system tests were also updating the database after
starting the browser, which might cause concurrency issues. We could
split the test and have one system test per phase, but IMHO there's no
need.

We're still having a couple of system tests for the happy path, in order
to make sure users actually see the list of investments.
We make this change to unify the index/show budget pages.

This way both single and multiple budgets will render the investments
list component.
This way it'll be easier to reuse its main properties.
The budget header was supposed to be huge, but only in the participatory
budgets index or show actions. It was still huge, with plenty of empty
space, when there was no budget, or in the "submit my ballot" and
"select a heading" pages.
@javierm javierm force-pushed the unify-budget-views branch 4 times, most recently from 6113a77 to 4a9aae9 Compare August 9, 2021 19:42
When render the investment list component with the link "see all
investments", now we redirect to groups index page when a budget has
multiple headings.
@taitus taitus merged commit dabe07c into master Aug 10, 2021
@taitus taitus deleted the unify-budget-views branch August 10, 2021 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants