Skip to content
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

April 2021 Hubs Cloud Update #4013

Merged
merged 724 commits into from
Mar 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
724 commits
Select commit Hold shift + click to select a range
de56414
Localize AvatarUrlModal
robertlong Dec 16, 2020
bcc4b6a
Localize ChatSidebar
robertlong Dec 16, 2020
00c54a3
Localize PeopleSidebar
robertlong Dec 16, 2020
c7a175a
Localize ChatSidebarContainer
robertlong Dec 17, 2020
bd3bfe0
Localize CloseRoomModal
robertlong Dec 17, 2020
8726549
Localize ContentMenu
robertlong Dec 17, 2020
ee46743
Add active locale item to storybook toolbar
robertlong Dec 17, 2020
670ef2f
Localize EnterOnDeviceModal
robertlong Dec 17, 2020
02ff6fe
Localize ExitedRoomModal
robertlong Dec 17, 2020
a1a729c
Localize ExitedRoomScreenContainer
robertlong Dec 17, 2020
c98cd95
Localize InviteLinkInputField
robertlong Dec 17, 2020
c515df0
Localize InvitePopover
robertlong Dec 17, 2020
0106e9f
Localize LeaveRoomModal
robertlong Dec 17, 2020
4567984
Localize LoadingScreenContainer
robertlong Dec 17, 2020
927a629
Move from dayjs to react-intl for relative timestamps
robertlong Dec 17, 2020
4434a1c
Localize ChatSidebar title
robertlong Dec 17, 2020
cf5ccd8
Localize media tiles
robertlong Dec 17, 2020
26e8001
Localize MicPermissionsModal
robertlong Dec 17, 2020
f245e74
Localize MicSetupModal
robertlong Dec 17, 2020
f67b787
Localize MoreMenuPopover
robertlong Dec 17, 2020
5af5842
Localize ObjectMenuContainer
robertlong Dec 17, 2020
92ea84f
Localize ObjectsSidebar
robertlong Dec 17, 2020
1c62666
Localize ObjectURLModal
robertlong Dec 17, 2020
073924a
Fix proptypes
robertlong Dec 17, 2020
85e583d
Fix regressions in ContentMenu and LoadingScreenContainer
robertlong Dec 17, 2020
27bb8ca
Localize PlacePopover
robertlong Dec 17, 2020
099590d
Localize PromoteClientModal
robertlong Dec 17, 2020
a8df68c
Localize ReactionPopover
robertlong Dec 17, 2020
c81e0e5
Localize RoomEntryModal
robertlong Dec 17, 2020
0e95fd4
Localize RoomSettingsSidebar
robertlong Dec 18, 2020
8953141
Localize RoomSidebar
robertlong Dec 18, 2020
7b83fd8
Localize SafariMicModal
robertlong Dec 18, 2020
d53f37e
Localize SceneUrlModal
robertlong Dec 18, 2020
74a74a4
Localize SharePopover
robertlong Dec 18, 2020
3ddebf1
Localize SpectatingLabel
robertlong Dec 18, 2020
c2532cc
Localize Tips
robertlong Dec 18, 2020
3f3b030
Localize TweetEditorModal
robertlong Dec 18, 2020
1d9a405
Localize TwitterOAuthModal
robertlong Dec 18, 2020
1da3e1b
Localize UserProfileSidebar
robertlong Dec 18, 2020
f845e00
Localize VoiceButtonContainer
robertlong Dec 18, 2020
8bdd4ff
Localize WebVRUnsupportedModal
robertlong Dec 18, 2020
c59f804
Fix WebVRUnsupportedModal localization
robertlong Dec 18, 2020
f754a1b
Use paragraph to enforce lineheight
robertlong Dec 18, 2020
336e8ff
Localize ui-root
robertlong Dec 18, 2020
6ed734c
Localize Preferences Screen
robertlong Dec 19, 2020
1120f98
Fix MediaTiles relative time
robertlong Dec 19, 2020
d631ec8
Use one definition for invite-popover title
robertlong Dec 19, 2020
b683630
Localize default scene tweet
robertlong Dec 19, 2020
703bb2b
Remove unnecessary props from WrappedIntlProvider
robertlong Dec 19, 2020
e31be36
Localize chat log messages and fix relative timestamps
robertlong Dec 19, 2020
326d8e9
Remove i18n todo
robertlong Dec 19, 2020
09e85d2
Add localization tooling and clean up existing locales
robertlong Dec 19, 2020
abb7be9
Remove unused onResizeViewport method
robertlong Dec 19, 2020
dca9d1a
Merge pull request #3533 from mozilla/redesign/use-resize-viewport
robertlong Dec 19, 2020
2c74eac
Merge branch 'room-ui-redesign' into redesign/remaining-l10-tasks
robertlong Dec 19, 2020
42b170c
reexecute enableChromeAEC if network changed
vincentfretin Dec 19, 2020
32e9eaf
Update networked-aframe to include fix for invalid transform data
brianpeiris Dec 21, 2020
70365b0
Merge pull request #3562 from mozilla/redesign/static-page-l10n
robertlong Jan 4, 2021
6a45705
Merge pull request #3584 from mozilla/redesign/non-room-components-l10n
robertlong Jan 4, 2021
f78c82d
Merge pull request #3594 from mozilla/redesign/room-components-l10n
robertlong Jan 4, 2021
0b1a47a
Merge pull request #3602 from mozilla/redesign/preferences-screen-l10n
robertlong Jan 4, 2021
557249a
Add link to locale documentation
robertlong Jan 4, 2021
371cc47
Remove generated en.json locale
robertlong Jan 4, 2021
ed4b047
Merge pull request #3603 from mozilla/redesign/remaining-l10-tasks
robertlong Jan 4, 2021
8e44e91
Merge branch 'room-ui-redesign' into redesign/ui-root-l10n
robertlong Jan 4, 2021
22d7481
Merge branch 'master' into room-ui-redesign
robertlong Jan 4, 2021
a215cb4
Merge branch 'room-ui-redesign' into redesign-naf-update
robertlong Jan 4, 2021
ad04788
Fix package-lock
robertlong Jan 4, 2021
b58e0ed
Merge pull request #3614 from mozilla/redesign-naf-update
robertlong Jan 4, 2021
bfb5f7d
Use break-word in messages/ rtc panel titles
robertlong Jan 5, 2021
1493040
Presence log overflow-wrap
robertlong Jan 5, 2021
911d216
Merge pull request #3638 from mozilla/redesign/word-break
robertlong Jan 5, 2021
46d8a15
Remove %app-name% from Chinese translations
robertlong Jan 5, 2021
3ad3007
Merge pull request #3646 from mozilla/redesign/fix-i18n-app-name
robertlong Jan 5, 2021
1e57b61
Add invite button to more menu on mobile
robertlong Jan 5, 2021
991d1e2
Merge pull request #3647 from mozilla/redesign/mobile-invite-popover
robertlong Jan 5, 2021
ed34c4b
Properly disable Aframe's resize handler
robertlong Jan 5, 2021
fa17ea4
Merge pull request #3649 from mozilla/redesign/fix-resize
robertlong Jan 5, 2021
971a732
Fix media exit history issue
johnshaughnessy Jan 5, 2021
cdd9267
Fix issue with quickly backing out of modal
johnshaughnessy Jan 5, 2021
efe865f
Fix unknown prop warning from React
johnshaughnessy Jan 5, 2021
82076ba
Fix issue if translations do not exist in config
johnshaughnessy Jan 5, 2021
4cc9499
Make inspect mode a toggle and add toggle lights button
robertlong Jan 6, 2021
1ed543c
Remove stop inspecting when touch stopped
robertlong Jan 6, 2021
cf8e91c
RTC panel fixes
keianhzo Jan 6, 2021
5decd52
Fix candidates detection
keianhzo Jan 6, 2021
873a7fb
Better RTC errors logging
keianhzo Jan 6, 2021
6a19f70
Merge pull request #3655 from mozilla/redesign/toggle-inspect
robertlong Jan 6, 2021
dca8568
Fix link button in object menu
robertlong Jan 6, 2021
c8d0e48
Add short link description to invite popover
robertlong Jan 6, 2021
a3c9442
Merge pull request #3667 from mozilla/redesign/fix-link-button
robertlong Jan 6, 2021
be384a8
Add intl polyfills for Safari support
robertlong Jan 6, 2021
3800de8
Merge pull request #3669 from mozilla/redesign/add-short-link-descrip…
robertlong Jan 6, 2021
42886bb
Merge pull request #3670 from mozilla/redesign/intl-polyfills
robertlong Jan 6, 2021
bebca52
PR feedback
johnshaughnessy Jan 7, 2021
ae3a235
Merge pull request #3650 from mozilla/bug/escape-key-in-modal
robertlong Jan 7, 2021
0f6b885
Fix FullscreenTip component
robertlong Jan 7, 2021
d6d7af6
Add enter VR button to toolbar in small viewport
robertlong Jan 7, 2021
83f8ff5
Merge pull request #3676 from mozilla/redesign/vr-fixes
robertlong Jan 7, 2021
e544b02
Disable track and send zero bytes on transport pause
keianhzo Jan 8, 2021
dbf1463
Support for Mic selection
keianhzo Jan 8, 2021
1b9a8f0
Bump webrtc-adapter to 7.7.0
keianhzo Jan 8, 2021
6b0f7f5
Bump webrtc-adapter to 7.7.0
keianhzo Jan 8, 2021
b7500bf
Handle ICE/Signaling failures and retry an ICE negotiation
keianhzo Jan 8, 2021
fc6f99f
Merge pull request #3620 from mozilla/room-ui-redesign-audio
robertlong Jan 8, 2021
0926795
Landing Page Redesign WIP
robertlong Jan 8, 2021
f8aa78a
Merge branch 'room-ui-redesign' into rtc-panel-updates
robertlong Jan 8, 2021
d5e741f
Merge pull request #3662 from mozilla/rtc-panel-updates
robertlong Jan 8, 2021
52bc345
Merge pull request #3663 from mozilla/webrtc-polyfill-bump
robertlong Jan 8, 2021
c6da808
Polish styling for static pages
robertlong Jan 9, 2021
34aa52d
Remove background from OAuthScreen
robertlong Jan 9, 2021
c9021ea
Add alt text to homepage
robertlong Jan 9, 2021
1ba454a
Fix Safari bugs
robertlong Jan 9, 2021
41c09c7
Fix linting
robertlong Jan 9, 2021
e3c188d
Merge branch 'redesign/landing-page' of github.com:mozilla/hubs into …
robertlong Jan 9, 2021
d665e39
Merge pull request #3687 from mozilla/redesign/landing-page
robertlong Jan 9, 2021
b220f62
Landing page edits
robertlong Jan 9, 2021
dc70d96
Merge pull request #3686 from mozilla/webrtc-polyfill-bump-master
keianhzo Jan 11, 2021
660d2de
Close the sidebar when you go to object on small screens
johnshaughnessy Jan 11, 2021
b9270ad
have jenkins script build and message qa packages
brianpeiris Jan 12, 2021
d9e27b3
Mark the public_api_access flag as internal
johnshaughnessy Jan 12, 2021
0be7e20
RTC Retry fixes
keianhzo Jan 13, 2021
ee83dde
RTC fixes
keianhzo Jan 13, 2021
abf1bec
remove the alreadyExecuting boolean that caused a regression
vincentfretin Jan 13, 2021
8c1172c
Merge pull request #3693 from mozilla/bug/go-to-object-close-sidebar
robertlong Jan 13, 2021
d95af9f
Merge pull request #3691 from mozilla/rtc-retry-fixes
robertlong Jan 13, 2021
290a48f
Merge pull request #3692 from mozilla/rtc-fixes
keianhzo Jan 14, 2021
fae548d
Merge pull request #3703 from mozilla/admin-ui-update-banner
robinkwilson Jan 14, 2021
ca1804b
Fix centering hero content
robertlong Jan 19, 2021
d9844b9
Fix chat message styling
robertlong Jan 19, 2021
53c6ead
Fix chat message line height
robertlong Jan 19, 2021
e5a6a94
Fix loading of custom navmeshes
netpro2k Jan 19, 2021
71d762e
Fix getRenderResolution for tall high DPI viewports
robertlong Jan 19, 2021
09334c6
Fix modal width
robertlong Jan 19, 2021
1c6fbec
Update PAT for whats-new page
johnshaughnessy Jan 20, 2021
bbff36b
Hack around security measures (bad idea?)
johnshaughnessy Jan 20, 2021
54c5f0a
Render chat message with html2canvas
robertlong Jan 20, 2021
6d02c6e
Remove serialize-element
robertlong Jan 20, 2021
9600ff1
Merge pull request #3729 from mozilla/bug/whats-new-token
johnshaughnessy Jan 20, 2021
57f720b
Merge pull request #3696 from mozilla/change-public-api-access-flag-t…
johnshaughnessy Jan 20, 2021
fa1a102
Fix spawned emoji rendering
robertlong Jan 20, 2021
0cb2946
Fix waypoint teleport height
johnshaughnessy Jan 21, 2021
6e7657d
Fix attribution rendering
robertlong Jan 22, 2021
a430156
Merge pull request #3727 from mozilla/redesign/misc-fixes
robertlong Jan 22, 2021
44ac285
Use intl.formatMessage
robertlong Jan 22, 2021
0338eac
Merge pull request #3745 from mozilla/redesign/fix-attribution-rendering
robertlong Jan 22, 2021
37af1b8
Make voice button indicator red when muted
robertlong Jan 22, 2021
5224eb9
Fix presence log pointer events
robertlong Jan 22, 2021
b507135
Merge pull request #3749 from mozilla/redesign/misc-fixes-2
robertlong Jan 23, 2021
6a11bb2
Fix landing page app description styling
robertlong Jan 23, 2021
b971fe2
Merge pull request #3750 from mozilla/redesign/landing-page-copy-styles
robertlong Jan 23, 2021
d413efc
Merge branch 'master' of github.com:mozilla/hubs into room-ui-redesign
robertlong Jan 25, 2021
ba7d931
Merge pull request #3006 from mozilla/room-ui-redesign
robertlong Jan 25, 2021
9f2f7c6
Ensure Networked Aframe is on the correct version for the redesign la…
robertlong Jan 25, 2021
824060e
Merge pull request #3758 from mozilla/naf-redesign
robertlong Jan 25, 2021
5335c16
Fix homepage card styling
robertlong Jan 25, 2021
4033fe7
Merge pull request #3759 from mozilla/fix/homepage-card
robertlong Jan 25, 2021
e453ddc
Show safari mic dialog if mic permissions denied.
robertlong Jan 26, 2021
8553e13
Merge pull request #3768 from mozilla/fix/safari-mic-dialog
robertlong Jan 26, 2021
b53c3b6
Allow billboard component in gltfs
robertlong Jan 27, 2021
47ac201
Add ability to hide UI with tilde from anywhere
robertlong Jan 27, 2021
2672226
Re-enable the spectate button regardless of enable_lobby_ghosts
robertlong Jan 27, 2021
6d26cef
Merge pull request #3776 from mozilla/feature/hide-lobby-modal
robertlong Jan 27, 2021
e01c497
Enable WebXR support in Chrome and Edge
brianpeiris Jan 27, 2021
353833a
Increase deadzone for Windows Mixed Reality controllers
brianpeiris Jan 27, 2021
eef9c43
Allow earlier use of debug log
brianpeiris Jan 27, 2021
139afcf
Merge pull request #3785 from mozilla/feature/desktop-webxr
brianpeiris Jan 28, 2021
c5d3f05
Implement the link component for models, images, and videos.
robertlong Jan 29, 2021
4994e12
Fix more menu overflow
robertlong Jan 29, 2021
5673bcc
Merge pull request #3808 from mozilla/fix/more-menu-scrollbar
robertlong Jan 29, 2021
9bca02e
Fix room codes that start with 0
johnshaughnessy Feb 1, 2021
7a5ad47
-m Fix iframe embed support
brianpeiris Feb 2, 2021
2789b92
Merge pull request #3826 from mozilla/bug/invite-codes
johnshaughnessy Feb 3, 2021
6c10fab
Merge pull request #3741 from mozilla/bug/waypoints
johnshaughnessy Feb 3, 2021
307043e
Merge pull request #3849 from mozilla/bug/iframe-embed
brianpeiris Feb 3, 2021
14eaba1
Filter out attributions without an author or url
robertlong Feb 3, 2021
3dfa74f
Merge pull request #3856 from mozilla/fix/filter-attributions
robertlong Feb 3, 2021
664265c
Fix attribution source formatting and add spacing between items
robertlong Feb 4, 2021
e610b53
Merge pull request #3857 from mozilla/fix/filter-attributions
robertlong Feb 4, 2021
6caed1a
reorder if clauses
csnktms Feb 4, 2021
72cf523
add the min-line height needed to display letter g properly to dropdown
csnktms Feb 4, 2021
d27eff1
add max-width css property to dropdown-select
csnktms Feb 4, 2021
a300b26
Add avatar webcam texture
robertlong Feb 4, 2021
b7feb0f
Webcam effects
robertlong Feb 4, 2021
46dec48
Add hologram effect
robertlong Feb 5, 2021
8e5b931
Merge pull request #3860 from csnktms/bug/3825-character-overflow
robertlong Feb 10, 2021
0812729
Merge pull request #3771 from mozilla/allow-billboard-component
robertlong Feb 10, 2021
d5d9596
Remove link behavior for models
robertlong Feb 12, 2021
b72aada
Merge branch 'master' into feature/link-thumbnails
robertlong Feb 12, 2021
be94e2f
Don't upgrade to v2 lockfile yet
robertlong Feb 12, 2021
0e6614a
Revert changes to files
robertlong Feb 12, 2021
82b845f
Fix diff for media-loader
robertlong Feb 12, 2021
6684333
Fix button overflow, icon, and copy
robertlong Feb 16, 2021
9934969
Remove effects
robertlong Feb 16, 2021
bb0efe1
Merge pull request #3904 from mozilla/feature/link-thumbnails
robertlong Feb 16, 2021
e4389a1
Make texture-target more generic and move networking to player-info
robertlong Feb 17, 2021
88db693
Prevent video texture memory leak
robertlong Feb 17, 2021
7190cc9
Fix start/stop sharing and changing avatars
robertlong Feb 17, 2021
c8252e3
Merge branch 'master' into feature/avatar-webcam-texture
robertlong Feb 17, 2021
9bdae04
Turn off checkShaderErrors again
robertlong Feb 17, 2021
dd15971
Add EOF newline
robertlong Feb 17, 2021
27f23fb
DRY up createVideoOrAudioEl
robertlong Feb 17, 2021
2afa705
Remove completed TODO
robertlong Feb 17, 2021
6540fb0
Remove console.log and use video stream directly
robertlong Feb 17, 2021
8de8229
Rename function to getHubsComponentsFromMaterial
robertlong Feb 17, 2021
68a2fbe
Handle missing material on webcam-texture-target entity
robertlong Feb 17, 2021
6a703db
Rename to isSharingAvatarCamera
robertlong Feb 17, 2021
258a78a
Rename component to video-texture-target
robertlong Feb 17, 2021
d8104d2
Add component doc comment
robertlong Feb 17, 2021
a5bb338
Finish renaming webcam variables to video
robertlong Feb 18, 2021
0d46735
fix prettier and eslint errors
vincentfretin Feb 19, 2021
1d6eac7
Merge branch 'master' into dependabot/npm_and_yarn/scripts/bot/puppet…
robertlong Feb 19, 2021
d719bfb
Merge pull request #2973 from mozilla/dependabot/npm_and_yarn/scripts…
robertlong Feb 19, 2021
416d6b4
Revert "Bump puppeteer from 1.3.0 to 1.13.0 in /scripts/bot"
robertlong Feb 20, 2021
38adde2
Merge pull request #3937 from mozilla/revert-2973-dependabot/npm_and_…
robertlong Feb 20, 2021
56c0906
Merge pull request #3408 from mozilla/UseQsVREntryType
robertlong Feb 20, 2021
f180d53
Merge pull request #3861 from csnktms/bug/3824-long-strings-overlap-d…
robertlong Feb 20, 2021
99f269a
Add navigation buttons to exited room screen
robertlong Feb 22, 2021
b0221f1
Merge pull request #3945 from mozilla/feature/add-closed-room-link
robertlong Feb 22, 2021
0a20839
Merge pull request #3859 from csnktms/bug/3848-wrong-icon-displayed
robertlong Feb 22, 2021
9c882fd
Fix handling of Color attribute (delint)
netpro2k Feb 22, 2021
a3a36f3
Merge pull request #3925 from mozilla/feature/avatar-webcam-texture
robertlong Feb 22, 2021
49e327e
Add ability to target emissive map and set proper texture wrapping
robertlong Feb 23, 2021
590d32a
Fix ICE reconnect flashings
keianhzo Feb 18, 2021
ab1dd01
Move NAF adapter events to EventEmitter
keianhzo Feb 23, 2021
53a0462
Replace track when updating audio stream in audio source
keianhzo Feb 23, 2021
fef69c1
Merge pull request #3948 from mozilla/feature/avatar-webcam-texture
robertlong Feb 23, 2021
eae8470
Merge pull request #3695 from mozilla/bp-qa-test
brianpeiris Feb 23, 2021
a0a9c7a
Update Aframe to fix fog
robertlong Feb 23, 2021
f529f44
Merge pull request #3950 from mozilla/fix/fog
robertlong Feb 24, 2021
d81cb53
Fix personal space bubble opacity
robertlong Feb 24, 2021
b8716fe
spaceBubbleIgnore -> ignoreSpaceBubble
robertlong Feb 24, 2021
5edbbab
getPeers -> refreshConsumers
keianhzo Feb 24, 2021
52f5268
Add null check for camera target
robertlong Feb 24, 2021
a9b4136
Merge pull request #3957 from mozilla/fix/share-webcam
robertlong Feb 24, 2021
6930e87
Clean up boolean logic
robertlong Feb 24, 2021
f0b5a10
Move ignore space bubble tag to correct entities
robertlong Feb 24, 2021
bd35ecc
Fix duplicate tag
robertlong Feb 24, 2021
c86bb49
Merge pull request #3951 from mozilla/fix/space-bubble-opacity
robertlong Feb 24, 2021
da873fc
add/remove track doesn't work, using a node graph better
keianhzo Feb 25, 2021
6d45372
Do not handle disconnected state
keianhzo Feb 25, 2021
e83d75c
Merge pull request #3604 from vincentfretin/fix-enableChromeAEC
keianhzo Feb 26, 2021
7d1fdde
deployed successfully for the livestream
robinkwilson Feb 26, 2021
1d40a9e
Revert "deployed successfully for the livestream"
robinkwilson Feb 26, 2021
bd355bf
Merge pull request #3726 from mozilla/fix-custom-navmesh
netpro2k Mar 1, 2021
827f9e2
PR review fixes
keianhzo Mar 3, 2021
8a77824
Updates to allow _~ in avatar names
lordbron Jul 15, 2020
a7cb591
Merge branch 'lordbron-allow-underscore-tilda-avatar-names'
netpro2k Mar 4, 2021
70d7630
Merge pull request #3930 from mozilla/ice-restart-flashing
keianhzo Mar 9, 2021
5408572
Merge pull request #3988 from mozilla/master
johnshaughnessy Mar 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 3 additions & 8 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,10 @@
]
],
"plugins": [
[
"react-intl",
{
"messagesDir": "./public/messages",
"enforceDescriptions": false
}
],
// TODO: When i18n build pipeline is finished move to: [ "react-intl", { "removeDefaultMessage": true } ]
"react-intl",
"transform-react-jsx-img-import",
"@babel/proposal-class-properties",
["@babel/proposal-class-properties", { "loose": true }],
"@babel/proposal-object-rest-spread",
// Samsung Internet on the Oculus Go version is stuck at version 5.2, which is a
// Chromium 51, as of this writing. It needs babel to transpile async/await.
Expand Down
38 changes: 33 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:10-browsers
version: 2.1

aliases:
- &defaults
working_directory: ~/repo
docker:
- image: circleci/node:14.5-browsers

jobs:
build_and_test:
<<: *defaults
steps:
- checkout
- restore_cache:
Expand All @@ -18,3 +23,26 @@ jobs:
- run: npm test
- store_artifacts:
path: dist
- persist_to_workspace:
root: .
paths:
- node_modules
deploy_storybook:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: .
- run: npm run deploy-storybook -- --ci

workflows:
version: 2
build_test_and_deploy_storybook:
jobs:
- build_and_test
- deploy_storybook:
requires:
- build_and_test
filters:
branches:
only: room-ui-redesign
27 changes: 25 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = {
AFRAME: true,
NAF: true
},
plugins: ["prettier", "react", "react-hooks"],
plugins: ["prettier", "react", "react-hooks", "@calm/react-intl"],
rules: {
"prettier/prettier": "error",
"prefer-const": "error",
Expand All @@ -20,7 +20,30 @@ module.exports = {
// Light console usage is useful but remove debug logs before merging to master.
"no-console": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn"
"react-hooks/exhaustive-deps": "warn",
// TODO: Move to throwing lint errors for react-intl once migration is complete
"@calm/react-intl/missing-formatted-message": [
"warn",
{
noTrailingWhitespace: true,
ignoreLinks: true,
enforceLabels: true,
enforceImageAlts: true,
enforceInputProps: false
}
],
"@calm/react-intl/missing-attribute": [
"warn",
{
noTrailingWhitespace: true,
noSpreadOperator: true,
requireDescription: false,
formatDefineMessages: true,
requireIdAsString: true,
requireDefaultMessage: true
}
],
"@calm/react-intl/missing-values": "warn"
},
extends: ["prettier", "plugin:react/recommended", "eslint:recommended"]
};
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ dist/
certs/
results/
.ret.credentials
src/assets/locales/en.json
src/assets/locales/extracted-messages.json
52 changes: 52 additions & 0 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
const path = require("path");

module.exports = {
stories: ["../src/react-components/**/*.stories.mdx", "../src/react-components/**/*.stories.js"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials", "storybook-addon-designs"],
webpackFinal: async config => {
config.module.rules.push({
test: /\.scss$/,
use: [
"style-loader",
{
loader: "css-loader",
options: {
importLoaders: "1",
localIdentName: "[name]__[local]___[hash:base64:5]",
modules: true,
camelCase: true
}
},
"sass-loader"
],
include: path.resolve(__dirname, "..", "src")
});

const fileLoaderRule = config.module.rules.find(rule => rule.test.test(".svg"));
fileLoaderRule.exclude = /\.svg$/;
config.module.rules.push({
test: /\.svg$/,
use: [
{
loader: "@svgr/webpack",
options: {
titleProp: true,
replaceAttrValues: { "#000": "{props.color}" },
template: require("../src/react-components/icons/IconTemplate"),
svgoConfig: {
plugins: {
removeViewBox: false,
mergePaths: false,
convertShapeToPath: false,
removeHiddenElems: false
}
}
}
},
"url-loader"
]
});

return config;
}
};
7 changes: 7 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Add extra elements to the head of the preview iframe here. -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,700;1,400&display=swap" rel="stylesheet">
<style>
.sb-show-main {
padding: 0 !important;
}
</style>
58 changes: 58 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import React, { useEffect } from "react";
import { useAccessibleOutlineStyle } from "../src/react-components/input/useAccessibleOutlineStyle";
import "../src/react-components/styles/global.scss";
import { WrappedIntlProvider } from "../src/react-components/wrapped-intl-provider";
import { MINIMAL_VIEWPORTS } from "@storybook/addon-viewport";
import { AVAILABLE_LOCALES } from "../src/assets/locales/locale_config";
import { setLocale } from "../src/utils/i18n";

const Layout = ({ children, locale }) => {
useAccessibleOutlineStyle();

useEffect(
() => {
setLocale(locale);
},
[locale]
);

return <WrappedIntlProvider>{children}</WrappedIntlProvider>;
};

export const decorators = [
(Story, context) => (
<Layout locale={context.globals.locale}>
<Story />
</Layout>
)
];

export const parameters = {
viewport: {
viewports: {
...MINIMAL_VIEWPORTS,
oculusQuest: {
name: "Oculus Quest",
styles: {
width: "800px",
height: "450px"
}
}
}
}
};

const locales = Object.entries(AVAILABLE_LOCALES).map(([value, title]) => ({ title, value }));
locales.unshift({ title: "Browser Default", value: "browser" });

export const globalTypes = {
locale: {
name: "Locale",
description: "Active locale",
defaultValue: "browser",
toolbar: {
icon: "globe",
items: locales
}
}
};
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ Join us on our [Discord Server](https://discord.gg/CzAbuGu) or [follow us on Twi

Read our [contributor guide](./CONTRIBUTING.md) to learn how you can submit bug reports, feature requests, and pull requests.

We're also looking for help with localization. The Hubs redesign has a lot of new text and we need help from people like you to translate it. Follow the [localization docs](./src/assets/locales/README.md) to get started.

Contributors are expected to abide by the project's [Code of Conduct](./CODE_OF_CONDUCT.md) and to be respectful of the project and people working on it.

## Additional Resources
Expand Down
Loading