Skip to content

Conversation

@rjrjr
Copy link
Collaborator

@rjrjr rjrjr commented Apr 15, 2022

  • Adds ModalScreenOverlay

  • Makes ModalScreenOverlayDialogFactory non-abstract, and uses it for ModalScreenOverlay by default

  • Both ModalScreenOverlayDialogFactory and AlertOverlayDialogFactory are now public open classes, with kdoc explaining that they can be used as base classes for custom renderings.

  • Improves / corrects kdoc on OverlayDialogFactoryFinder and ScreenViewFactoryFinder, showing how to use them to customize built in rendering types.

  • Makes the LoadingSpinner in the benchmarked Poetry app use the new hotness, and fixes its animation in the process

@rjrjr rjrjr force-pushed the ray/default-modal-screen branch 2 times, most recently from 33dfa36 to b9b1e3e Compare April 15, 2022 00:06
@rjrjr rjrjr marked this pull request as ready for review April 15, 2022 00:09
@rjrjr rjrjr requested review from a team and zach-klippenstein as code owners April 15, 2022 00:09
@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 15, 2022

I've clicked Ready for Review and clocked out for the day, but I have to admit that I haven't actually seen the build go green yet. 🤞

@rjrjr
Copy link
Collaborator Author

rjrjr commented Apr 15, 2022

Failure was a silly lint check. @RBusarow this is good to go.

* ) {
* override fun buildDialogWithContentView(contentView: View): Dialog {
* return super.buildDialogWithContentView(contentView).also {
* // Whatever, man, go wild. For that matter don't feel obligated to call super.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

:lebowski:

@rjrjr rjrjr force-pushed the ray/default-modal-screen branch from ebf1bab to 9ab18dc Compare April 15, 2022 14:55

override val compatibilityKey: String get() = keyFor(content, "ScreenOverlay")
override val compatibilityKey: String
get() = keyFor(content, this::class.simpleName ?: "ScreenOverlay")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:

Suggested change
get() = keyFor(content, this::class.simpleName ?: "ScreenOverlay")
get() = keyFor(content, this::class.simpleName ?: ScreenOverlay::class.simpleName)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Have to put a !! on that, but 👍

- Adds `ModalScreenOverlay`

- Makes `ModalScreenOverlayDialogFactory` non-abstract, and uses it for `ModalScreenOverlay` by default

- Both `ModalScreenOverlayDialogFactory` and `AlertOverlayDialogFactory` are now public open classes, with kdoc explaining that they can be used as base classes for custom renderings.

- Improves / corrects kdoc on `OverlayDialogFactoryFinder` and `ScreenViewFactoryFinder`, showing how to use them to customize built in rendering types.

- Makes the `LoadingSpinner` in the benchmarked Poetry app use the new hotness, and fixes its animation in the process
@rjrjr rjrjr force-pushed the ray/default-modal-screen branch from 9ab18dc to 24db899 Compare April 15, 2022 19:47
@rjrjr rjrjr merged commit 49a624a into ray/ui-update Apr 15, 2022
@rjrjr rjrjr deleted the ray/default-modal-screen branch April 15, 2022 20:25
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.

4 participants