This repository was archived by the owner on Sep 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Migrate to nextjs native server and lint, and more #440
Draft
ThisIsMissEm
wants to merge
7
commits into
main
Choose a base branch
from
chore/upgrade-to-native-next
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
238ba18
chore: migrate to next lint
ThisIsMissEm f969479
chore: migrate to next dev from custom server
ThisIsMissEm 85711a7
chore: remove custom options from jest
ThisIsMissEm 3f9e7ae
chore: improve code coverage of bookmarks helper
ThisIsMissEm 1cf3e70
chore: upgrade some dependencies
ThisIsMissEm 5bc7cc4
chore: remove unneeded raw-loader dependency
ThisIsMissEm 46fd036
chore: upgrade react-test-renderer
ThisIsMissEm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "extends": ["@inrupt/eslint-config-react", "plugin:@next/next/recommended"], | ||
|
|
||
| "rules": { | ||
| // temporarily disable this until we fix it everywhere | ||
| "no-shadow": 0, | ||
| // temporarily set this to warn this until we fix it everywhere | ||
| "no-unused-vars": 0, | ||
| "react/display-name": 0, | ||
| "react/forbid-prop-types": 0 | ||
| } | ||
| } | ||
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,6 @@ | ||
| {"@context":"https://www.w3.org/ns/solid/oidc-context.jsonld","client_id":"https://pod.inrupt.com/appsteamdev/clientid.json","redirect_uris":["https://localhost:3000/","https://localhost:3000/login"],"client_name":"Inrupt PodBrowser Localhost"} | ||
| { | ||
| "@context": "https://www.w3.org/ns/solid/oidc-context.jsonld", | ||
| "client_id": "https://pod.inrupt.com/appsteamdev/clientid.json", | ||
| "redirect_uris": ["http://localhost:3000/", "http://localhost:3000/login"], | ||
| "client_name": "Inrupt PodBrowser Localhost" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,7 +35,7 @@ const setBookmarks = jest.fn(); | |
| describe("Bookmark", () => { | ||
| test("it renders a bookmark icon", async () => { | ||
| const { asFragment } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
|
Contributor
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. @VirginiaBalseiro this may have been causing test bugs |
||
| <Bookmark iri={iri} /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
@@ -44,7 +44,7 @@ describe("Bookmark", () => { | |
|
|
||
| test("it renders a bookmark icon and text if withText prop is true", async () => { | ||
| const { asFragment, getByTestId } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark iri={iri} withText /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
@@ -55,7 +55,7 @@ describe("Bookmark", () => { | |
|
|
||
| test("it renders default text if add and remove strings are not passed", async () => { | ||
| const { getByText } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark iri={iri} withText /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
@@ -64,7 +64,7 @@ describe("Bookmark", () => { | |
| }); | ||
| test("it renders passed strings for add and remove if available", async () => { | ||
| const { getByText } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark | ||
| iri={iri} | ||
| withText | ||
|
|
@@ -79,7 +79,7 @@ describe("Bookmark", () => { | |
|
|
||
| test("it renders a button if menuItem is false", async () => { | ||
| const { asFragment, getByTestId } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark iri={iri} /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
@@ -90,7 +90,7 @@ describe("Bookmark", () => { | |
|
|
||
| test("it renders a list item button if menuItem is true", async () => { | ||
| const { asFragment, getByTestId } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark iri={iri} menuItem /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
@@ -103,7 +103,7 @@ describe("Bookmark", () => { | |
| describe("toggleHandler", () => { | ||
| test("it updates icon when the toggle handler is triggered", async () => { | ||
| const { container } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark iri={iri} /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
@@ -163,7 +163,7 @@ describe("toggleHandler", () => { | |
| }); | ||
| test("it renders an error when it is unsuccessful in adding bookmark", async () => { | ||
| const { container } = renderWithTheme( | ||
| <BookmarkContext.Provider value={(bookmarks, setBookmarks)}> | ||
| <BookmarkContext.Provider value={{ bookmarks, setBookmarks }}> | ||
| <Bookmark iri={iri} /> | ||
| </BookmarkContext.Provider> | ||
| ); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
For some reason
next lintdidn't pick up the.jsconfiguration, but we don't actually need it anyway.