ff14-advanced-market-search / saddlebag-with-pockets

This is the Frontend for the FF14 Marketplace

Home Page:https://saddlebagexchange.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFXIV sale alert generator page

cohenaj194 opened this issue · comments

So the sale alerts kinda suck because we are automatically picking up every item a person is selling through the allagan-tools plugin.

Most of the time this causes false positives when a single item is out of date on universalis.

Instead we should make a FE page that let uses pick the specific items they care about.

This is an example the resulting json the page should make.

{
	"server": "Raiden", 
	"item_ids": [6145, 4360, 27530], 
	"seller_id": "6a24a0cedc3bsgdrhftjgykhulj"
}

We could start this out with the same page we use for undercuts that runs against the /api/seller api.

image

Then after we let the users add more items to the item_ids list. For each item we run the /api/salealert api too verify that universalis detects the items or not. If an item is not detected and is in the sold_ids then give an error and dont let them add it t the resulting json.

{
    "sold_ids": [
        6145,
        4360
    ],
    "listed_ids": [],
    "auction_data": {
        "4360": {
            "link": "https://universalis.app/market/4360",
            "min_price": 3150,
            "name": "Raptorskin Choker"
        },
        "6145": {
            "link": "https://universalis.app/market/6145",
            "min_price": 516,
            "name": "Noble Grapes"
        },
        "37813": {
            "link": "https://universalis.app/market/37813",
            "min_price": 285913,
            "name": "Rinascita Ring of Slaying"
        }
    },
    "server": "Raiden"
}

That way all the json is only for items they are selling. Then we use the @Rikiar73574 system so we dont duplicate sale alerts for items that have already sold out.

Actually this is not needed. I fixed it so that you can just start with an empty list of item ids and then it autoupdates it.

Instead we can just have the undercut alert generator also make it #336