Skip to content

Feat: fix minor bugs with trades & add tradelistings, trade proposals #1199

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

Open
wants to merge 75 commits into
base: develop
Choose a base branch
from

Conversation

ScuffedNewt
Copy link
Contributor

Adds trade listings to dev, also adds the ability to propose trades to users
proposals use the existing trade system, the only difference being both users can edit both sides of the trades (however it must be accepted by both users to progress like normal trades)

Please pull this locally and test

…d if one side didn't contain anything (was represented only by entered text).
…e item under seeking

- Add validation to require at least one thing on seeking/offered each (includes 'other' fields for each)
- Clean up code so only supplied information/fields are json encoded
- Change pagination of listings to 10 per page due to their size
Copy link
Contributor

@SpeedyD SpeedyD left a comment

Choose a reason for hiding this comment

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

Sorry Newt, got a few Qs and nits for ya.

Also.. is there a way to turn off trade listings and trade proposals?? I didn't see anything regarding that..

We probably also should look into allowing a user to decline trade proposals.. 🤔

@ScuffedNewt
Copy link
Contributor Author

We probably also should look into allowing a user to decline trade proposals.. 🤔

you can already reject proposals!

@SpeedyD
Copy link
Contributor

SpeedyD commented Jan 27, 2025

We probably also should look into allowing a user to decline trade proposals.. 🤔

you can already reject proposals!

Nah, I mean.. decline ahead of time, like a "no thanks" before getting any.

…feature/trades

# Conflicts:
#	resources/views/news/_news.blade.php
#	resources/views/pages/credits.blade.php
@ScuffedNewt
Copy link
Contributor Author

We probably also should look into allowing a user to decline trade proposals.. 🤔

you can already reject proposals!

Nah, I mean.. decline ahead of time, like a "no thanks" before getting any.

sorry I don't get what you mean

@SpeedyD
Copy link
Contributor

SpeedyD commented Jan 28, 2025

sorry I don't get what you mean

Basically, what I mean is like a user setting that can ahead of time be set that the user does not want to receive trade proposals.

But.. that may be out of scope for this particular PR, and may actually be a good idea for trades in general, not just proposals. (Which is why I ended it on that we should probably look into it, not actually as note for this PR.. Maybe I'll make it an issue instead.)

@ScuffedNewt
Copy link
Contributor Author

Maybe I'll make it an issue instead.

good idea, definitely for me if the opt out of proposals they would be unable to create listings

Copy link
Contributor

@SpeedyD SpeedyD left a comment

Choose a reason for hiding this comment

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

Right- with all that said, and having opened issue #1214... there's only one thing left to do.

And that was reviewing the code. I now understand that odd question mark is in fact a feature of PHP 8.. A Nullsafe Operator. Something I will look more into in the future. But for now.. You've addressed all my issues, and as such, I approve this PR.

@itinerare
Copy link
Member

Right, if that's settled I'll take a look at this when I next have the wherewithal.

…feature/trades

# Conflicts:
#	resources/views/home/trades/create_trade.blade.php
#	resources/views/home/trades/edit_trade.blade.php
#	resources/views/pages/credits.blade.php
#	resources/views/widgets/_inventory_select.blade.php
Copy link
Contributor

@SpeedyD SpeedyD left a comment

Choose a reason for hiding this comment

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

Merging in develop changes nothing, but re-approving nonetheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs review Pull requests that are pending community review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

item_filter in trades does not account for HTML in description or otherwise causing filter to fail
4 participants