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

Simplify investment form in single heading budgets #4544

Merged
merged 5 commits into from
Jun 11, 2021
Merged

Conversation

javierm
Copy link
Member

@javierm javierm commented Jun 10, 2021

References

Objectives

  • Simplify the form to create a new investment in single heading budgets
  • Add a new header to the form to create a new investment

Visual changes

Before
Captura de pantalla 2021-06-11 a las 18 35 43

After

Investment form for budgets with a single heading
Captura de pantalla 2021-06-11 a las 18 31 10

Investment form for budgets with multiple headings
Captura de pantalla 2021-06-11 a las 18 30 44

@javierm javierm self-assigned this Jun 10, 2021
@javierm javierm added this to Reviewing in Consul Democracy via automation Jun 10, 2021
@javierm javierm moved this from Reviewing to Doing in Consul Democracy Jun 10, 2021
@javierm javierm changed the title Single budget views Simplify investment form in single heading budgets Jun 10, 2021
Base automatically changed from budget-multiple-and-single to master June 11, 2021 08:58
@javierm javierm force-pushed the single-budget-views branch 2 times, most recently from 352c3d5 to 214297f Compare June 11, 2021 12:34
Note we're using an extra `<span>` element but we could use a CSS grid
layout instead. We're not using it because browser compatibility is only
94.56% at the time of writing.
In the form of creating a new investment was hiding the name of the
group if it had only one heading, but could be confusing to users if
there are, for example, five different groups of one heading.

The solution:

- If the budget has one group and one heading, the heading selector is
  hidden.
- If the budget has one group and more than one heading, the group name
  is hidden.
- If the budget has more than one group, the group name appears
  regardless of the number of headings.
@javierm javierm marked this pull request as ready for review June 11, 2021 12:48
@javierm javierm moved this from Doing to Reviewing in Consul Democracy Jun 11, 2021
Consul Democracy automation moved this from Reviewing to Testing Jun 11, 2021
@javierm javierm merged commit cb0818b into master Jun 11, 2021
@javierm javierm deleted the single-budget-views branch June 11, 2021 16:41
Consul Democracy automation moved this from Testing to Release 1.4.0 Jun 11, 2021
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.

None yet

3 participants