Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Feat(character): Updating previous and next buttons to skip the gaps #556

Merged
merged 5 commits into from
Mar 11, 2023

Conversation

SpeedyD
Copy link
Contributor

@SpeedyD SpeedyD commented Mar 11, 2023

Have been thinking for a while to update the previous and next buttons.. so they no longer skip over the gaps- displaying no previous or next button just because in a sequence of 1-2-4-5 there is no 3, so no previous on 4 and no next on 2.. that's silly.

Spoke about it with @itinerare who quickly produced code, but it required some testing.. and some fixing. And that's what I did.

Also special mention to @AW0005 whose recent edit to the code made me consider doing this. :)

@itinerare itinerare added enhancement New feature or request needs review Pull requests that are pending community review labels Mar 11, 2023
@SpeedyD
Copy link
Contributor Author

SpeedyD commented Mar 11, 2023

On advice from @itinerare, I will be editing the code to be more consistent with other code soon.
I will also be swapping the previous and next links to be more consistent with default ML order, but will also add an option to keep it as it currently is.

Please refrain from reviewing until this has been done. Thank you.

SpeedyD and others added 2 commits March 11, 2023 08:27
1. Swapped sides by default
2. Added option to reverse
3. Altered configuration to allow new option
4. Actually stopped the code from running if the entire thing is turned off
@SpeedyD
Copy link
Contributor Author

SpeedyD commented Mar 11, 2023

...aaand done. Ready for reviews.

Copy link
Contributor

@AW0005 AW0005 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poked around locally and it looks good to me :D

config/lorekeeper/extensions.php Outdated Show resolved Hide resolved
@itinerare itinerare merged commit 211c86d into corowne:develop Mar 11, 2023
@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Mar 11, 2023
@SpeedyD SpeedyD deleted the feature/next-prev-update branch March 11, 2023 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request reviewed Pull requests that have received community review and are pending merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants