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(plugin): Better Quests #2380

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

kvbaxi
Copy link
Contributor

@kvbaxi kvbaxi commented Apr 23, 2024

Somehow me changing default branch on my fork made my previous pull request ( #2364 ) get closed and branch "removed" even though it still exists.

Sorry guys 😭 For info about what this pull request introduces check out the previous pull request that got closed.

Copy link
Contributor

@Sqaaakoi Sqaaakoi left a comment

Choose a reason for hiding this comment

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

Could we also get some patches to attempt to progress quests when streaming anything? It's possible, I'm doing it with a JS snippet right now

replace: "$&,$self.QuestButtonComponent(),"
}
},
{ // Add new route
Copy link
Contributor

Choose a reason for hiding this comment

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

I feel like the way you're adding a route here will break something

// Routes used in this plugin (in case someone wants to add new ones)
const routes = new Map<string, RouteData>();

routes.set("/questsMenu", {
Copy link
Contributor

Choose a reason for hiding this comment

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

This will cause a 404 on reload. If you use /channels/@quests or something like that it will not do this



// Routes used in this plugin (in case someone wants to add new ones)
const routes = new Map<string, RouteData>();
Copy link
Contributor

Choose a reason for hiding this comment

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

Make a proper routes API?

path: "/questsMenu",
render: (...props) => <QuestPage {...props} />,
disableTrack: 1,
redirectTo: "/channels/@me"
Copy link
Contributor

@Sqaaakoi Sqaaakoi Apr 25, 2024

Choose a reason for hiding this comment

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

This is redundant

);
};

const redirectRoute = (ev: BeforeUnloadEvent) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't foolproof

@happyendermangit

This comment was marked as spam.

@TheKodeToad

This comment was marked as spam.

@CodiumAI-Agent

This comment was marked as spam.

@CodiumAI-Agent

This comment was marked as spam.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants