-
Notifications
You must be signed in to change notification settings - Fork 12
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
feat: Make the DataProxyProvider work in Flagship app #2697
Conversation
5736326
to
42705b3
Compare
|
||
log.log('Initializing DataProxy intent in Flagship app') | ||
const isSearchAvailable = | ||
(await webviewIntent?.call('isAvailable', 'search')) ?? false |
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.
nit: webviewIntent?.call
: ?. has already been checked L74
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.
Fixed here
return | ||
} | ||
|
||
if (!flag('cozy.search.enabled')) { |
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.
nit: Maybe the flagship flag condition could be centralized with the iframe flag condition ?
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.
Fixed here
In previous implementation we disabled the DataProxy in Flagship app because this feature was not implemented yet in that environment We are working on implementing it in the Flagship app, so we want the DataProxyProvider to be able to use the Flagship's implementation This commit implements this by checking the feature availability on the Flagship app and then by redirecting the DataProxy calls through the webviewIntent
42705b3
to
a1afc01
Compare
In previous implementation we disabled the DataProxy in Flagship app because this feature was not implemented yet in that environment
We are working on implementing it in the Flagship app, so we want the DataProxyProvider to be able to use the Flagship's implementation
This commit implements this by checking the feature availability on the Flagship app and then by redirecting the DataProxy calls through the webviewIntent
Related PR: cozy/cozy-flagship-app#1279