Граф коммитов

80 Коммитов

Автор SHA1 Сообщение Дата
Sanjana Kapur d1da9413ea
Add type safety to shared libraries localization (#2777)
* Add type safety to shared libraries localization

* Fix localization unit test

* Switch folder order of generated and localization
2023-08-18 11:28:49 -07:00
Rena Chen e2865fb1eb Update luxon from 2.3.2 to 2.5.2 2023-08-14 14:01:47 -04:00
Sanjana Kapur f31b8b620c
Remove clean resources task so translations stay (#2775) 2023-08-07 14:39:50 -07:00
David Watrous 0a54e19a2e
Added support for updating node communication mode (#2772)
This is currently disabled except in dev mode until the API version
which Batch Explorer uses is updated to support node comms mode.
2023-08-04 12:10:27 -04:00
Sanjana Kapur 1aecc3bfe4
Integrate localized strings into web and desktop app (#2730)
* Added fake localizer

* Switch desktop app to use new translations

* Add script to combine translated files by language

* Add global build-translations command

* Update comments and docs accordingly with changes

* Run merge-translations script on Azure DevOps path

* Add localization for Batch Explorer web version

* Generate translations for Create Account buttons

* Add basic i18n support for web package

* Rename StandardLocalizer to BrowserLocalizer

* Add merge translations script for web and desktop

* Remove powershell merge translations script

* Add localization support for desktop app

* Copy translations to web too and not just desktop

* Add translations for playground buttons

* Gitignore generated localization files

* Update localization docs with setup instructions

* Add package translations to mergeTranslations

* Optimize package file creation and fix unit test

* Update Electron app localization unit tests

* Address all feedback on PR

* Fix desktop localizer, translation function, tests

* Fix Prettier issue with account yml file

* Update client translations unit test accordingly

* Add http-localizer unit test and minor fixes

* Remove CustomGlobal and simplify navigator object

* Add getLocale function to each localizer

---------

Co-authored-by: David Watrous <509299+dpwatrous@users.noreply.github.com>
2023-08-01 09:48:59 -07:00
NickKouds d88ef89f93
Updated RLC version to 2023-05-01 API version (#2759)
* Updated RLC version to 2023-05-01 API version

Reran prettier to fix linting issues
Updated RLC version to 2023-05-01 API version

* Added comment on running lint to format files

* Add RLC generated src files to pretty ignore and regenerated SDK
2023-06-27 09:36:01 -07:00
David Watrous 93d6044e0e
Add more mock logger tests (#2742) 2023-06-07 15:23:09 +00:00
David Watrous 781cfe024c Bump shared library packages to 1.0.1 2023-06-02 10:25:17 -04:00
Haopeng Wang 7b99eb7337
bump fluentui & react version, prepare to onboard to reactview-tools v1 for Portal (#2674)
* update shared libs

* change checkbox.spec.tsx

* remove checkbox inconsistent props & modifie package.json

* remove temp distTag, prepare for PR

* fix checkbox ci test fail issue

---------

Co-authored-by: hoppe <hoppewang@microsoft.com>
2023-06-02 10:34:10 +08:00
Sanjana Kapur 635d441c96
Add scripts to build localization on local machine (#2701)
* Add scripts to build localization on local machine

* Remove unneeded parameters from LocProject

* Ignore files generated by local localization build

* Add copy translations script to Dist pipeline

* Remove destination JSON path parameter

* Change scripts to use new translation function

* Add json files when script is run locally

* Change name for download artifacts pipeline

* Add npm commands to run localization scripts

* Add README with localization setup instructions

* Rename destRESJSON, fix script, and other PR fixes

* Silence New-Item and add clean resources task

* Use powershell and modify clean script on desktop

* Replace cross-env-shell for npm loc:restore script
2023-04-11 16:28:13 -07:00
David Watrous e3b6cfafe1
Remove commented out LogEntry type (#2698) 2023-03-29 21:46:43 +00:00
David Watrous e3c27f69ab
Improve action logging & error handling (#2696)
- Friendly names to actions
- Action error logging
- ActionForm onError callback
2023-03-27 19:41:45 +00:00
David Watrous 35e5aae015 Refactored logger to add context
This should enable us to create a logger for the portal
2023-03-27 09:36:50 -04:00
David Watrous 3a73aeee18 Add fake clock 2023-03-25 19:39:00 -04:00
David Watrous 3d905c9757
Add x-ms-command-name header support (#2694)
This can be used to add a friendly name to HTTP requests such as "CreateAccount" or "ScalePool" for debugging/logging purposes.
2023-03-23 22:15:22 -07:00
David Watrous 1154a4e3b2
Added support for resetting forms (#2691)
Action forms also have a default 'Discard changes' button now
2023-03-23 15:33:46 -04:00
David Watrous 778aca0a97
Remove react-router dependency from playground (#2686)
Added some basic hash routing, but routing should mainly be the concern of the application importing the playground, not the playground itself.
2023-03-21 16:28:23 +00:00
David Watrous 9b62d706f2 Merge FormControl and ParamControl 2023-03-14 10:11:27 -04:00
David Watrous 0cc34a247f Form/action refactoring & features
- Properly display form validation errors
- Replaced "Parameter types" with Parameter classes
- Form dependencies
- Dynamic properties
- Move update logic into layout components
- Support action data loading
- New parameters and form controls
2023-03-14 10:11:27 -04:00
David Watrous de133a906f Split ui-common/form into multiple files 2023-03-14 08:16:57 -04:00
David Watrous 3b0483994f Add flag to enable log assertions in MockLogger 2023-03-14 08:16:57 -04:00
David Watrous bd4b787785 Remove unnecessary isArray function 2023-03-14 08:16:57 -04:00
David Watrous 4e8aeeaf64 Added mergeDeep utility function 2023-03-14 08:16:57 -04:00
David Watrous 1a46e4f6f7 Add equalsIgnoreCase utility 2023-03-14 08:16:57 -04:00
David Watrous 7bcb0c70da Load theme inside useEffect()
Doing this on every render was causing a React error to be logged.
2023-03-14 08:16:57 -04:00
David Watrous 4e50e5d6d8 Add watch:lib script 2023-03-14 08:16:57 -04:00
Haopeng Wang aefbdb0e14
fix monaco editor impl bug (#2668)
There are inconsistent editor contents when switching actions.
Cause by the debounceOnChange function holds the reference of onChange props from previous renders.
2023-03-01 08:10:08 -05:00
David Watrous 5689198750
Add shared fakes for testing (#2655) 2023-02-10 21:54:53 +00:00
Sanjana Kapur bed806479a Add the localization script 2023-02-08 13:48:16 -08:00
David Watrous 7cb61fffd8
Added `initialized` property to environments (#2647)
This is useful when used in the portal, to prevent blade env initialization
from happening more than once.
2023-02-08 16:28:49 +00:00
David Watrous ea36060906
Consistently reset/restore Jest mocks after tests (#2648) 2023-02-08 10:52:30 -05:00
NickKouds 9880496a00
Added Management plane rest level client sdk for communication layer #2623 2023-02-06 00:12:42 +00:00
Rena d09626630d
Update readme (#2627)
Add bux installation instructions and minor fix
2023-01-30 10:24:17 -08:00
David Watrous 70a9ea44ad
Make form values read-only (#2624)
Values should now be set through setValues() and updateValue()
which will properly trigger change events
2023-01-23 14:22:34 -05:00
David Watrous ebb8c9bf2b
Readd --legacy-peer-deps to bootstrap call (#2616)
Removing this was causing multiple versions of React to be used
2023-01-12 12:27:55 -05:00
David Watrous dc7fca0bfb
Shared library HttpClient improvements (#2607)
- Added support for request bodies
- Added unit tests for FetchHttpClient
- Added support for blobs and ArrayBuffers on responses
- Reworked MockHttpClient function signatures
- Renamed MockHttpHeaders to MapHttpHeaders
2022-12-19 17:44:59 +00:00
David Watrous 70ffa83eb3
Removed --legacy-peer-deps from `npm install` (#2603) 2022-12-13 19:50:06 -05:00
Shiran Pasternak c6c0a241a0 Publishes packages to private artifact feed 2022-12-12 19:25:14 -05:00
David Watrous 4af743c425
Install `bux` from tarball instead of symlink (#2594)
Also fixed an issue where tests/mocks weren't being properly excluded from non-test builds
2022-12-09 09:09:12 -05:00
David Watrous 32a0079de4
Rename butil to bux (#2593) 2022-11-17 21:58:45 +00:00
Shiran Pasternak c60ed93883 New ARM subscription service
Co-authored-by: Rena <cRui861@users.noreply.github.com>
Co-authored-by: Sanjana Kapur <sanjanakapur@microsoft.com>
2022-11-02 14:55:02 -04:00
Shiran Pasternak 6631ac7b54 Support for form events 2022-11-02 14:55:02 -04:00
Shiran Pasternak 66dd10d76e StorageAccountService using authenticated requests 2022-11-02 14:55:02 -04:00
Shiran Pasternak 55e0746f8e MockHttpClient lets tests check for untested assertions 2022-11-02 14:55:02 -04:00
Shiran Pasternak a1f6026829 Environment-based HTTP Client
New authenticated HTTP client for Batch Explorer. Currently assumes the common tenant but in the long run the HTTP client will retrieve the tenant ID from a global context, managed by the user, rather than try to resolve the tenant from the URL or some other implicit context.
2022-11-02 14:55:02 -04:00
Shiran Pasternak 13f6af0b15 useAsyncEffect runs optional cleanup callback 2022-11-02 14:55:02 -04:00
Sanjana Kapur 209a6c6cae
Add basic shared libraries localization interface (#2569)
* Add basic shared libraries localization interface

* Renamed localizer and added space
2022-09-08 10:05:45 -07:00
David Watrous 6025512b83
Minor fixes in packages/readme.md (#2561) 2022-08-26 12:08:18 -07:00
David Watrous 4cfdb8345b
Added build:lib and test:lib commands (#2554) 2022-08-17 19:32:08 +00:00
David Watrous a6017ac593 Added better support for form/action validation 2022-08-16 17:20:55 -04:00