diff --git a/CHANGELOG.md b/CHANGELOG.md index 11b43517a..15edb7d16 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,80 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), This project (not yet) adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## mb-v2412.1 + +### Fixed + +- prevent a new comment to be posted multiple times when repeatedly clicking + submit by disabling the button after it's clicked for the first time (#1428) +- fix error alerts not showing correctly when adding/editing comments +- fix console warning / broken code when editing comments (#1491) +- fix child comment success alert shown again after hiding and then showing the + replies again. (#1532) +- replace removed turf `inside` function with `booleanPointinPolygon` + +### Added + +- extent the api mock in adhocracy4/static/__mocks__/api.js to include some + comment endpoints +- add various tests for comments +- add option to allow unregistered users to vote in a poll: + - the feature is controlled via a new django setting `A4_POLL_ENABLE_UNREGISTERED_USERS` to enable or disable it +- add a new captcha react component to integrate the captcha in the poll +- add a poll_voted signal which is sent when a user has voted on a poll. +- RatingBox takes an optional render function to customize rendering +- added `jest-dom` to tests, allowing for nicer matchers like `toBeInTheDocument` +- added a rating_api file to allow for more modular api calls + +### Changed + +- Comment model now uses the RateableQuerySet class to get ratings for a comment (#284) +- image upload for projects organised by date +- redesign AI report to be readable +- only show AI report when there's a useful label (catnodecis and catneutral don't +count as labels) +- Modified the input type for text inputs PollOpenQuestion.jsx and PollQuestion.jsx to textarea. +- Changed PollQuestion.jest.jsx +- added a new div to `Alert.jsx` with the class name `a4-alert__content` to keep semantic structure consistent with mein berlin +- added a new class called `a4-alert__container` to `Alert.jsx`- **Breaking Change** The react_comments_async templatetag no longer returns the + comment categories as a data attribute. The categories are now included in the + data returned from the comment api endpoint if called with `categories=true`. + If the templatetag is called with `with_categories=True` and the react comments + are used they automatically fetch the categories, so no changes are necessary. +- added new modifier classes to `PollResults.jsx`, `PollOpenQuestion.jsx` and `PollQuestion.jsx` for customized paddings +- replaced `` with react fragment to keep consistency- Ratings are now functional components +- RatingBox has been split into RatingBox and RatingButton +- redirect when logged out now goes back to specific comment if the object was a comment +- fixed a bug where the GeoJsonMarker would not update if passing new props for `icon` +- migrate renovate config +- update babel monorepo +- update dependency @maplibre/maplibre-gl-leaflet to v0.0.22 +- update dependency @testing-library/jest-dom to v6.6.3 +- update dependency @testing-library/react to v16 +- update dependency black to v24.10.0 +- update dependency bleach to v6.2.0 +- update dependency django to v4.2.16 +- update dependency django-allauth to v65 +- update dependency django-filter to v24.3 +- update dependency djangorestframework to v3.15.2 +- update dependency easy-thumbnails to v2.10 +- update dependency eslint-plugin-promise to v6.4.0 +- update dependency esquery to v1.6.0 +- update dependency factory-boy to v3.3.1 +- update dependency faker to v33.1.0 +- update dependency flake8 to v7.1.1 +- update dependency husky to v9.1.7 +- update dependency lint-staged to v15.2.10 +- update dependency psycopg to v3.2.3 +- update dependency pytest to v8.3.4 +- update dependency pytest-cov to v6 +- update dependency pytest-django to v4.9.0 +- update dependency rules to v3.5 +- update eslint packages +- update dependency @turf/turf to v7.1.0 +- update dependency shpjs to v6 + + ## aplus-v2406.3 ### Fixed diff --git a/changelog/1428.md b/changelog/1428.md deleted file mode 100644 index 1e01e327d..000000000 --- a/changelog/1428.md +++ /dev/null @@ -1,4 +0,0 @@ -### Fixed - -- prevent a new comment to be posted multiple times when repeatedly clicking - submit by disabling the button after it's clicked for the first time (#1428) diff --git a/changelog/1461.md b/changelog/1461.md deleted file mode 100644 index f661a58e2..000000000 --- a/changelog/1461.md +++ /dev/null @@ -1,5 +0,0 @@ -### Added - -- extent the api mock in adhocracy4/static/__mocks__/api.js to include some - comment endpoints -- add various tests for comments diff --git a/changelog/1491.md b/changelog/1491.md deleted file mode 100644 index 073478476..000000000 --- a/changelog/1491.md +++ /dev/null @@ -1,4 +0,0 @@ -### Fixed - -- fix error alerts not showing correctly when adding/editing comments -- fix console warning / broken code when editing comments (#1491) diff --git a/changelog/1523.md b/changelog/1523.md deleted file mode 100644 index d8c7c5a9c..000000000 --- a/changelog/1523.md +++ /dev/null @@ -1,4 +0,0 @@ -### Fixed - -- fix child comment success alert shown again after hiding and then showing the - replies again. (#1532) diff --git a/changelog/284.md b/changelog/284.md deleted file mode 100644 index 25dc11e53..000000000 --- a/changelog/284.md +++ /dev/null @@ -1,3 +0,0 @@ -### Changed - -- Comment model now uses the RateableQuerySet class to get ratings for a comment (#284) diff --git a/changelog/7619.md b/changelog/7619.md deleted file mode 100644 index 4f1a5cfef..000000000 --- a/changelog/7619.md +++ /dev/null @@ -1,3 +0,0 @@ -### Changed - -- image upload for projects organised by date diff --git a/changelog/8372.md b/changelog/8372.md deleted file mode 100644 index 572f8aba5..000000000 --- a/changelog/8372.md +++ /dev/null @@ -1,5 +0,0 @@ -### Changed - -- redesign AI report to be readable -- only show AI report when there's a useful label (catnodecis and catneutral don't -count as labels) diff --git a/changelog/8381.md b/changelog/8381.md deleted file mode 100644 index a990fbb18..000000000 --- a/changelog/8381.md +++ /dev/null @@ -1,6 +0,0 @@ -### Added - -- add option to allow unregistered users to vote in a poll: - - the feature is controlled via a new django setting `A4_POLL_ENABLE_UNREGISTERED_USERS` to enable or disable it -- add a new captcha react component to integrate the captcha in the poll -- add a poll_voted signal which is sent when a user has voted on a poll. diff --git a/changelog/8447.md b/changelog/8447.md deleted file mode 100644 index d4a96d232..000000000 --- a/changelog/8447.md +++ /dev/null @@ -1,2 +0,0 @@ -### Changes -- fixed a bug where the GeoJsonMarker would not update if passing new props for `icon` diff --git a/changelog/8462.md b/changelog/8462.md deleted file mode 100644 index 71df54f80..000000000 --- a/changelog/8462.md +++ /dev/null @@ -1,6 +0,0 @@ -### Changed - -- Modified the input type for text inputs PollOpenQuestion.jsx and PollQuestion.jsx to textarea. -- Changed PollQuestion.jest.jsx - - diff --git a/changelog/8483.md b/changelog/8483.md deleted file mode 100644 index a783bdb04..000000000 --- a/changelog/8483.md +++ /dev/null @@ -1,4 +0,0 @@ -## Changed - -- added a new div to `Alert.jsx` with the class name `a4-alert__content` to keep semantic structure consistent with mein berlin -- added a new class called `a4-alert__container` to `Alert.jsx` \ No newline at end of file diff --git a/changelog/8529.md b/changelog/8529.md deleted file mode 100644 index c368c0c74..000000000 --- a/changelog/8529.md +++ /dev/null @@ -1,9 +0,0 @@ -### Changed -- Ratings are now functional components -- RatingBox has been split into RatingBox and RatingButton -- redirect when logged out now goes back to specific comment if the object was a comment - -### Added -- RatingBox takes an optional render function to customize rendering -- added `jest-dom` to tests, allowing for nicer matchers like `toBeInTheDocument` -- added a rating_api file to allow for more modular api calls diff --git a/changelog/994.md b/changelog/994.md deleted file mode 100644 index 40825cefc..000000000 --- a/changelog/994.md +++ /dev/null @@ -1,7 +0,0 @@ -### Changed - -- **Breaking Change** The react_comments_async templatetag no longer returns the - comment categories as a data attribute. The categories are now included in the - data returned from the comment api endpoint if called with `categories=true`. - If the templatetag is called with `with_categories=True` and the react comments - are used they automatically fetch the categories, so no changes are necessary. diff --git a/changelog/_1112.md b/changelog/_1112.md deleted file mode 100644 index e65e1a76e..000000000 --- a/changelog/_1112.md +++ /dev/null @@ -1,3 +0,0 @@ -### Fixed - -- replace removed turf `inside` function with `booleanPointinPolygon` diff --git a/changelog/_8186.md b/changelog/_8186.md deleted file mode 100644 index 0398393ad..000000000 --- a/changelog/_8186.md +++ /dev/null @@ -1,4 +0,0 @@ -## Changed - -- added new modifier classes to `PollResults.jsx`, `PollOpenQuestion.jsx` and `PollQuestion.jsx` for customized paddings -- replaced `` with react fragment to keep consistency \ No newline at end of file