-
Notifications
You must be signed in to change notification settings - Fork 29
Fix "animation modal" not showing #8444
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
📝 WalkthroughWalkthroughThe change involves the removal of the conditional rendering of the Changes
Assessment against linked issues
Suggested labels
Suggested reviewers
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Definitions (1)frontend/javascripts/oxalis/view/action-bar/create_animation_modal.tsx (1)
🔇 Additional comments (4)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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 (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
CHANGELOG.unreleased.md (1)
29-29
: Clear Documentation for the 'Create Animation' Modal Bug FixThe new changelog entry clearly documents that the "Create Animation" modal bug (where the modal did not open when selected from the navbar menu) has been fixed. The entry appropriately references [#8444] for traceability.
Note: Ensure that any related documentation (e.g., migration guides or client library updates) mentioned in the PR checklist is updated accordingly to reflect this change.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
CHANGELOG.unreleased.md
(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: circleci_build
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.
so, only super users have been able to render animations? git blame shows that this isSuperUser part was added in the original pr #7348, but I thought I saw external users creating animations 🤔 then, I must have dreamt that?
regarding the fix:
- I tested this on the dev instance and there I can open the modal, but the "submit" button is disabled (see screenshot). the button does not explain why it's disabled. I'd change the button text to "Start Animation" and put a tooltip on it à la "This feature is not enabled on this webknossos instance. please visit webknossos.org".
- I can open this modal without being logged in now. if the job was enabled on the dev instance, I would probably be able to start the job (not sure whether the backend denies this cc @MichaelBuessemeyer). this should not be possible imo.
In "annotaotion" mode, everyone was able to start animations. The bug occurs only in "view" mode. |
ah, thanks for clearing this up 👍 |
Done.
Yes, one can click on the "Start Animation" button but the backend refuses the API call as unauthorized. It is not the prettiest thing in the world, but at least it prevents any mischief. ![]() |
Yes, one can click on the "Start Animation" button but the backend refuses the API call as unauthorized. It is not the prettiest thing in the world, but at least it prevents any mischief. Could you add a simple |
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.
🎉
In view mode, the navbar menu entry for "Create Animation" is shown to every user, regardless of there permissions/role/admin status.
The corresponding modal React component, however, is only mounted for super users. In other words, the modal could not be open/displayed for the majority of our user base.
Steps to test:
Issues:
(Please delete unneeded items, merge only when none are left open)