-
Notifications
You must be signed in to change notification settings - Fork 9
Remove compat build #875
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
Remove compat build #875
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -59,7 +59,6 @@ | |
| "dependencies": { | ||
| "@inertiajs/inertia": "^0.11.0", | ||
| "@inertiajs/inertia-vue3": "^0.6.0", | ||
| "@vue/compat": "^3.3.8", | ||
| "@wmde/wikit-tokens": "^2.1.0-alpha.15", | ||
| "@wmde/wikit-vue-components": "^2.1.0-alpha.16", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we can remove lines 62 and 63 too
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think removing |
||
| "date-fns": "^3.3.1", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,8 +14,8 @@ import { ref } from 'vue'; | |
| import { CdxProgressBar } from "@wikimedia/codex"; | ||
|
|
||
| const props = withDefaults(defineProps<{ | ||
| delay: number | ||
| visible: boolean | ||
| delay?: number | ||
| visible?: boolean | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't making these optional kind of risky? If we somehow don't pass
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. They have default values, therefore they won't be
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I also had this issue, i was getting a TS warning or error because of this at some point but i dont see it anymore and they do have defaults, but I have two questions:
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Valid question :D Vue documentation says that you should remove all the warnings before removing the compat build, I took it as a sign :D
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
ah ok, so you got the warning.. i also saw it. yes, we shouldn't merge code with warnings :)
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@chukarave the only instance of the loading overlay we are using in the app is not passing the props and this is the reason we are getting the warnings
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right those were exactly the warnings we were getting. Nice to have a clean console 🙌 well done @hasanakg |
||
| }>(), { | ||
| delay: 250, | ||
| visible: false | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -275,7 +275,7 @@ describe('MismatchesRow.vue', () => { | |
|
|
||
| await wrapper.find('.full-description-button').trigger('click'); | ||
|
|
||
| const dialog = wrapper.find('.full-description-dialog .cdx-dialog'); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. everything is working flawlessly, but how is this related to the compat build??? 🤔
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. TBH, I have no idea. The old one works with compat build, but needed to update to the new one to make it work without compat build.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think I had this issue as well where the wrapper element collapses with the child element. I understand, ok. |
||
| const dialog = wrapper.find('.full-description-dialog.cdx-dialog'); | ||
|
|
||
| expect(dialog.isVisible()).toBe(true); | ||
| }); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's also safe to remove lines 25 to 27
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think removing
wikitis not in the scope of this ticket, that's why I left these lines.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hasanakg You are right that this is not the scope of this ticket but i think there is no ticket to remove wikit yet, we should do a cleanup afterwards.