Commit 97914b2
authored
MN-430: PhotoHUDPreview with SightsSlider + Counter (#648)
* Added ObjectTranlation type
* Added useObjectTranslation hook
* Renamed CaptureCaptureHUDButtons to PhotoCaptureHUDButtons
* Added PhotoCaptureHUDSightsSlider component: display a scrolling sights label
* Added PhotoCaptureHUDCounter component
* Added PhotoCaptureHUDPreview component that render SightsSlider and Counter
* Added PhotoCaptureHUD that render the HUDPreview and HUDButtons
* Fix: lint
* fix: applying feedback review, Sights liftup in PhotoCaptureHUD
* rename Slider to SightsSlider
* useObjectTranslation/CaptureHUDPreviewtests added + fix
* directory structure changed by PreviewSight and PreviewAddDamage view
directory structure changed to be more clear with PreviewSight and PreviewAddDamage view
* TSDoc added to i18n language types
* fix on tests and import
* useSightLabel's hook moved to @monkvision/common + SightSlider component styles sight.id: string instead of sight:Sight
* SightsSlider tests done
* sight overlay now take all preview screen space
* sight centered in slider when selected
* responsive style added when portrait view
* when the picture is taken, the sight button(in the slider) changed to a light color and have a check icon
* TSDoc useSightLabel
* keep sight button selected in the center when switching back to main preview
* TSDoc useObjectTranslation & useSightLabel hooks
* fixing PR review comments
* PhotoCapture logic and component plug to camera. refacto + rename funct/var
* renaming component for more readability + callback mode (avoiding rerender camera) + button in AddDamagePreview traduction in sync
* tests + i18nAddDamage instance moved to separate file
* SightOverlay stays in CameraPreview frame in both landscape and portrait mode.
* SightOverlay equals CameraPreview in aspect ratio
* fixing PR (check comments)
* fixing PR (check comments)
* Created SwitchButton component (#656)
* import changeAlpha function in usePhotoHUDButtonBackground hook1 parent 67fd360 commit 97914b2
File tree
59 files changed
+1176
-47
lines changed- packages
- private/test-utils/src/__mocks__
- @monkvision
- public
- camera-web
- src/Camera
- test/Camera
- common
- src/hooks
- test/hooks
- inspection-capture-web
- src
- CaptureHUD
- CaptureHUDButtons
- PhotoCapture
- PhotoCaptureHUDAddDamagePreview
- PhotoCaptureHUDButtons
- PhotoCaptureHUDSightPreview
- AddDamageButton
- SightsCounter
- SightsSlider
- hooks
- translations
- test/PhotoCapture
- PhotoCaptureHUDSightPreview
- hooks
- types/src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
59 files changed
+1176
-47
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
25 | 31 | | |
26 | 32 | | |
| |||
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
43 | | - | |
| 49 | + | |
44 | 50 | | |
45 | 51 | | |
46 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| 204 | + | |
204 | 205 | | |
205 | 206 | | |
206 | 207 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
0 commit comments