-
Notifications
You must be signed in to change notification settings - Fork 42
feat(session): implement support for required preset scopes in session policies #1703
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
base: main
Are you sure you want to change the base?
feat(session): implement support for required preset scopes in session policies #1703
Conversation
|
Original prompt from Tarrence: 3. Update CreateSessionProvider to handle required message policiesIn // Set all message policyState to authorized
if (initialPolicies.messages) {
initialPolicies.messages.forEach((message, i) => {
message.id = `${i}-${message.domain.name}-${message.name}`;
message.authorized = true;
+ // Set required flag if applicable (implementation depends on requirements)
+ // This is where additional logic would be needed to determine if a message
+ // policy should be required
});
}4. Update Message Card UIMake sure that any message policy UI components respect the TestingVerify your changes by testing the following scenarios:
Submitting Your PRWhen you're done, create a PR and include the ticket ID "C7E-777" in the PR description. Mention that this PR implements support for required preset scopes in session policies. Let me know if you have any questions or need clarification on any part of this task. |
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
| variant="secondary" | ||
| onClick={onSkipSession} | ||
| disabled={isConnecting} | ||
| disabled={isConnecting || hasRequiredPolicy} |
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.
we should not render the button if is is required
C7E-777: Implement support for required preset scopes in session policies
This PR implements support for required preset scopes in session policies, extending the functionality to message policies and ensuring the Skip button respects the
isRequiredattribute.Changes
SessionMessagestype to includeisRequiredpropertyCreateSessionProviderto preserve theisRequiredproperty from presets for message policieshasRequiredPolicyfunction in CreateSession.tsx to check for required policies in both contract methods and message policiesisRequiredproperty similar to ContractCard.tsxTesting
isRequired=truecannot be toggledLink to Devin run
https://app.devin.ai/sessions/391eeff9d425420f87a56d8d427a32bf
Requested by: Tarrence van As ([email protected])