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
[QR-code] - Widget redirects to Mobile app #10591
Conversation
application/src/main/java/org/thingsboard/server/controller/QRCodeController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/AdminController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/AdminController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/AdminController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/AdminController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/AdminController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/AdminController.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/sql/mobile/JpaMobileAppDao.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/mobile/BaseMobileAppSettingsService.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/MobileApplicationController.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/sql/mobile/JpaMobileAppDao.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/model/ModelConstants.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/model/sql/MobileAppSettingsEntity.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/mobile/BaseMobileAppSettingsService.java
Outdated
Show resolved
Hide resolved
common/data/src/main/java/org/thingsboard/server/common/data/mobile/IosConfig.java
Show resolved
Hide resolved
common/data/src/main/java/org/thingsboard/server/common/data/mobile/QRCodeConfig.java
Show resolved
Hide resolved
common/data/src/main/java/org/thingsboard/server/common/data/mobile/MobileAppSettings.java
Show resolved
Hide resolved
common/data/src/main/java/org/thingsboard/server/common/data/mobile/AndroidConfig.java
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/MobileApplicationController.java
Outdated
Show resolved
Hide resolved
application/src/main/java/org/thingsboard/server/controller/MobileApplicationController.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/mobile/BaseMobileAppSettingsService.java
Outdated
Show resolved
Hide resolved
dao/src/main/java/org/thingsboard/server/dao/mobile/BaseMobileAppSettingsService.java
Outdated
Show resolved
Hide resolved
(state: AuthState) => state.mobileQrEnabled | ||
); | ||
|
||
export const selectPersistDeviceStateToTelemetryAndMobileQrEnabled = createSelector( |
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.
selectHomeDashboardParams
|
||
import { TenantId } from '@shared/models/id/tenant-id'; | ||
|
||
export interface MobileAppQRCodeSettings { |
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.
Need sync from Java models name
limitations under the License. | ||
|
||
--> | ||
<div *ngIf="!previewMode && !ctx" class="tb-title" translate>admin.mobile-app.connect-mobile-app</div> |
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.
Need to remove
<div class="tb-flex row align-center shrink" | ||
[class.row]="mobileAppSettings?.qrCodeConfig.badgePosition === badgePosition.RIGHT" | ||
[class.row-reverse]="mobileAppSettings?.qrCodeConfig.badgePosition === badgePosition.LEFT"> | ||
<!-- <canvas #canvas class="tb-qrcode"></canvas>--> |
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.
??
this.destroy$.complete(); | ||
} | ||
|
||
getMobileAppDeepLink(): Observable<string> { |
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.
private method
return this.mobileAppService.getMobileAppDeepLink(); | ||
} | ||
|
||
updateQRCode(link: string) { |
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.
private method
.tb-fixed-width { | ||
min-width: 230px; | ||
} |
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.
Move to form.scss in class fixed-title-width-230
@@ -35,21 +39,42 @@ const customerUserHomePageJson = '/assets/dashboard/customer_user_home_page.json | |||
|
|||
const updateDeviceActivityKeyFilterIfNeeded = (store: Store<AppState>, |
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.
Rename applyHomeDashboardParams
Pull Request description
This update allows users to scan a QR-code that redirects them to the mobile app. Includes:
General checklist
Front-End feature checklist
Back-End feature checklist