-
Notifications
You must be signed in to change notification settings - Fork 27
Rename oxalis references to WK #8591
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
Conversation
Important Review skippedMore than 25% of the files skipped due to max files limit. The review is being skipped to prevent a low-quality review. 53 files out of 160 files are above the max files limit of 100. Please upgrade to Pro plan to get higher limits. You can disable this status message by setting the ✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
thank you for the renaming! I think, that the OxalisState --> WebknossosState renaming will potentially cause a lot of merge conflicts. per se this is fine, but if these usages are touched anyway, I'd like to do another change first/too: ensure that
can be turned into
and TS should still know that state is OxalisState/WkState (similar to how the saga function for this typing enhancement, all the can you improve the typing of |
I applied the feedback and added a |
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.
great! there are still some useSelector
s in the code base (maybe search&replace missed these because of the line break?). could you do another sweep?
@@ -137,7 +137,9 @@ function JobListView() { | |||
const [isLoading, setIsLoading] = useState(true); | |||
const [jobs, setJobs] = useState<APIJob[]>([]); | |||
const [searchQuery, setSearchQuery] = useState(""); | |||
const isCurrentUserSuperUser = useSelector((state: OxalisState) => state.activeUser?.isSuperUser); | |||
const isCurrentUserSuperUser = useSelector( |
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.
useWkSelector?
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.
Good catch. I replace another batch of useSelector
calls.
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.
great, however, I think some imports are missing now (see ci output).
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.
awesome 👍
A very simple PR. I renamed to references to Oxalis to WebKnossos:
OxalisState
-->WebknossosState
(store.ts)OxalisApplication
-->WebKnossosApplication
(app.ts)OxalisApi
-->WebKnossosApi
(apiHelpers.ts)The import renaming was automatically handled by VSCode/Typescript language server intergration.
Replaced all occurances of
useSelector((state: OxalisState) => ...)
withuseWkSelector(state => ...)
.Steps to test:
Issues:
(Please delete unneeded items, merge only when none are left open)