Skip to content

Forward port "Improve Default Blazor WebAssembly Loading Experience"#42813

Merged
cerasamson merged 1 commit into
dotnet:mainfrom
cerasamson:t-samsoncera/forwardport-blazor-loading
Jul 19, 2022
Merged

Forward port "Improve Default Blazor WebAssembly Loading Experience"#42813
cerasamson merged 1 commit into
dotnet:mainfrom
cerasamson:t-samsoncera/forwardport-blazor-loading

Conversation

@cerasamson
Copy link
Copy Markdown
Contributor

* Added loader SVG and CSS styling
* Add WebAssemblyProgressService, WebAssemblyProgressReporter
* Add styling for setProgress, fix resourcesTotal
* Implement singleton pattern, fix CSS styling
* Convert % text to SVG
* Add WebAssemblyProgressService as IBlazor global export
* Modify CSS classes, added TSDoc to public methods
* Modify CSS element names
* Update src/Components/Web.JS/src/Boot.WebAssembly.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Update src/Components/Web.JS/src/Platform/WebAssemblyProgressReporter.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Check for additional resources; percentage styling
* Update app.css
* Create global SetProgress, pass in ProgressService
* Vertically center loading circle
* Update Boot.WebAssembly.ts
* Update src/Components/Web.JS/src/Platform/WebAssemblyResourceLoader.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Fix possible undefined wasmLoadingSetProgress
* Remove setProgressFunction from GlobalExports
* Update blazor.server.js
* Update src/Components/Web.JS/src/Platform/WebAssemblyProgressReporter.ts
   * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Update src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Update src/Components/Web.JS/src/Platform/WebAssemblyStartOptions.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Remove progress ring transition duration
* Update src/Components/Web.JS/src/Platform/WebAssemblyStartOptions.ts
* (WIP) Bring all .ts changes to MonoPlatform.ts
* Remove reporter/service classes, update loading styling
* Center percentage text
* Update app.css
* Add additional checks for element types
* Prevent exception by changing to div id = "app"
* Update src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* WIP remove CSS id
* Concat promises for setProgress function
* Update src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Update src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* CSS updates
* Update src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/wwwroot/css/app.css
  * Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
* Update src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
  * Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
* Update src/ProjectTemplates/Web.ProjectTemplates/content/ComponentsWebAssembly-CSharp/Client/wwwroot/css/app.css
  * Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
* Add default "Loading" test
* Update Templates.Blazor.WebAssembly.Tests.csproj
* Update Templates.Blazor.WebAssembly.Tests.csproj

Co-authored-by: Tanay Parikh <TanayParikh@users.noreply.github.com>
Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
@cerasamson cerasamson requested a review from a team as a code owner July 19, 2022 17:49
Copy link
Copy Markdown
Contributor

@TanayParikh TanayParikh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving forward port to main

@cerasamson cerasamson enabled auto-merge (squash) July 19, 2022 17:52
@cerasamson cerasamson merged commit c0be8a8 into dotnet:main Jul 19, 2022
@ghost ghost added this to the 7.0-rc1 milestone Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants