-
Notifications
You must be signed in to change notification settings - Fork 17
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
Upgrade CONSUL DEMOCRACY to version 2.0.1 #145
Commits on Feb 16, 2023
-
Remove usages of the top-bar-right class
This is one of Foundation's classes that only applies when its parent element is a flex container, which isn't the case here since commit dcec003.
Configuration menu - View commit details
-
Copy full SHA for 7016172 - Browse repository at this point
Copy the full SHA 7016172View commit details -
Remove unused style inside top-bar-left
There isn't a `ul` element here, so this rule doesn't apply.
Configuration menu - View commit details
-
Copy full SHA for 6b01dc5 - Browse repository at this point
Copy the full SHA 6b01dc5View commit details -
Remove usage of top-bar-left class
We don't need it since it's only used for flexbox styles, and we already have a `flex-grow` rule for the `h1` element which does the same thing.
Configuration menu - View commit details
-
Copy full SHA for c553e15 - Browse repository at this point
Copy the full SHA c553e15View commit details -
Don't load Foundation styles for the top-bar
We're going to change these styles in order to fix a bug, and the Foundation styles were getting in the way. Besides, we were overwriting some rules and so now we're removing 6 properties while we're also adding 6, so it isn't like the Foundation styles were helping us.
Configuration menu - View commit details
-
Copy full SHA for 86dd34d - Browse repository at this point
Copy the full SHA 86dd34dView commit details -
Fix menu on "wide" small screens
The menu didn't look properly on these screens since commit dcec003. On small screens with enough horizontal space to show the menu button, the logo, and the contents of the menu, all three elements were shown on the same row, which looked broken. Now the contents of the menu are shown below the menu button. Note that, to force this, we're making the contents of the menu 100% wide. That means links would take the 100% of the space, which would make it easy to click on a link while trying to scroll when using touchscreens. So we're making the links as wide as their text, which also has a disadvantage: it's harder to click on narrow links like "SDG".
Configuration menu - View commit details
-
Copy full SHA for 045ac64 - Browse repository at this point
Copy the full SHA 045ac64View commit details -
Adjust order of elements on small screens
We're changing the order of the elements in the HTML so the menu button appears next to the menu it opens, with no logo between them, which IMHO makes sense and makes it easier to understand the layout for people using screen readers. A small advantage of this approach is that on very narrow screens or Consul applications having a very long word for "Menu", the menu button appeared on top, the logo appeared below it, and the contents of the menu appeared below the logo. Now the logo appears on top, the menu button appears below it, and the contents of the menu appear below the menu button.
Configuration menu - View commit details
-
Copy full SHA for b50b7ad - Browse repository at this point
Copy the full SHA b50b7adView commit details -
Move menu button to the left in the admin section
So now it uses the same interface and styles as the main layout. On small screens, it's easier to play with the menu when the button is on the left because the menu it opens is aligned to the left. Note that now we can get rid of the title-bar class; we didn't use the styles in the public area since commit dcec003, and we were overriding all the Foundation styles in the admin area with the exception of the padding, which we no longer need.
Configuration menu - View commit details
-
Copy full SHA for b489923 - Browse repository at this point
Copy the full SHA b489923View commit details -
Extract component to render the responsive menu
We were using the same code for the button in both the public and admin headers, so we're removing the duplication. Since the menu and the button must go together, and the contents of the menu are different for different layouts, we're passing these contents using a block. Note the ID of the menu was `responsive-menu` in the public section but `responsive_menu` in the admin section. Since we usually use underscores for IDs and dashes for classes, we're keeping the one with the underscore.
Configuration menu - View commit details
-
Copy full SHA for 49cb6e0 - Browse repository at this point
Copy the full SHA 49cb6e0View commit details -
Remove redundant admin-top-bar element
We weren't using the `admin-top-bar` class since commit e6c1cf7, and we can always use the `.admin .top-bar` selector if we need to. And the `row expanded` classes basically give an element a width of 100%, which is already the default width for block elements.
Configuration menu - View commit details
-
Copy full SHA for 2ac338f - Browse repository at this point
Copy the full SHA 2ac338fView commit details -
Render components instead of partials in headers
We were using partials to render components in order to ease the transition of custom code from earlier versions of Consul. However, that was back in Consul 1.4, and now these views looked a bit messy since they sometimes rendered components and sometimes they rendered partials.
Configuration menu - View commit details
-
Copy full SHA for bbd4d3e - Browse repository at this point
Copy the full SHA bbd4d3eView commit details -
Extract component for remote translations button
So we're consistent with the rest of the code in the header, which renders components and not partials.
Configuration menu - View commit details
-
Copy full SHA for efc69e8 - Browse repository at this point
Copy the full SHA efc69e8View commit details -
Use CSS to define alignment in translations message
That way it's possible to override the style without changing the HTML, which is the hardest code to customize and maintain.
Configuration menu - View commit details
-
Copy full SHA for 1778a75 - Browse repository at this point
Copy the full SHA 1778a75View commit details -
Fix background width in remote translations message
The `overflow: hidden` applied to the `.callout` selector made the full width background invisible, meaning this section hasn't looked properly on very large screens since commit 701378d.
Configuration menu - View commit details
-
Copy full SHA for 9bca73b - Browse repository at this point
Copy the full SHA 9bca73bView commit details -
Simplify styles for the remote translations message
Instead of adding all the styles of a callout and then overwriting half of them, we can simply add the half we need.
Configuration menu - View commit details
-
Copy full SHA for fb2b88b - Browse repository at this point
Copy the full SHA fb2b88bView commit details -
Simplify styles for the remote translations button
We can use the `link` mixin. Note this mixin uses anchor-color instead of brand-color; by default, they're both the same, so we probably meant anchor-color here.
Configuration menu - View commit details
-
Copy full SHA for 3b125d9 - Browse repository at this point
Copy the full SHA 3b125d9View commit details -
Remove unnecessary styles in top bar
Not sure why these properties were added, but they no longer seem to be necessary.
Configuration menu - View commit details
-
Copy full SHA for 27d9859 - Browse repository at this point
Copy the full SHA 27d9859View commit details -
Unify spacing styles in public and admin top bars
The top bar padding was different on small screens when we were in the admin section, so we're now applying the same padding everywhere. Note we're still applying extra padding on medium/large screens because in the public section we display our logo image, which has some blank space. In the admin section we're emulating this blank space with padding; we might change it in the future if we change our logo. Also note we're using `0.8rem` instead of `$line-height / 2`. The reason is tricky: there's a spec testing the reorder feature with drag and drop in the poll questions answers administration, and that test fails when the drop space is right at the bottom of the screen, which is what happens when we use the `$line-height / 2` padding. A proper solution would be to remove the inaccessible drag and drop feature and use a different method to reorder the answers.
Configuration menu - View commit details
-
Copy full SHA for f8df900 - Browse repository at this point
Copy the full SHA f8df900View commit details -
Move remote translations concern methods to the model
This way it'll be easier to change the code.
Configuration menu - View commit details
-
Copy full SHA for d09a47a - Browse repository at this point
Copy the full SHA d09a47aView commit details -
Move remote translations controller methods to the model
Now that all the code related to this model is in the same place, changing it will be easier.
Configuration menu - View commit details
-
Copy full SHA for 26cc75a - Browse repository at this point
Copy the full SHA 26cc75aView commit details -
Use remote translations objects instead of hashes
This way we can simplify the code dealing with the translatable association.
Configuration menu - View commit details
-
Copy full SHA for 2f0327a - Browse repository at this point
Copy the full SHA 2f0327aView commit details -
Make the translation button condition more readable
I was finding this part hard to follow, but after changing the name of the condition suddenly I understood what was going on.
Configuration menu - View commit details
-
Copy full SHA for fe3c9d4 - Browse repository at this point
Copy the full SHA fe3c9d4View commit details -
Fix crash translating an already translated text
The page was crashing when at least part of the content of the page had been translated between the request showing the remote translations button and the moment people pressed the button.
Configuration menu - View commit details
-
Copy full SHA for 2b9f9ed - Browse repository at this point
Copy the full SHA 2b9f9edView commit details
Commits on Feb 17, 2023
-
Merge pull request consuldemocracy#5072 from consul/top_bar_adjustments
Fix menu on "wide" small screens
Configuration menu - View commit details
-
Copy full SHA for 0448280 - Browse repository at this point
Copy the full SHA 0448280View commit details -
Merge pull request consuldemocracy#5073 from consul/remote_translatio…
…ns_crash Fix crash translating an already translated text
Configuration menu - View commit details
-
Copy full SHA for 169b1b1 - Browse repository at this point
Copy the full SHA 169b1b1View commit details -
Move login items tests to the component
This way we reduce the number of system tests or, in some cases, requests during system tests, making the tests faster. We're still testing the interaction with the menu when users have the right permissions.
Configuration menu - View commit details
-
Copy full SHA for 465d2d6 - Browse repository at this point
Copy the full SHA 465d2d6View commit details -
Unify specs testing access to admin menu items
In most sections, we had two specs testing what happens after accessing one of the privileged areas. We're grouping the expectations and so we've only got one test per area, making these tests faster.
Configuration menu - View commit details
-
Copy full SHA for 2e9c4de - Browse repository at this point
Copy the full SHA 2e9c4deView commit details -
Show always poll officer menu to officers
Since the change on commit cbbe188 we added a Poll.current.any? condition to show the officing link on admin menu to officers. That condition doesn't have much sense since Poll results only can be added after a poll has ended, and there may be only one active poll.
Configuration menu - View commit details
-
Copy full SHA for 1ff2144 - Browse repository at this point
Copy the full SHA 1ff2144View commit details -
Merge pull request consuldemocracy#5024 from consul/poll_officer_menu
Always show poll officer menu to officers
Configuration menu - View commit details
-
Copy full SHA for 4debff7 - Browse repository at this point
Copy the full SHA 4debff7View commit details -
Don't cache related actions in investments view
We've experienced some caching issues with this code for years. We've fixed some of them in commits 9979b53 and 3645c33, but we're still running into other issues. In order to really cache this section, we'd need to cache: * Whether or not the investment should show the aside and vote/support buttons (we could do it by caching its budget) * Whether its budget is balloting or finished (we could do it by caching its budget) * Whether the current user is following the investment * Whether the `remove_investments_supports` feature is enabled * Whether the `community` feature is enabled * The value of the `org_name` setting * The value of the `twitter_handle` setting We weren't caching all these elements, meaning that (for instance), we didn't display the button to vote when a budget moved into the voting phase if we had already cached this section without the button. And chances are the list is incomplete. So, instead of trying to take into account every single possible factor that should make us expire the cache, we're restricting the cache so it only affects the content of the investment. This is similar to what we do in the investments index, where we cache the content of the investment but we don't cache the vote/support buttons.
Configuration menu - View commit details
-
Copy full SHA for 02e8ffc - Browse repository at this point
Copy the full SHA 02e8ffcView commit details -
Split test in budget valuation component
We're going to add more cases and the test for the link to the evaluate would become too big, so we're splitting it.
Configuration menu - View commit details
-
Copy full SHA for d5cb01b - Browse repository at this point
Copy the full SHA d5cb01bView commit details -
Show link to evaluate after evaluation has finished
This way it's still possible to access the "evaluation finished" filter in the valuation investments index.
Configuration menu - View commit details
-
Copy full SHA for ed4b03c - Browse repository at this point
Copy the full SHA ed4b03cView commit details -
Add scope to get investments visible to a valuator
Using this method makes it more obvious that we're loading the same investments in the budgets index as in the investments index.
Configuration menu - View commit details
-
Copy full SHA for 1649b91 - Browse repository at this point
Copy the full SHA 1649b91View commit details -
Simplify investment params filters in valuation
We weren't allowing the `budget_id` parameter and then we were adding it manually. We were also allowing other parameters that aren't used in the valuation section. So we're allowing budget and heading, which are the only parameter we're offering filters for in the user interface. Note the `budget_id` parameter doesn't seem to make sense because we're already inside a `@budget.investments` statement, but the `budget_id` parameter is required by the `scoped_filter` method.
Configuration menu - View commit details
-
Copy full SHA for b6ed114 - Browse repository at this point
Copy the full SHA b6ed114View commit details -
Remove unnecessary condition in valuation investments
The budget is loaded using a method which raises an exception if it isn't found, so `@budget.present?` will always return true.
Configuration menu - View commit details
-
Copy full SHA for 54fbdf4 - Browse repository at this point
Copy the full SHA 54fbdf4View commit details
Commits on Feb 20, 2023
-
Merge pull request consuldemocracy#5077 from consul/investment_cache
Don't cache related actions in investments view
Configuration menu - View commit details
-
Copy full SHA for d1edcce - Browse repository at this point
Copy the full SHA d1edcceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 915999d - Browse repository at this point
Copy the full SHA 915999dView commit details -
Extract component for balloting budget admin stats
We're also moving the tests, but we're keeping one system test in order to test the controller and the navigation to get to this page. Note we're slightly changing the order of the methods in the component; the order of the instance variables was `user_`, `vote_`, `vote_`, `user_`, which was hard to follow.
Configuration menu - View commit details
-
Copy full SHA for 76b0839 - Browse repository at this point
Copy the full SHA 76b0839View commit details -
Use consistent method names in admin stats component
We had one method called `vote_count_by_heading` and another one called `user_count_by_district`, when here districts refer to headings.
Configuration menu - View commit details
-
Copy full SHA for 4445119 - Browse repository at this point
Copy the full SHA 4445119View commit details -
Fix invalid HTML in budget stats tables
The <th> elements should be inside <tr> elements. Since we're changing this code, we're also adding <thead> and <tbody> tags because that's what we usually do and it makes it easier to select <tr> tags from either the table head or the table body using CSS or JavaScript.
Configuration menu - View commit details
-
Copy full SHA for 698fc75 - Browse repository at this point
Copy the full SHA 698fc75View commit details -
Show admin heading stats for the current budget
To get the heading where a user voted, we were relying on the `balloted_heading_id` field. Our guess is this was done so the total number of users is the same as the sum of users who voted on a heading. That is, if 2000 people voted just on the "All city" heading, 1000 voted just on the "North district" heading, and 500 people voted on both, instead of showing "3500 people voted in total, 2500 voted in all city, 1500 voted in north district", we show something like "3500 people voted in total, 2250 voted in all city, and 1250 voted in north district". However, this approach has some disadvantages. The first disadvantage is, the stats aren't correct. In the case above, 2500 voted on the "All city heading", so the statistics for this heading don't show reality. The second one is we weren't considering the last heading where users voted inside the budget being displayed, but the last heading where users voted, period. That means that, if all the people above voted on a later budget, the stats for the budget above would become "3500 people voted in total, 0 voted in all city, and 0 voted in north district". That also means we were including headings from previous budgets in the statistics for more recent budgets when people hadn't voted on the recent ones. So we're removing the `balloted_heading_id` since its data is lost once people vote on a new budget. And, in order to show the right stats and simplify the code, we're no longer trying to add votes just to one heading when users vote on several headings. Co-Authored-By: Julian Nicolas Herrero <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd28163 - Browse repository at this point
Copy the full SHA dd28163View commit details -
Extract component for supporting budget admin stats
This is consistent with the component for balloting stats. We're about to change both components, and the changes are easier to follow if they're similar. We're also using consistent names in methods.
Configuration menu - View commit details
-
Copy full SHA for b536a7c - Browse repository at this point
Copy the full SHA b536a7cView commit details -
Use budget stats model to calculate admin stats
This way we reduce duplication.
Configuration menu - View commit details
-
Copy full SHA for e51e034 - Browse repository at this point
Copy the full SHA e51e034View commit details -
Merge pull request consuldemocracy#4985 from consul/fix_budget_stats
Show admin heading stats for the current budget
Configuration menu - View commit details
-
Copy full SHA for 1b61eff - Browse repository at this point
Copy the full SHA 1b61effView commit details -
Merge pull request consuldemocracy#5078 from consul/link_to_evaluate
Show link to evaluate investments with valuation finished
Configuration menu - View commit details
-
Copy full SHA for f7dfe30 - Browse repository at this point
Copy the full SHA f7dfe30View commit details -
Show valuator group investments to their valuators
When accessing the valuation area, we were only displaying the investments directly assigned to the current valuator, but we weren't displaying the investments assigned to that valuator's group. Using the `assigned_investments_ids` method, which takes the valuator group into account, solves the issue. We've also found an issue on our development machines: since we don't have a unique index per `investment_id` and `valuator_id` in the `budget_valuator_assignments` table, we've found duplicate records on this table. When that happened, we were displaying the same investment several times. Since now we no longer join this table in the query returning the investment, this issue is also solved, and we're adding a test for it. We can now remove the call to the `distinct` method when calculating the number of investments per heading.
Configuration menu - View commit details
-
Copy full SHA for 45b9ecc - Browse repository at this point
Copy the full SHA 45b9eccView commit details -
Merge pull request consuldemocracy#5082 from consul/valuation_group_i…
…nvestments Show valuator group investments to group valuators
Configuration menu - View commit details
-
Copy full SHA for 2dc10f4 - Browse repository at this point
Copy the full SHA 2dc10f4View commit details
Commits on Feb 21, 2023
-
Fix flaky spec in budget supports admin stats
The test that was not passing sometimes since commit 915999d because we no longer created the budget before visiting the page that loads it. So now we're forcing its creation with `let!`.
Configuration menu - View commit details
-
Copy full SHA for 1ea5b69 - Browse repository at this point
Copy the full SHA 1ea5b69View commit details -
Merge pull request consuldemocracy#5083 from consul/fix-specs
Fix flaky spec in budget supports admin stats
Configuration menu - View commit details
-
Copy full SHA for c1d70ef - Browse repository at this point
Copy the full SHA c1d70efView commit details -
Configuration menu - View commit details
-
Copy full SHA for cd99f2a - Browse repository at this point
Copy the full SHA cd99f2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8000277 - Browse repository at this point
Copy the full SHA 8000277View commit details
Commits on Feb 22, 2023
-
In the images.yml file we have a duplicate key with the same translation, so we can remove it. In the admin.yml file we have a duplicate key with different translation. This translation is only used in 2 places in the application: - In the administration table for collaborative legislation proposal index. - In the <% provide :title do %> of the same page. Although it is true that now the second translation (Title) is applied in both cases, I think it makes more sense to use the first one (Proposals) in the page title because it seems to make more sense and be more useful to use "Proposals" instead of “Title”. In order not to modify the behavior in the translation shown in the administration table, we add human_attribute_name to obtain the expected result.
Configuration menu - View commit details
-
Copy full SHA for 484e1da - Browse repository at this point
Copy the full SHA 484e1daView commit details -
Use human_attribute_name in admin tables
To be consistent with the previous commit we update the text that appears in the administration tables for discussions and proposals. Now instead of "Proposals" and "Discussions" will appear "Title" which makes more sense and is more consistent.
Configuration menu - View commit details
-
Copy full SHA for f100e01 - Browse repository at this point
Copy the full SHA f100e01View commit details -
Merge pull request consuldemocracy#5084 from consul/check-translation…
…s-keys Remove duplicate keys
Configuration menu - View commit details
-
Copy full SHA for 0f52180 - Browse repository at this point
Copy the full SHA 0f52180View commit details -
Since we're now allowing <h2> and <h3> tags in the description, we remove the broken <h3> tag from quiz-question class. Since its content is also in the <title> element, and in order to be consistent with other show actions in the public area, we change this tag to <h1>. We add <h2> tag in the "Share" heading and we replace the broken <h4> tag above adding new styles.
Configuration menu - View commit details
-
Copy full SHA for d96a917 - Browse repository at this point
Copy the full SHA d96a917View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ef90b1 - Browse repository at this point
Copy the full SHA 9ef90b1View commit details
Commits on Feb 23, 2023
-
Merge pull request consuldemocracy#4997 from consul/legislation_question
Add description to Legislation questions
Configuration menu - View commit details
-
Copy full SHA for a26f05f - Browse repository at this point
Copy the full SHA a26f05fView commit details -
Merge pull request consuldemocracy#4900 from consul/ballot_hidden_money
Do not show money with hidden money
Configuration menu - View commit details
-
Copy full SHA for 8f01a25 - Browse repository at this point
Copy the full SHA 8f01a25View commit details
Commits on Mar 1, 2023
-
It's already present in the consul/docs repository. We're keeping the examples folder for now because it isn't in the consul/docs repository yet.
Configuration menu - View commit details
-
Copy full SHA for ae8975d - Browse repository at this point
Copy the full SHA ae8975dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8b7a9d1 - Browse repository at this point
Copy the full SHA 8b7a9d1View commit details -
Remove unused images in doc folder
We added them in commit 2e4601b, but it looks that they've never been used.
Configuration menu - View commit details
-
Copy full SHA for fcaba88 - Browse repository at this point
Copy the full SHA fcaba88View commit details -
Remove README in the doc folder
This documentation is obsolete and there's documentation in the official consulproject website containing user guides like this one.
Configuration menu - View commit details
-
Copy full SHA for e4992ff - Browse repository at this point
Copy the full SHA e4992ffView commit details -
We were getting many errors when trying to run them, from uninitialized constant `HTTP` to undefined method `headers`. We might move these examples to the documentation repository in the future, but we need to look for possible side-effects first.
Configuration menu - View commit details
-
Copy full SHA for 56e42f2 - Browse repository at this point
Copy the full SHA 56e42f2View commit details -
Merge pull request consuldemocracy#4983 from sashashura/patch-1
GitHub Workflows security hardening
Configuration menu - View commit details
-
Copy full SHA for 4425f0f - Browse repository at this point
Copy the full SHA 4425f0fView commit details
Commits on Mar 3, 2023
-
Merge pull request consuldemocracy#5087 from consul/doc_folder
Clean up doc folder
Configuration menu - View commit details
-
Copy full SHA for 462792d - Browse repository at this point
Copy the full SHA 462792dView commit details
Commits on Mar 4, 2023
-
Run test coverage just on the master branch
Since we changed the way we integrate coveralls in commit 8ed8cc8, we're getting 6 additional checks displayed in our pull requests. We don't need these checks, and they only add noise. The only reason we use coveralls is to know the test coverage in our master branch. So we're changing the code so coveralls only runs on the master branch. There's also a chance that the test suite will be faster because it doesn't need to keep track of the coverage, although I haven't noticed any significant differences during my tests. I haven't found a more elegant way to say that a certain step should only be run on push on master, so I'm setting the environment variable we were already using.
Configuration menu - View commit details
-
Copy full SHA for c614b0b - Browse repository at this point
Copy the full SHA c614b0bView commit details -
Merge pull request consuldemocracy#5054 from consul/coverage_on_master
Run test coverage just on the master branch
Configuration menu - View commit details
-
Copy full SHA for 9226320 - Browse repository at this point
Copy the full SHA 9226320View commit details
Commits on Mar 9, 2023
-
Include SentencesParser inside the right class
We were including it in the Object class, making its methods available everywhere.
Configuration menu - View commit details
-
Copy full SHA for b030a19 - Browse repository at this point
Copy the full SHA b030a19View commit details -
Replace instance variable usage with a method
We usually use this approach because methods are easier to override and stub.
Configuration menu - View commit details
-
Copy full SHA for 63d0e31 - Browse repository at this point
Copy the full SHA 63d0e31View commit details -
Change gem from TranslatorText to BingTranslator
TranslatorText isn't compatible with Ruby 3, so we need to use a different gem. The 'translator-text' gem response was an array of one or more objects. Now with the 'bing_translator' gem the response is an array with one or several translated texts. We remove the concept of object in the code. And we also remove the "create_response" method from the specs since it is no longer necessary to emulate that object and we can simply use arrays with texts to emulate the new response.
Configuration menu - View commit details
-
Copy full SHA for c64b49b - Browse repository at this point
Copy the full SHA c64b49bView commit details
Commits on Mar 10, 2023
-
Bump rack from 2.2.6.2 to 2.2.6.3
Bumps [rack](https://github.com/rack/rack) from 2.2.6.2 to 2.2.6.3. - [Release notes](https://github.com/rack/rack/releases) - [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md) - [Commits](rack/rack@v2.2.6.2...v2.2.6.3) --- updated-dependencies: - dependency-name: rack dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f188a03 - Browse repository at this point
Copy the full SHA f188a03View commit details -
Merge pull request consuldemocracy#5090 from consul/dependabot/bundle…
…r/rack-2.2.6.3 Bump rack from 2.2.6.2 to 2.2.6.3
Configuration menu - View commit details
-
Copy full SHA for 33c62cc - Browse repository at this point
Copy the full SHA 33c62ccView commit details
Commits on Mar 15, 2023
-
Allow translate locales that need to be mapping
It has been detected that for the :pt-BR, :zh-CN and :zh-TW locales, the translate button was being displayed, but when requesting the translation, the remote translation validation failed due to: ''' validates :locale, inclusion: { in: ->(_) { RemoteTranslations::Microsoft::AvailableLocales.available_locales }} ''' That available_locales method did not contemplate these 3 languages in the format used by the application. To solve this problem the api response is mapped to return all locales in the format expected by the application. Add remote translation model test to ensure that a remote translation is valid when its locale is pt-BR. Co-Authored-By: Javi Martín <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 306e735 - Browse repository at this point
Copy the full SHA 306e735View commit details -
Merge pull request consuldemocracy#5089 from consul/bing-translator
Use Bing Translator instead of TranslatorText
Configuration menu - View commit details
-
Copy full SHA for 9bbde19 - Browse repository at this point
Copy the full SHA 9bbde19View commit details
Commits on Mar 16, 2023
-
Bump rack from 2.2.6.3 to 2.2.6.4
Bumps [rack](https://github.com/rack/rack) from 2.2.6.3 to 2.2.6.4. - [Release notes](https://github.com/rack/rack/releases) - [Changelog](https://github.com/rack/rack/blob/main/CHANGELOG.md) - [Commits](rack/rack@v2.2.6.3...v2.2.6.4) --- updated-dependencies: - dependency-name: rack dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35153ad - Browse repository at this point
Copy the full SHA 35153adView commit details -
Merge pull request consuldemocracy#5092 from consul/dependabot/bundle…
…r/rack-2.2.6.4 Bump rack from 2.2.6.3 to 2.2.6.4
Configuration menu - View commit details
-
Copy full SHA for 448e957 - Browse repository at this point
Copy the full SHA 448e957View commit details
Commits on Mar 20, 2023
-
I thought SelfClosingTag was enabled since it was on the list and the `enabled: false` got lost among all the `enabled: true`. ERB Lint 0.1 and later will also add RequireInputAutocomplete as a default linter, and we're not interested in it, at least for now. So, just like we do for Rubocop, we're disabling all linters and enabling the ones we use explicitly.
Configuration menu - View commit details
-
Copy full SHA for 4ddcfde - Browse repository at this point
Copy the full SHA 4ddcfdeView commit details -
Bump erb_lint from 0.0.37 to 0.3.1
We also need to update pronto-erb_lint since the old version depended on erb_lint 0.0.x.
Configuration menu - View commit details
-
Copy full SHA for 09a62d6 - Browse repository at this point
Copy the full SHA 09a62d6View commit details -
Enable CommentSyntax ERB Linter
It's a default linter in erb_lint 0.3.0, and it's useful during development since I'm always unsure about the right way to add ERB comments.
Configuration menu - View commit details
-
Copy full SHA for 99b0ef0 - Browse repository at this point
Copy the full SHA 99b0ef0View commit details -
Merge pull request consuldemocracy#5093 from consul/bump_erb_lint
Bump erb_lint from 0.0.37 to 0.3.1
Configuration menu - View commit details
-
Copy full SHA for 3957404 - Browse repository at this point
Copy the full SHA 3957404View commit details
Commits on Mar 21, 2023
-
Use only one server when deploying to preproduction
It doesn't make much sense that by default we use one server on production on two servers on preproduction. Note we're keeping `server1` instead of using just `server` in order to keep compatibility with existing installation.
Configuration menu - View commit details
-
Copy full SHA for b115b0c - Browse repository at this point
Copy the full SHA b115b0cView commit details -
Unify deploy secret keys for the main server
We were using `server` on staging but `server1` and `server2` on preproduction and production. The reason behind it is we've always used one server on staging but sometimes we've used several servers on preproduction and production. However, this is a bit of a mess on installations which have only one server on preproduction or production and need to use the `server` key for the staging environments but `server1` for other environments. So, in order to keep compatibility with existing Consul installations, we're now allowing either `server` or `server1` on any environment.
Configuration menu - View commit details
-
Copy full SHA for 8aa113a - Browse repository at this point
Copy the full SHA 8aa113aView commit details -
Simplify deploy secrets example configuration file
So now it's similar to our database example file.
Configuration menu - View commit details
-
Copy full SHA for bbf6a31 - Browse repository at this point
Copy the full SHA bbf6a31View commit details
Commits on Mar 28, 2023
-
Disable scroll wheel for zooming in favor of map zoom buttons
It's causing annoying behaviour for desktop users when scrolling the page to the bottom and there is more content below the map. The behaviour of touchable devices does not seem to be affected by this change and keeps behaving the same.
Configuration menu - View commit details
-
Copy full SHA for 3341c45 - Browse repository at this point
Copy the full SHA 3341c45View commit details -
Merge pull request consuldemocracy#5095 from consul/one_server_on_pre…
…production Use only one server when deploying to preproduction
Configuration menu - View commit details
-
Copy full SHA for 26f806b - Browse repository at this point
Copy the full SHA 26f806bView commit details -
Merge pull request consuldemocracy#5097 from consul/map_scroll_wheel
Disable scroll wheel for zooming in favor of map zoom buttons
Configuration menu - View commit details
-
Copy full SHA for 8e0acb8 - Browse repository at this point
Copy the full SHA 8e0acb8View commit details
Commits on Apr 13, 2023
-
Specify translation class name in dummy test class
These tests were failing with Ruby 3.0 because we were getting an error when loading the `translations` association of the dummy class: ``` NameError: uninitialized constant DummyBanner::#<Class:0x000055630e4dccd8>::Translation ``` Specifying the `class_name` of the `translations` association solves the issue.
Configuration menu - View commit details
-
Copy full SHA for 4d11d8a - Browse repository at this point
Copy the full SHA 4d11d8aView commit details -
Note the structure of the Gemfile changes slightly because Ruby 3.0 includes a new version of the Bundler gem.
Configuration menu - View commit details
-
Copy full SHA for 6c8445e - Browse repository at this point
Copy the full SHA 6c8445eView commit details -
Update Style/RedundantFreeze rule for Ruby 3.0
In Ruby 3.0, Regexp and Range literals are frozen objects, and so we don't need to freeze them.
Configuration menu - View commit details
-
Copy full SHA for b911284 - Browse repository at this point
Copy the full SHA b911284View commit details -
Add Style/HashExcept Rubocop rule
We were already using it because Rails adds the `Hash#except` method for Ruby 2.7 and earlier, but since the method wasn't part of Ruby itself, the Rubocop rule only works with Ruby 3.0 and later.
Configuration menu - View commit details
-
Copy full SHA for f298715 - Browse repository at this point
Copy the full SHA f298715View commit details -
Merge pull request consuldemocracy#5074 from consul/ruby3.0
Upgrade Ruby to version 3.0.6
Configuration menu - View commit details
-
Copy full SHA for 03a12ea - Browse repository at this point
Copy the full SHA 03a12eaView commit details
Commits on Apr 14, 2023
-
Bump
leaflet
from1.5.1
to1.9.3
Newer versions have more capabilities and also fix lot of errors, usability and accessibility issues. Note that we're using an external gem to rails-assets.org as it's not supports the rails-assets pipeline. This gems wraps the original one and make the code work with the default rails assets pipeline as usual.
Configuration menu - View commit details
-
Copy full SHA for dd368ad - Browse repository at this point
Copy the full SHA dd368adView commit details -
Configuration menu - View commit details
-
Copy full SHA for c3439ab - Browse repository at this point
Copy the full SHA c3439abView commit details -
Merge pull request consuldemocracy#5096 from consul/bump_leaflet
Bump Leaflet from 1.5.1 to 1.9.3
Configuration menu - View commit details
-
Copy full SHA for 33f5f4c - Browse repository at this point
Copy the full SHA 33f5f4cView commit details
Commits on Apr 18, 2023
-
Update test to test exactly what we want to test
Since this test was added in commit 78c6a30 the "current_password" was filled with an incorrect value. This test did not fail because in previous versions of the "devise-security" gem if this "current_password" was not valid a "self.valid?" was performed which caused the error we are testing. In version 0.17 (as can be seen in the following commit devise-security/devise-security@41a99b67fe0) if the "current_password" is not valid, related errors are still added but the "self.valid?" code is removed, which is what causes the expected error "must be different than the current password" to appear in the "new password" field. By adding a correct "current_password" in the test, we avoid this validation for the "current_password" (which no longer includes the expected error) and follow the natural flow of devise that does end up intercepting the error for the new password entered.
Configuration menu - View commit details
-
Copy full SHA for 79d6530 - Browse repository at this point
Copy the full SHA 79d6530View commit details -
Bump devise-security from 0.16.0 to 0.17.0
Bumps [devise-security](https://github.com/devise-security/devise-security) from 0.16.0 to 0.17.0. - [Release notes](https://github.com/devise-security/devise-security/releases) - [Commits](devise-security/devise-security@v0.16.0...v0.17.0) --- updated-dependencies: - dependency-name: devise-security dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0d8def3 - Browse repository at this point
Copy the full SHA 0d8def3View commit details
Commits on Apr 20, 2023
-
Bump nokogiri from 1.13.10 to 1.14.3
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.10 to 1.14.3. - [Release notes](https://github.com/sparklemotion/nokogiri/releases) - [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md) - [Commits](sparklemotion/nokogiri@v1.13.10...v1.14.3) --- updated-dependencies: - dependency-name: nokogiri dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a93b768 - Browse repository at this point
Copy the full SHA a93b768View commit details -
Merge pull request consuldemocracy#5102 from consul/dependabot/bundle…
…r/nokogiri-1.14.3 Bump nokogiri from 1.13.10 to 1.14.3
Configuration menu - View commit details
-
Copy full SHA for e421484 - Browse repository at this point
Copy the full SHA e421484View commit details
Commits on Apr 21, 2023
-
Merge pull request consuldemocracy#4931 from consul/dependabot/bundle…
…r/master/devise-security-0.17.0 Bump devise-security from 0.16.0 to 0.17.0
Configuration menu - View commit details
-
Copy full SHA for 17d7451 - Browse repository at this point
Copy the full SHA 17d7451View commit details -
Extract component to render my ballot
This is the only part of the sidebar that needs to be re-rendered after an AJAX request adding or removing investments to a ballot, so having a separate view just for it will make it easier to simplify the code.
Configuration menu - View commit details
-
Copy full SHA for d0be5c4 - Browse repository at this point
Copy the full SHA d0be5c4View commit details
Commits on Apr 27, 2023
-
Only re-render my ballot after voting
We were rendering the whole sidebar again, which wasn't necessary since most of it remains unchanged. This resulted in complicated code to pass the necessary information to render the same map that was already rendered. Furthermore, when users had been moving the map around or zooming out, we were resetting the map to its default settings after voting, which was potentially annoying. This also fixes the wrong investments being displayed in the map after voting; only the investments on the current page were displayed in this case while the index displayed all of them.
Configuration menu - View commit details
-
Copy full SHA for 4954038 - Browse repository at this point
Copy the full SHA 4954038View commit details
Commits on Apr 28, 2023
-
Merge pull request consuldemocracy#5107 from consul/fix_map_investmen…
…ts_after_voting Fix wrong investments on the map after voting
Configuration menu - View commit details
-
Copy full SHA for eaf28ef - Browse repository at this point
Copy the full SHA eaf28efView commit details -
Avoid removing other proposals map locations
It was possible to remove a map location from a different proposal (even one created by a different author) by modifying the hidden `id` parameter in the form. So we're making sure the map location we destroy is the one associated to the proposal we're updating. Since we're now using the `@proposal` instance variable in the `destroy_map_location_association` method, we're calling that method after loading the resource with cancancan.
Configuration menu - View commit details
-
Copy full SHA for 65ed778 - Browse repository at this point
Copy the full SHA 65ed778View commit details -
Rename map_location variable containing parameters
When it was named `map_location`, I constantly thought it was an object instead of a hash.
Configuration menu - View commit details
-
Copy full SHA for 6105de3 - Browse repository at this point
Copy the full SHA 6105de3View commit details -
Merge pull request consuldemocracy#5109 from consul/fix_removing_diff…
…erent_map_location Avoid removing other proposals map locations
Configuration menu - View commit details
-
Copy full SHA for 2f8717a - Browse repository at this point
Copy the full SHA 2f8717aView commit details
Commits on May 4, 2023
-
Remove unused legislation proposals map action
The only view that linked to this action was never used and so it was deleted in commit 0bacd5b. Since now the proposals controller is the only one place rendering the `shared/map` partial, we're moving it to the proposals views.
Configuration menu - View commit details
-
Copy full SHA for b0b7d0f - Browse repository at this point
Copy the full SHA b0b7d0fView commit details -
Simplify map location coordinates helpers
We're calling this method after setting the map location with `map_location = MapLocation.new if map_location.nil?`, so the condition `map_location.present?` is always going to be true.
Configuration menu - View commit details
-
Copy full SHA for c7de42a - Browse repository at this point
Copy the full SHA c7de42aView commit details -
Extract component to render a map
This way it'll be easier to refactor it.
Configuration menu - View commit details
-
Copy full SHA for 9cc3c55 - Browse repository at this point
Copy the full SHA 9cc3c55View commit details -
Simplify method names in map component
Since we aren't using helpers anymore, we don't need the `map_location` prefix.
Configuration menu - View commit details
-
Copy full SHA for 19adae9 - Browse repository at this point
Copy the full SHA 19adae9View commit details -
Remove editable parameter in render_map
The calls to `render_map` are confusing since there are so many parameters. We can assume that the map is editable if we pass the remove marker label.
Configuration menu - View commit details
-
Copy full SHA for deb965b - Browse repository at this point
Copy the full SHA deb965bView commit details -
Configuration menu - View commit details
-
Copy full SHA for aa5f523 - Browse repository at this point
Copy the full SHA aa5f523View commit details -
Make remove marker label parameter optional
We were passing `nil` in some calls, which was confusing. Since now we've got two optional parameters, we're using named parameters.
Configuration menu - View commit details
-
Copy full SHA for e00aa80 - Browse repository at this point
Copy the full SHA e00aa80View commit details -
Simplify code setting marker data in maps
We were probably setting them separately to avoid having blank data attributes in the HTML. However, when a data attribute is `nil`, Rails doesn't write it in the HTML in the first place.
Configuration menu - View commit details
-
Copy full SHA for 84fff2e - Browse repository at this point
Copy the full SHA 84fff2eView commit details -
Use Rails methods to get map location input IDs
We were manually generating the IDs in order to pass them as data attributes in the HTML in a component where we don't have access to the form which has the inputs. However, these data attributes only make sense when there's a form present, so we can pass the form as a parameter and use it to get the IDs. We can now define a map as editable when there's an associated form, which makes sense IMHO.
Configuration menu - View commit details
-
Copy full SHA for b9518d6 - Browse repository at this point
Copy the full SHA b9518d6View commit details -
Remove redundant value assignments in map fields
Rails forms automatically take the value from the object related to the form.
Configuration menu - View commit details
-
Copy full SHA for c667582 - Browse repository at this point
Copy the full SHA c667582View commit details -
Remove duplicate i18n text to remove marker
We had two different keys with the same text and were passing it as a parameter. Since the text is the same in any case, we don't need a parameter for it. Note we are using the `proposals` i18n key instead of creating a new one in a `shared` namespace one because creating a new key would mean that we'd lose the already existing translations in Crowdin.
Configuration menu - View commit details
-
Copy full SHA for e752111 - Browse repository at this point
Copy the full SHA e752111View commit details -
Extract functions to get coordinates in map JS
We had 130 lines long function, and we're trying to reduce its size so it's easier to follow the code.
Configuration menu - View commit details
-
Copy full SHA for 00cd91c - Browse repository at this point
Copy the full SHA 00cd91cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4087066 - Browse repository at this point
Copy the full SHA 4087066View commit details -
Configuration menu - View commit details
-
Copy full SHA for f8053c9 - Browse repository at this point
Copy the full SHA f8053c9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e8bc11 - Browse repository at this point
Copy the full SHA 2e8bc11View commit details -
Configuration menu - View commit details
-
Copy full SHA for 74d165a - Browse repository at this point
Copy the full SHA 74d165aView commit details -
Don't overwrite marker when creating investment markers
The `marker` variable is like a global variable inside the `initializeMap` function, so assigning it inside the `createMarker` function was changing its value in other places. So we're using different variable names like `newMarker` in order to make the code easier to follow. Now we "only" change the `marker` variable in functions that modify the marker.
Configuration menu - View commit details
-
Copy full SHA for 21ce768 - Browse repository at this point
Copy the full SHA 21ce768View commit details -
Configuration menu - View commit details
-
Copy full SHA for b068062 - Browse repository at this point
Copy the full SHA b068062View commit details -
Remove unused HTML class in link to remove marker
It isn't used since commit c34aa54.
Configuration menu - View commit details
-
Copy full SHA for f4ef641 - Browse repository at this point
Copy the full SHA f4ef641View commit details -
Make map location HTML class names consistent
We were using `map_location` in one place and `location-map-remove-marker` in another one. We usually use dashes in HTML class names, we don't say "location map" anywhere else.
Configuration menu - View commit details
-
Copy full SHA for a145fdb - Browse repository at this point
Copy the full SHA a145fdbView commit details -
Set remove marker link margin-bottom in CSS
We were setting the margin-top property in CSS but the margin-bottom property by adding a div with a `.margin-bottom` HTML class.
Configuration menu - View commit details
-
Copy full SHA for 59ed975 - Browse repository at this point
Copy the full SHA 59ed975View commit details -
Use a button instead of a link to remove a marker
Using a button for interactive elements is better, as explained in commit 5311daa. Since buttons with "type=button" do nothing by default, we no longer need to call `preventDefault()` when clicking it.
Configuration menu - View commit details
-
Copy full SHA for 8b14522 - Browse repository at this point
Copy the full SHA 8b14522View commit details
Commits on May 5, 2023
-
Merge pull request consuldemocracy#5108 from consul/map_refactoring
Simplify the code rendering the map
Configuration menu - View commit details
-
Copy full SHA for 0ef1882 - Browse repository at this point
Copy the full SHA 0ef1882View commit details -
Merge pull request consuldemocracy#5111 from consul/remove_marker_acc…
…essibility Use a button instead of a link to remove a marker
Configuration menu - View commit details
-
Copy full SHA for 287f483 - Browse repository at this point
Copy the full SHA 287f483View commit details
Commits on May 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e51f240 - Browse repository at this point
Copy the full SHA e51f240View commit details
Commits on May 22, 2023
-
In order to add compatibility to ubuntu 22.04 we update the wkhtmltopdf-binary gem. The gem version 0.12.6.5 only supports up to ubuntu 20.04.
Configuration menu - View commit details
-
Copy full SHA for 26a158f - Browse repository at this point
Copy the full SHA 26a158fView commit details -
Bump audited from 5.0.2 to 5.3.3
Bumps [audited](https://github.com/collectiveidea/audited) from 5.0.2 to 5.3.3. - [Release notes](https://github.com/collectiveidea/audited/releases) - [Changelog](https://github.com/collectiveidea/audited/blob/main/CHANGELOG.md) - [Commits](collectiveidea/audited@v5.0.2...v5.3.3) --- updated-dependencies: - dependency-name: audited dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 14d4abe - Browse repository at this point
Copy the full SHA 14d4abeView commit details
Commits on May 23, 2023
-
Merge pull request consuldemocracy#5113 from consul/proposals_notific…
…ations Show email digest only if proposals are enabled
Configuration menu - View commit details
-
Copy full SHA for c52d287 - Browse repository at this point
Copy the full SHA c52d287View commit details
Commits on May 24, 2023
-
Configure the database before starting the browser with a call to `visit`
Configuration menu - View commit details
-
Copy full SHA for 81b7f30 - Browse repository at this point
Copy the full SHA 81b7f30View commit details -
Configuration menu - View commit details
-
Copy full SHA for d655acc - Browse repository at this point
Copy the full SHA d655accView commit details
Commits on May 29, 2023
-
Merge pull request consuldemocracy#5114 from consul/bump-wkhtmltopdf-…
…binary Bump wkhtmltopdf-binary from 0.12.6.5 to 0.12.6.6
Configuration menu - View commit details
-
Copy full SHA for 0b7dfb2 - Browse repository at this point
Copy the full SHA 0b7dfb2View commit details -
Configure airbrake as Errbit documentation says
Quoting `errbit/errbit/blob/main/app/views/apps/_configuration_instructions.html.erb` > airbrake.io supports various features that are out of scope for Errbit.
Configuration menu - View commit details
-
Copy full SHA for b85df50 - Browse repository at this point
Copy the full SHA b85df50View commit details -
In the commit: 315c579 this code was added, but at that time this field was no longer in use, even though it existed in the database. I don't know why this line was added, but there seems to be no point in keeping it.
Configuration menu - View commit details
-
Copy full SHA for 2425d0e - Browse repository at this point
Copy the full SHA 2425d0eView commit details -
Remove the unused field from the database.
In the PR consuldemocracy#1140 this field was added in commit ad697cd, but in this same PR in commit 28d12fe all the related functionality that had been added was removed but the field was not removed.
Configuration menu - View commit details
-
Copy full SHA for 0d93764 - Browse repository at this point
Copy the full SHA 0d93764View commit details -
Merge pull request consuldemocracy#5115 from consul/remove-unused-field
Remove unused field and related code
Configuration menu - View commit details
-
Copy full SHA for 0c1e860 - Browse repository at this point
Copy the full SHA 0c1e860View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2dc32c6 - Browse repository at this point
Copy the full SHA 2dc32c6View commit details -
Merge pull request consuldemocracy#4854 from iraline/activation_status
Show account activation status for each user in the admin section
Configuration menu - View commit details
-
Copy full SHA for 1462ae7 - Browse repository at this point
Copy the full SHA 1462ae7View commit details -
Move geozone form partial to a component
That way it'll be easier to refactor it.
Configuration menu - View commit details
-
Copy full SHA for c6c0907 - Browse repository at this point
Copy the full SHA c6c0907View commit details -
Move budget headings form partial to a component
This way it'll be easier to test it.
Configuration menu - View commit details
-
Copy full SHA for ca013cf - Browse repository at this point
Copy the full SHA ca013cfView commit details -
Move geozones index view to a component
This way we simplify the header and it will be easier to add more code and tests.
Configuration menu - View commit details
-
Copy full SHA for 882cc85 - Browse repository at this point
Copy the full SHA 882cc85View commit details -
Remove text-center class in heading price header
Not sure why it was added in commit 9fb5019, but it made the table look funny on some screens, particularly after adding the extra field we're about to add.
Configuration menu - View commit details
-
Copy full SHA for 60d5268 - Browse repository at this point
Copy the full SHA 60d5268View commit details -
Move investments sidebar map view to a component
This way we remove some logic from the (huge) investments controller class.
Configuration menu - View commit details
-
Copy full SHA for 727e849 - Browse repository at this point
Copy the full SHA 727e849View commit details
Commits on May 31, 2023
-
Remove redundant HTML map classes
The `map` class is applied to the map element by LeafletJS; using it in the container led to hacks like adding an `inline` class to fix the fact that the container was using the `height` rule of the `.map` elements. Even though we don't add styles for them, I'm adding the `budgets-map` and `budget-investments-map` HTML classes so these elements can still be easily selected with CSS and JavaScript.
Configuration menu - View commit details
-
Copy full SHA for 106dee0 - Browse repository at this point
Copy the full SHA 106dee0View commit details -
Remove obsolete check for the budget presence
This check isn't necessary since commit 7e3dd47, since now we check that the budget is present before creating the components which call this method.
Configuration menu - View commit details
-
Copy full SHA for fb0caa3 - Browse repository at this point
Copy the full SHA fb0caa3View commit details -
Add notices when creating and updating geozones
Just like we do in pretty much every section in the admin area.
Configuration menu - View commit details
-
Copy full SHA for d1f1e1d - Browse repository at this point
Copy the full SHA d1f1e1dView commit details -
Add polygon geographies to Budgets' map
Note that in the budgets wizard test we now create district with no associated geozone, so the text "all city" will appear in the districts table too, meaning we can't use `within "section", text: "All city" do` anymore since it would result in an ambiguous match. Co-Authored-By: Julian Herrero <[email protected]> Co-Authored-By: Javi Martín <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for de13e78 - Browse repository at this point
Copy the full SHA de13e78View commit details -
Include heading geozone in investments sidebar map
Note that, in this case, we aren't binding a popup to the polygon because the link would point to the same page we're already in.
Configuration menu - View commit details
-
Copy full SHA for a9029be - Browse repository at this point
Copy the full SHA a9029beView commit details -
Merge pull request consuldemocracy#3907 from consul/polygon_geographies
Add polygon geographies to Budgets' map
Configuration menu - View commit details
-
Copy full SHA for 1392733 - Browse repository at this point
Copy the full SHA 1392733View commit details
Commits on Jun 5, 2023
-
Merge pull request consuldemocracy#5119 from consul/airbrake_setup_fo…
…r_errbit Fix integration between `Errbit` and the `airbrake` gem
Configuration menu - View commit details
-
Copy full SHA for ae4cf31 - Browse repository at this point
Copy the full SHA ae4cf31View commit details -
Fix cached secrets when running tests
When running multiple specs that have to overwrite the rails secrets, it can happen that the condition: "@cached_rails_secrets != Rails.application.secrets" is not met and unexpected secrets are returned. We have found this case while experimenting with tests related to the Tenant secrets. In one case, assigning cached rails secrets to nil resulted in a failure to detect when the 'rails.application.secrets' had changed.
Configuration menu - View commit details
-
Copy full SHA for 4de3991 - Browse repository at this point
Copy the full SHA 4de3991View commit details
Commits on Jun 6, 2023
-
Merge pull request consuldemocracy#5123 from consul/fix-current-secrets
Fix cached tenant secrets when running tests
Configuration menu - View commit details
-
Copy full SHA for a480c5d - Browse repository at this point
Copy the full SHA a480c5dView commit details
Commits on Jun 7, 2023
-
Allow to change the application name for deployments
When someone installs CONSUL with the installer using a custom `app_name`, the deployment configuration file must use the same application name; otherwise, the Capistrano task to update the crontab will duplicate the crontab entries with different names causing unexpected errors. Below is an example of the issue. The first set of crontab entries was created during installation using a custom app_name. The second set of entries are duplicated during the first deployment with a wrong application name in the config/deploy.rb file. ``` deploy@ubuntu:~$ crontab -l * * * * * /bin/bash -l -c 'date > ~/cron-test.txt' 0 5 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230529101753 && RAILS_ENV=production bundle exec rake -s sitemap:refresh --silent' 0 1 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230529101753 && RAILS_ENV=production bundle exec rake files:remove_old_cached_attachments --silent' 0 3 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230529101753 && RAILS_ENV=production bundle exec rake votes:reset_hot_score --silent' 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230529101753 && RAILS_ENV=production bundle exec rake -s stats:generate --silent' @reboot /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230529101753 && bundle exec puma -C config/puma/production.rb' @reboot /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230529101753 && RAILS_ENV=production bin/delayed_job -n 2 restart' * * * * * /bin/bash -l -c 'date > ~/cron-test.txt' 0 5 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230530112702 && RAILS_ENV=production bundle exec rake -s sitemap:refresh --silent' 0 1 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230530112702 && RAILS_ENV=production bundle exec rake files:remove_old_cached_attachments --silent' 0 3 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230530112702 && RAILS_ENV=production bundle exec rake votes:reset_hot_score --silent' 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230530112702 && RAILS_ENV=production bundle exec rake -s stats:generate --silent' @reboot /bin/bash -l -c 'cd /home/deploy/participacyl/releases/20230530112702 && bundle exec puma -C config/puma/production.rb' ```
Configuration menu - View commit details
-
Copy full SHA for d7bc82a - Browse repository at this point
Copy the full SHA d7bc82aView commit details
Commits on Jun 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b3c294b - Browse repository at this point
Copy the full SHA b3c294bView commit details -
Currently in the application we never show the original image, we always show one of its variants. This change removes the metadata of both the variants and the original version so that if at some point we decide to show the original version, we will no longer have to remember to remove the metadata.
Configuration menu - View commit details
-
Copy full SHA for 78ee456 - Browse repository at this point
Copy the full SHA 78ee456View commit details -
Merge pull request consuldemocracy#5121 from consul/application_name_…
…for_deployments Allow to change the application name for deployments
Configuration menu - View commit details
-
Copy full SHA for cf8a98f - Browse repository at this point
Copy the full SHA cf8a98fView commit details
Commits on Jun 14, 2023
-
Allow to pass the destination link for the geozone link
Previous to this commit the geozone link shown in the legislation proposal page was pointing to the proposals process feature instead to the legislation proposals.
Configuration menu - View commit details
-
Copy full SHA for a6b1866 - Browse repository at this point
Copy the full SHA a6b1866View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9003c46 - Browse repository at this point
Copy the full SHA 9003c46View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1bc2a68 - Browse repository at this point
Copy the full SHA 1bc2a68View commit details -
Add the geozone name to the proposal partial when there are geozones …
…defined As we have links pointing to a search by geozone name I think we should show somewhere the geozone where the proposal belongs.
Configuration menu - View commit details
-
Copy full SHA for 37695cd - Browse repository at this point
Copy the full SHA 37695cdView commit details
Commits on Jun 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e4cd02c - Browse repository at this point
Copy the full SHA e4cd02cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ca12388 - Browse repository at this point
Copy the full SHA ca12388View commit details
Commits on Jun 23, 2023
-
Allow administrators to override legislation translations
Now administrators can override default legislation translations through the administration panel.
Configuration menu - View commit details
-
Copy full SHA for dc9a30a - Browse repository at this point
Copy the full SHA dc9a30aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 27249f6 - Browse repository at this point
Copy the full SHA 27249f6View commit details -
Merge pull request consuldemocracy#5137 from consul/legislation_trans…
…lations Allow administrators to override legislation and budget translations
Configuration menu - View commit details
-
Copy full SHA for 443c5e0 - Browse repository at this point
Copy the full SHA 443c5e0View commit details -
So it's easier to know where to add new ones when needed.
Configuration menu - View commit details
-
Copy full SHA for 1d7c821 - Browse repository at this point
Copy the full SHA 1d7c821View commit details -
Since the creation of this list 3 years ago we added more languages to the application and PostgreSQL added more dictionaries too.
Configuration menu - View commit details
-
Copy full SHA for 3c3ff65 - Browse repository at this point
Copy the full SHA 3c3ff65View commit details -
Merge pull request consuldemocracy#5110 from consul/dependabot/bundle…
…r/audited-5.3.3 Bump audited from 5.0.2 to 5.3.3
Configuration menu - View commit details
-
Copy full SHA for 8ed898a - Browse repository at this point
Copy the full SHA 8ed898aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 13bf866 - Browse repository at this point
Copy the full SHA 13bf866View commit details -
Merge pull request consuldemocracy#5104 from markusgeert/feature/disa…
…ble-create-booths-button Disable the create booths button when the polls function is disabled
Configuration menu - View commit details
-
Copy full SHA for ec1fe1f - Browse repository at this point
Copy the full SHA ec1fe1fView commit details
Commits on Jun 26, 2023
-
Merge pull request consuldemocracy#5122 from consul/strip-metadata
Remove metadata from images
Configuration menu - View commit details
-
Copy full SHA for bb8759d - Browse repository at this point
Copy the full SHA bb8759dView commit details -
Configuration menu - View commit details
-
Copy full SHA for f497349 - Browse repository at this point
Copy the full SHA f497349View commit details -
Render budget images with special chars their names
Images with brackets weren't being rendered properly, so we're now enclosing the URL in single quotes. In order to render images with single quotes, we're also using the `j` method. Since the tests were written by a different developer, we're adding them in the next commit.
Configuration menu - View commit details
-
Copy full SHA for 5630a24 - Browse repository at this point
Copy the full SHA 5630a24View commit details -
Add method to retrieve translations in one database query
This methods performs much better when we need to load a lot of globalized models translations and returns the best fallback translation for the current language.
Configuration menu - View commit details
-
Copy full SHA for 2b0a812 - Browse repository at this point
Copy the full SHA 2b0a812View commit details -
Fix map markers navigation for keyboard users
By using the bindPopup function instead of the click event popups work when using the keyboard. Note that now we are loading all the map markers in the first request in a single query to the database (needed when there is a lot or markers to show). Because of that we removed the AJAX endpoint.
Configuration menu - View commit details
-
Copy full SHA for 3fa3c90 - Browse repository at this point
Copy the full SHA 3fa3c90View commit details -
Merge pull request consuldemocracy#5134 from consul/pg_search_diction…
…aries Update search dictionaries
Configuration menu - View commit details
-
Copy full SHA for 90ddd99 - Browse repository at this point
Copy the full SHA 90ddd99View commit details
Commits on Jun 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 3a623c0 - Browse repository at this point
Copy the full SHA 3a623c0View commit details -
Remove unused code for legislation proposals votes
In these commits 38ba5e1 and 8805037 we added the parameter "vote_url" in the call to the partial "votes" in collaborative legislation proposals. It seems that this parameter is only used in the proposals module and not in collaborative legislation proposals. While it is true that in the partial "votes" in these commits this parameter "vote_url" is referred to, in commit 276baed it seems to be removed. For this reason, we remove the parameter.
Configuration menu - View commit details
-
Copy full SHA for ab2c548 - Browse repository at this point
Copy the full SHA ab2c548View commit details -
Fix background images with special characters
Just like we did for budgets, we're doing the same thing in all the places where we render background images attached by either regular users or administrators. This way we correctly render background images with characters like brackets or quotes.
Configuration menu - View commit details
-
Copy full SHA for ad26c5c - Browse repository at this point
Copy the full SHA ad26c5cView commit details -
Merge pull request consuldemocracy#5098 from consul/map_open_popups_w…
…ith_keyboard Open marker popups when navigating with the keyboard
Configuration menu - View commit details
-
Copy full SHA for ab698a7 - Browse repository at this point
Copy the full SHA ab698a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2b1817 - Browse repository at this point
Copy the full SHA d2b1817View commit details -
Merge pull request consuldemocracy#5140 from consul/legislation-propo…
…sals Remove unused code from Legislation proposals
Configuration menu - View commit details
-
Copy full SHA for f001f07 - Browse repository at this point
Copy the full SHA f001f07View commit details -
I accidentally duplicated the locale code within commit 3c3ff65.
Configuration menu - View commit details
-
Copy full SHA for 83b5965 - Browse repository at this point
Copy the full SHA 83b5965View commit details
Commits on Jun 28, 2023
-
Merge pull request consuldemocracy#5141 from consul/search_dictionary…
…_selector Fix Serbian locale code
Configuration menu - View commit details
-
Copy full SHA for 93d33b6 - Browse repository at this point
Copy the full SHA 93d33b6View commit details
Commits on Jun 29, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 15e9c59 - Browse repository at this point
Copy the full SHA 15e9c59View commit details -
Merge pull request consuldemocracy#5143 from consul/bump_parser
Bump parser from 3.1.0.3 to 3.2.2.3
Configuration menu - View commit details
-
Copy full SHA for 59d260c - Browse repository at this point
Copy the full SHA 59d260cView commit details -
Restart DelayedJob workers after they crash
DelayedJob offers the `--monitor` (aliased as `-m`) option to create a process that monitors the workers and restarts them when they crash. This change implies that, in order to stop the delayed job workers, we now need to pass the `-n` option when running `bin/delayed_job stop`: `RAILS_ENV=production bin/delayed_job -n 2 stop`.
Configuration menu - View commit details
-
Copy full SHA for ee9cd88 - Browse repository at this point
Copy the full SHA ee9cd88View commit details -
Enable mousewheel when focusing on the map
Zooming with the mousewheel is useful when you want to use it, but annoying when you don't want to. Here we're taking an intermediary approach: by default, the mousewheel isn't active, but it will be active after focusing on the map, so it can be used both to scroll and to zoom. This behavior presents usability issues, though, since we aren't making users aware of the way the mousewheel works, and even if they were aware, it could be confusing anyway. However, I currently think it's better than always enabling or always disabling the mousewheel (might change my mind, though). Note that the "focus" event is only used on the map, so if we click on a marker or navigate to a marker with the keyboard without focusing on the map first, the mousewheel isn't enabled. The same would happen if we used the "click" event. We might use the Leaflet.GestureHandling plugin in the future to deal with this issue and the scroll on touch screens.
Configuration menu - View commit details
-
Copy full SHA for 970a64e - Browse repository at this point
Copy the full SHA 970a64eView commit details -
Fix text selection in budget heading
The `inverted-selection` rules defined in the `%brand-background` selector weren't being applied because we were using this selector in `::before` and `::after` pseudoelements. Not sure about the reason, but it looks like the saturation of `::after::selection` pseudoelements resulted in invalid selectors and so the inverted selection rules were ignored for every selection using `%brand-background`, like `%budget-header`. Using `@include brand-background` instead of `@extend %brand-background` in pseudoelements solves the issue. The inverted selection might not work in these pseudoelements, but we don't need it there since these pseudoelements don't have content.
Configuration menu - View commit details
-
Copy full SHA for 6892740 - Browse repository at this point
Copy the full SHA 6892740View commit details -
Bump selenium-webdriver from 3.142 to 4.0.0
And also `capybara-webmock' to the latest as the previous one is not supported by selenium-webdriver. The change in the rails_helper.rb file fixes a deprecation warning related to desired capabilities after this upgrade.
Configuration menu - View commit details
-
Copy full SHA for 41a84d6 - Browse repository at this point
Copy the full SHA 41a84d6View commit details -
Merge pull request consuldemocracy#5147 from consul/bump_capybara-web…
…mock Bump selenium-webdriver from 3.142 to 4.0.0
Configuration menu - View commit details
-
Copy full SHA for b4f2e66 - Browse repository at this point
Copy the full SHA b4f2e66View commit details -
Render markdown tables in legislation draft
* Add Tables option to Redcarpet in Legislation draft * Allow table tags in Admin Legislation Sanitizer * Add Test to render markdown tables in Legislation drafts * Add Test for Admin Legislation Sanitizer We include test for image, table and h1 to h6 tags and additional tests to strengthen the allowed and disallowed parameters * Add Table from markdown test in System and Factories * Add test to render tables for admin user * Remove comment line about Redcarpet options * Edit custom css for legislation draft table to make it responsive
Configuration menu - View commit details
-
Copy full SHA for 3faaa85 - Browse repository at this point
Copy the full SHA 3faaa85View commit details -
Use the same extensions in all markdown renderers
We were using two different sets of extensions but, since the markdown code is always written by administrators, IMHO it makes sense to be consistent and always render markdown code the same way.
Configuration menu - View commit details
-
Copy full SHA for 7912020 - Browse repository at this point
Copy the full SHA 7912020View commit details -
Extract markdown helper logic to a class
This way it'll be easier for other Consul installations to overwrite parts of the code, like the default options.
Configuration menu - View commit details
-
Copy full SHA for af618ea - Browse repository at this point
Copy the full SHA af618eaView commit details -
Merge pull request consuldemocracy#5136 from Meet-Democracy/Legislati…
…on-draft-render-markdown-tables Render markdown tables in legislation draft
Configuration menu - View commit details
-
Copy full SHA for a668ecd - Browse repository at this point
Copy the full SHA a668ecdView commit details
Commits on Jun 30, 2023
-
Merge pull request consuldemocracy#5145 from consul/map_wheel_on_focus
Enable mousewheel when focusing on the map
Configuration menu - View commit details
-
Copy full SHA for 865fe70 - Browse repository at this point
Copy the full SHA 865fe70View commit details -
Merge pull request consuldemocracy#5106 from consul/fix_budget_backgr…
…ound_image Render background images with brackets in their names
Configuration menu - View commit details
-
Copy full SHA for 286a128 - Browse repository at this point
Copy the full SHA 286a128View commit details -
Merge pull request consuldemocracy#5129 from consul/geozones
Do not show geozones when there are no geozones defined
Configuration menu - View commit details
-
Copy full SHA for 37417e5 - Browse repository at this point
Copy the full SHA 37417e5View commit details -
Merge pull request consuldemocracy#5146 from consul/delayed_job_monitor
Restart DelayedJob workers after they crash
Configuration menu - View commit details
-
Copy full SHA for db4db07 - Browse repository at this point
Copy the full SHA db4db07View commit details
Commits on Jul 3, 2023
-
Reduce log size in development/test environments
Code based on the logger Rails uses by default; as mentioned in the Rails configuration guide: > [the logger] defaults to an instance of ActiveSupport::TaggedLogging > that wraps an instance of ActiveSupport::Logger which outputs a log to > the log/ directory. You can supply a custom logger, to get full > compatibility you must follow these guidelines: > > * To support a formatter, you must manually assign a formatter from > the config.log_formatter value to the logger. > * To support tagged logs, the log instance must be wrapped with > ActiveSupport::TaggedLogging. > * To support silencing, the logger must include > ActiveSupport::LoggerSilence module. The ActiveSupport::Logger class > already includes these modules. Just like the documentation mentions, we're enabling log rotation using "1" as the number of old files to keep and then the maximum size of the log file.
Configuration menu - View commit details
-
Copy full SHA for e0a94f6 - Browse repository at this point
Copy the full SHA e0a94f6View commit details -
Merge pull request consuldemocracy#5142 from consul/local_logs
Reduce log size in development/test environments
Configuration menu - View commit details
-
Copy full SHA for 29a3fe4 - Browse repository at this point
Copy the full SHA 29a3fe4View commit details -
Merge pull request consuldemocracy#5144 from consul/fix_invert_selection
Fix text selection in budget header
Configuration menu - View commit details
-
Copy full SHA for 2766d8f - Browse repository at this point
Copy the full SHA 2766d8fView commit details
Commits on Jul 7, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ce7b37f - Browse repository at this point
Copy the full SHA ce7b37fView commit details
Commits on Jul 10, 2023
-
We were referencing an old URL that has been obsolete for years.
Configuration menu - View commit details
-
Copy full SHA for 832a6dd - Browse repository at this point
Copy the full SHA 832a6ddView commit details
Commits on Jul 12, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 629756d - Browse repository at this point
Copy the full SHA 629756dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 054aef3 - Browse repository at this point
Copy the full SHA 054aef3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d9a23b - Browse repository at this point
Copy the full SHA 3d9a23bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7dfbf77 - Browse repository at this point
Copy the full SHA 7dfbf77View commit details -
Change the logo to include the new name
Co-Authored-By: Javi Martín <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0a47a00 - Browse repository at this point
Copy the full SHA 0a47a00View commit details -
Remove old comment referencing the project name
It was obvious which project the comment was about. Also, no point having a TODO referencing what to do after upgrading to Rails 5.1, since we did it years ago.
Configuration menu - View commit details
-
Copy full SHA for 175c1a7 - Browse repository at this point
Copy the full SHA 175c1a7View commit details -
Merge pull request consuldemocracy#5149 from consuldemocracy/name_change
Update project name
Configuration menu - View commit details
-
Copy full SHA for 3a72776 - Browse repository at this point
Copy the full SHA 3a72776View commit details
Commits on Jul 13, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 53046a5 - Browse repository at this point
Copy the full SHA 53046a5View commit details -
Merge pull request consuldemocracy#5150 from consuldemocracy/typos
Fix source string typo
Configuration menu - View commit details
-
Copy full SHA for c4cf747 - Browse repository at this point
Copy the full SHA c4cf747View commit details -
Fix release version number in rake tasks
When we added the tasks, we thought the new version was going to be version 1.6.0, but in the end we're renaming it to version 2.0.0.
Configuration menu - View commit details
-
Copy full SHA for d137df6 - Browse repository at this point
Copy the full SHA d137df6View commit details -
Configuration menu - View commit details
-
Copy full SHA for a5d9945 - Browse repository at this point
Copy the full SHA a5d9945View commit details
Commits on Jul 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 82f5d69 - Browse repository at this point
Copy the full SHA 82f5d69View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7afd921 - Browse repository at this point
Copy the full SHA 7afd921View commit details -
Merge pull request consuldemocracy#5126 from consuldemocracy/i18n_cro…
…wdin Update translations from Crowdin
Configuration menu - View commit details
-
Copy full SHA for e2f31b7 - Browse repository at this point
Copy the full SHA e2f31b7View commit details -
Merge pull request consuldemocracy#5033 from consuldemocracy/release_…
…2.0.0 Release version 2.0.0
Configuration menu - View commit details
-
Copy full SHA for 28a9bd5 - Browse repository at this point
Copy the full SHA 28a9bd5View commit details
Commits on Aug 2, 2023
-
Bump selenium-webdriver from 4.0.0 to 4.11.0
Webdrivers doesn't seem to be working with GitHub Actions since Chrome changed the way to download ChromeDriver [1]. Luckily, webdrivers functionality has recently been added directly to selenium-webdriver, and version 4.11.0 is compatible with the new way to download ChromeDriver. So we're updating selenium-webdriver and removing webdrivers. Note we now have to use the `Options` class instead of the `Capabilities`. We're updating Capybara since its changelog mentions its latest version also adapts these changes in Selenium. [1] https://groups.google.com/g/chromedriver-users/c/qVPTFXnedw0
Configuration menu - View commit details
-
Copy full SHA for 5b0fb32 - Browse repository at this point
Copy the full SHA 5b0fb32View commit details
Commits on Aug 4, 2023
-
Merge pull request consuldemocracy#5162 from consuldemocracy/bump_sel…
…enium_webdriver_to_4.11 Bump selenium-webdriver from 4.0.0 to 4.11.0
Configuration menu - View commit details
-
Copy full SHA for b986dbb - Browse repository at this point
Copy the full SHA b986dbbView commit details
Commits on Aug 5, 2023
-
Use custom translations in components
In the `i18n_translation` initializer, we're overwriting the `t` helper so calling it uses custom translations if they're available. However, ViewComponent doesn't use the `t` helper but implements its own `t` method. So, when calling the `t` method in a component, we weren't using our implementation of the `t` helper, and so we weren't loading custom translations. Using the `t` helper in components solves the issue. There was a test where we were directly testing a method in a component, and that method uses the `t` helper. This caused an error when running the test: ViewComponent::Base::ViewContextCalledBeforeRenderError: `#helpers` can't be used during initialization, as it depends on the view context that only exists once a ViewComponent is passed to the Rails render pipeline. Using `render_inline` in the test and testing the generated HTML, as recommended in the ViewComponent documentation, solves the issue.
Configuration menu - View commit details
-
Copy full SHA for dc3a286 - Browse repository at this point
Copy the full SHA dc3a286View commit details
Commits on Aug 7, 2023
-
We added the `user_id` rule in commit edaf420. To be honest, I'm not sure what we meant, since I haven't found URLs containing the user id. So we're treating it as if it was a typo and we wanted to do the same thing we did with other parameters.
Configuration menu - View commit details
-
Copy full SHA for 1bb8c71 - Browse repository at this point
Copy the full SHA 1bb8c71View commit details -
Allow current way to write respond_to blocks
Not sure exactly since when, but we've started to get rubocop failures when using the pattern: respond_to do |format| format.js end We've been using this pattern for ages, so maybe a recent version of Rubocop introduced a change that made it report it. In any case, this is easier to read than respond_to(&:js), so we're allowing it.
Configuration menu - View commit details
-
Copy full SHA for 7996925 - Browse repository at this point
Copy the full SHA 7996925View commit details
Commits on Aug 9, 2023
-
Merge pull request consuldemocracy#5169 from consuldemocracy/fix_robots
Fix syntax in robots.txt
Configuration menu - View commit details
-
Copy full SHA for f77c414 - Browse repository at this point
Copy the full SHA f77c414View commit details -
Merge pull request consuldemocracy#5165 from consuldemocracy/custom_t…
…ranslations_in_components Use custom translations in components
Configuration menu - View commit details
-
Copy full SHA for 89d0dc0 - Browse repository at this point
Copy the full SHA 89d0dc0View commit details -
Merge pull request consuldemocracy#5156 from consuldemocracy/fix_rubocop
Fix Rubocop convention offenses
Configuration menu - View commit details
-
Copy full SHA for 74b07de - Browse repository at this point
Copy the full SHA 74b07deView commit details
Commits on Aug 17, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 582f850 - Browse repository at this point
Copy the full SHA 582f850View commit details -
Configuration menu - View commit details
-
Copy full SHA for 20e577d - Browse repository at this point
Copy the full SHA 20e577dView commit details
Commits on Aug 18, 2023
-
Merge pull request consuldemocracy#5176 from consuldemocracy/i18n_cro…
…wdin Update translations from Crowdin
Configuration menu - View commit details
-
Copy full SHA for e064475 - Browse repository at this point
Copy the full SHA e064475View commit details -
Merge pull request consuldemocracy#5177 from consuldemocracy/release_…
…2.0.1 Release version 2.0.1
Configuration menu - View commit details
-
Copy full SHA for fd71ae5 - Browse repository at this point
Copy the full SHA fd71ae5View commit details
Commits on Aug 22, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 580c3ab - Browse repository at this point
Copy the full SHA 580c3abView commit details
Commits on Aug 23, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 769da07 - Browse repository at this point
Copy the full SHA 769da07View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6b9c0c - Browse repository at this point
Copy the full SHA e6b9c0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 07c9bee - Browse repository at this point
Copy the full SHA 07c9beeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a67c2a4 - Browse repository at this point
Copy the full SHA a67c2a4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 600bc35 - Browse repository at this point
Copy the full SHA 600bc35View commit details -
Configuration menu - View commit details
-
Copy full SHA for 429655c - Browse repository at this point
Copy the full SHA 429655cView commit details -
Configuration menu - View commit details
-
Copy full SHA for cf611e8 - Browse repository at this point
Copy the full SHA cf611e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56610e6 - Browse repository at this point
Copy the full SHA 56610e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3350e9 - Browse repository at this point
Copy the full SHA d3350e9View commit details
Commits on Aug 24, 2023
-
Configuration menu - View commit details
-
Copy full SHA for e76b7c0 - Browse repository at this point
Copy the full SHA e76b7c0View commit details
Commits on Aug 25, 2023
-
Configuration menu - View commit details
-
Copy full SHA for f3d5e0f - Browse repository at this point
Copy the full SHA f3d5e0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 769b9a1 - Browse repository at this point
Copy the full SHA 769b9a1View commit details
Commits on Aug 27, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2b6db77 - Browse repository at this point
Copy the full SHA 2b6db77View commit details
Commits on Sep 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 14a1a0e - Browse repository at this point
Copy the full SHA 14a1a0eView commit details
Commits on Sep 5, 2023
-
Merge pull request #146 from democrateam/refactor_specs
Move custom specs to a custom folder
Configuration menu - View commit details
-
Copy full SHA for 5e2240a - Browse repository at this point
Copy the full SHA 5e2240aView commit details