-
Notifications
You must be signed in to change notification settings - Fork 54
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
hide-view-call-activity #1972
hide-view-call-activity #1972
Conversation
…state w/ burnettk
WalkthroughWalkthroughThe changes to the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 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 as PR comments)
Additionally, you can add 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
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx (2 hunks)
Additional context used
Learnings (1)
spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx (3)
Learnt from: jasquat PR: sartography/spiff-arena#1902 File: spiffworkflow-frontend/src/routes/ProcessInstanceMigratePage.tsx:353-353 Timestamp: 2024-07-11T14:30:49.271Z Learning: Verify code changes using shell scripts when the user indicates a modification has been made.
Learnt from: jasquat PR: sartography/spiff-arena#919 File: spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx:130-181 Timestamp: 2024-01-26T16:06:18.478Z Learning: The user, jasquat, has indicated a consideration for future refactor regarding the suggestion to abstract the API call logic in `getProcessInstances` function into a separate service or hook for improved modularity and reusability.
Learnt from: jasquat PR: sartography/spiff-arena#919 File: spiffworkflow-frontend/src/components/ProcessInstanceListTable.tsx:108-228 Timestamp: 2024-01-26T16:31:45.083Z Learning: The user, jasquat, has indicated a consideration for future refactor regarding the suggestion to abstract the API call logic in `getProcessInstances` function into a separate service or hook for improved modularity and reusability.
Additional comments not posted (2)
spiffworkflow-frontend/src/routes/ProcessInstanceShow.tsx (2)
738-738
: Improved readability and maintainability.Using the
includes
method on an array to check the task state improves readability and maintainability.
1128-1131
: Refined control flow for task type handling.The additional condition ensures that only relevant tasks are handled, improving the control flow.
However, ensure that all function calls to
taskDisplayButtons
match the new logic.
Fixes #1963
This hides the "View Call Activity Diagram" link from CallActivity tasks in a future type state. This is because while in that type of state the CallActivity has not created its subprocess task instances and therefore there is nothing to actually view and it errors.
Summary by CodeRabbit