From 21de306cb7c1168e2873177ea0f3f7f3957fafb9 Mon Sep 17 00:00:00 2001 From: grandeljay Date: Tue, 19 Dec 2023 15:07:02 +0100 Subject: [PATCH] refactor: use markdown files for changelog --- CHANGELOG.md | 17 - changelogs/0-6-0.md | 15 + changelogs/0-7-0.md | 32 ++ changelogs/0-7-1.md | 19 ++ changelogs/0-7-2.md | 5 + changelogs/0-7-3.md | 5 + changelogs/1-0-0.md | 24 ++ changelogs/1-1-0.md | 24 ++ changelogs/1-1-1.md | 7 + changelogs/unreleased.md | 10 + src/pages/changelog.php | 714 ++------------------------------------- 11 files changed, 178 insertions(+), 694 deletions(-) delete mode 100644 CHANGELOG.md create mode 100644 changelogs/0-6-0.md create mode 100644 changelogs/0-7-0.md create mode 100644 changelogs/0-7-1.md create mode 100644 changelogs/0-7-2.md create mode 100644 changelogs/0-7-3.md create mode 100644 changelogs/1-0-0.md create mode 100644 changelogs/1-1-0.md create mode 100644 changelogs/1-1-1.md create mode 100644 changelogs/unreleased.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index a4108c8c..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,17 +0,0 @@ - -# Changelog - -All notable changes to this project will be documented in this file. - - -## [1.1.2](https://github.com/wishthis/wishthis/compare/v1.1.1...v1.1.2) (2023-12-01) - -### Bug Fixes - -* Logging into non-existent user ([27d663](https://github.com/wishthis/wishthis/commit/27d66368eea93f61e691a5624bb6e8fbe094b5a2)) -* Not being able to stay logged in ([0b87dc](https://github.com/wishthis/wishthis/commit/0b87dc3cac7ea8553c59f6fd3b87dcfa72abfb3d)) -* Typo ([45a04f](https://github.com/wishthis/wishthis/commit/45a04fb7e79050e6ad35c056f386a5669e47f21b)) - - ---- - diff --git a/changelogs/0-6-0.md b/changelogs/0-6-0.md new file mode 100644 index 00000000..60fbc6e6 --- /dev/null +++ b/changelogs/0-6-0.md @@ -0,0 +1,15 @@ +## v0.6.0 + +### Added + +- This changelog +- Wish properties +- Button to mark wish as fulfilled + +### Improved + +- Card design + +### Fixed + +- Various small bugs diff --git a/changelogs/0-7-0.md b/changelogs/0-7-0.md new file mode 100644 index 00000000..4c286841 --- /dev/null +++ b/changelogs/0-7-0.md @@ -0,0 +1,32 @@ +## v0.7.0 + +### Added + +- Blog +- Dark theme +- Wish properties. You can now mark a wish as purchasable and add a price. +- Jump to last edited wishlist from home +- Quick add wish from home +- Button to request more wishes from a users wishlist +- Option to stay logged in + +### Improved + +- Localisation (many new translations added) +- Additional logins are no longer required when switching between wishthis channels +- Remembered wishlists design + +### Changed + +- Changelog is now a page instead of a downloadable markdown file +- Wishes can be edited from the wishlist now, without loading another page +- "Saved wishlists" has been renamed to "Remember lists" + +### Fixed + +- Various minor things (typos, menu order, etc) +- Wish information being updated with 404 content from URL +- Wish image not showing +- An error when saving a wish with a really long URL +- Redirect errors on Nginx +- An error when fetching title from an URL containing quotes diff --git a/changelogs/0-7-1.md b/changelogs/0-7-1.md new file mode 100644 index 00000000..87116008 --- /dev/null +++ b/changelogs/0-7-1.md @@ -0,0 +1,19 @@ +## v0.7.1 + +### Improved + +- MJML settings page #47 +- Expired sessions are now invalidated by wishthis instead of relying on the browser to delete the cookies. +- Dark theme +- Remembered lists design +- Translations + +### Fixed + +- Label on top of dropdown menu #44 +- Encoding issue in wish description #45 +- Caching issue with the blog #46 +- An error when a blog post doesn't have a featured image. +- Version number not being stored correctly causing the migration to execute the wrong script. +- Wishlist filter cut off on mobile +- Wish options not selectable after filtering diff --git a/changelogs/0-7-2.md b/changelogs/0-7-2.md new file mode 100644 index 00000000..c187d9f9 --- /dev/null +++ b/changelogs/0-7-2.md @@ -0,0 +1,5 @@ +## v0.7.2 + +### Fixed + +- Fix fulfilled wishes showing after using filter diff --git a/changelogs/0-7-3.md b/changelogs/0-7-3.md new file mode 100644 index 00000000..ab2bb0ec --- /dev/null +++ b/changelogs/0-7-3.md @@ -0,0 +1,5 @@ +## v0.7.3 + +### Fixed + +- Fix fulfilled wishes disappearing for wishlist owner #58 diff --git a/changelogs/1-0-0.md b/changelogs/1-0-0.md new file mode 100644 index 00000000..79feaec1 --- /dev/null +++ b/changelogs/1-0-0.md @@ -0,0 +1,24 @@ +## v1.0.0 + +### Added + +- Option to set currency #43 +- A roadmap in the changelog +- Compact/list view for wishes +- Option to enable advertisements + +### Improved + +- Large parts of wishthis have been completely rewritten, such as the API and how pretty URLs work. The aim was to increase security and maintainability. +- Changelog now automatically selects the current version, instead of the top most tab. + +### Changed + +- Decreased wish height on mobile devices + +### Fixed + +- Temporary fulfilled wish does not become available again after 30 minutes, except when viewing as the owner of the list. #71 +- Fix various wish UI bugs #48 +- Fix background and colour when opening the mobile menu +- Marking wish as fulfilled diff --git a/changelogs/1-1-0.md b/changelogs/1-1-0.md new file mode 100644 index 00000000..0700458d --- /dev/null +++ b/changelogs/1-1-0.md @@ -0,0 +1,24 @@ +## v1.1.0 + +### Added + +- Configuration flag to disable plausible.io calls #64 +- Add account delete option #69 +- Configuration flag to disable user registrations #70 +- After creating an account your language is automatically set to your browser's (if it is available), instead of defaulting to en_GB. +- Amazon links are now automatically converted to affiliate links to help support wishthis financially. +- Prerequisite check during installation + +### Fixed + +- Wish price field not being set #107 +- RewriteRules which caused HTTP 404 errors #93 +- Switching to wish "product" tab breaks view #83 +- Special characters not being displayed properly #80 +- A fatal error when the CHANNELS constant is removed from the config #74 +- Fulfilled wishes disappearing for wishlist owners +- Deprecated notices on PHP 8.2 + +### Changed + +- Added button labels for mobile devices diff --git a/changelogs/1-1-1.md b/changelogs/1-1-1.md new file mode 100644 index 00000000..3f2c7220 --- /dev/null +++ b/changelogs/1-1-1.md @@ -0,0 +1,7 @@ +## v1.1.1 + +### Fixed + +- Shared wishlist not accessible #179 +- Accessing wishlist without permission #177 +- Password reset not working #175 diff --git a/changelogs/unreleased.md b/changelogs/unreleased.md new file mode 100644 index 00000000..769ba1f0 --- /dev/null +++ b/changelogs/unreleased.md @@ -0,0 +1,10 @@ +## Unreleased + +### Fixed + +- Logging into non existent user #184 +- "Keep me logged in" checkbox + +### Changed + +- The login process (session management) has been completely rewritten diff --git a/src/pages/changelog.php b/src/pages/changelog.php index dbbd51e7..805aa5e7 100644 --- a/src/pages/changelog.php +++ b/src/pages/changelog.php @@ -19,695 +19,55 @@ $page->navigation();

title ?>

+
-
-
-

-

+ +

+
%s', - __('discussions') - ) - ); - ?> -

-
    -
  • - - #34 -
  • -
  • - - #43 -
  • -
  • - - #49 -
  • -
  • - -
  • -
  • - -
  • -
-
-
- -
-
-
-

-
- -
-

-
    -
  • - - #184 -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
+ $parsedown = new \Parsedown(); + $text = \file_get_contents($filepath); + $text = \preg_replace('/(#(\d+))/', '$1', $text); + ?> +
text($text); ?>
-
- -
-
-
-

-
- -
-

- -
-
-
- -
-
- -
-

-
- -
-

-
    -
  • - - #64 -
  • -
  • - - #69 -
  • -
  • - - #70 -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

- - -

-
    -
  • - -
  • -
-
- -
-
- -
-
- -
-

-
- -
-

-
    -
  • - - #43 -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
- -

-
    -
  • - - #71 -
  • -
  • - - #48 -
  • -
  • - -
  • -
  • - -
  • -
-
- -
-
- -
-
-
-

-
-
-

-
    -
  • - - #58 -
  • -
-
-
-
- -
-
-
-

-
-
-

-
    -
  • - -
  • -
-
-
-
- -
-
- -
-

-
- -
-

-
    -
  • - - #47 -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - - #44 -
  • -
  • - - #45 -
  • -
  • - - #46 -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
- -
-
- -
-
- -
-

-
- -
-

-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
  • - -
  • -
-
- -
-
- -
-
- -
-

-
- -
-

-
    -
  • - -
  • -
  • - -
  • -
  • - -
  • -
- -

-
    -
  • - -
  • -
- -

-
    -
  • - -
  • -
-
- -
-
- +
-