Skip to content

feat: update core integration documentation and remove unnecessary Ty… - #6

Merged
roble merged 1 commit into
mainfrom
saucebase/sc-245/magic-link-authentication-auth-mo
Mar 21, 2026
Merged

feat: update core integration documentation and remove unnecessary Ty…#6
roble merged 1 commit into
mainfrom
saucebase/sc-245/magic-link-authentication-auth-mo

Conversation

@roble

@roble roble commented Mar 21, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the integration process for the Announcements module by simplifying the required core changes and improving the TypeScript type handling. Now, only one patch is needed, and TypeScript types are automatically managed, reducing manual steps and potential errors.

Core Integration Simplification:

  • Only the app-vue.patch patch is now required for integration; the previous need for a manual TypeScript types patch (types.patch) has been removed. The announcement type is now handled automatically via page-props.d.ts, which augments @inertiajs/vue3's PageProps. [1] [2]

Patch Removal:

  • The patches/types.patch file is deleted, as it is no longer necessary for type augmentation.

Copilot AI review requested due to automatic review settings March 21, 2026 14:46

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Announcements module’s core integration guidance by removing the need for a separate TypeScript patch and instead providing automatic Inertia PageProps typing via module augmentation.

Changes:

  • Added resources/js/types/page-props.d.ts to augment @inertiajs/vue3 PageProps with announcement.
  • Removed the no-longer-needed patches/types.patch.
  • Updated CLAUDE.md integration documentation to reflect the single required core patch (app-vue.patch) and automatic TS typing.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
resources/js/types/page-props.d.ts Adds Inertia PageProps module augmentation for the announcement prop.
patches/types.patch Deletes the old patch that required manual core TS type edits.
CLAUDE.md Updates integration instructions and gotchas to reflect the new approach.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@roble
roble merged commit 988a6b0 into main Mar 21, 2026
6 checks passed
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.

2 participants