Skip to content

Upgrade baseui to 9.116.3#5194

Merged
sfc-gh-tszerszen merged 3 commits intodevelopfrom
update-baseweb-ui
Aug 26, 2022
Merged

Upgrade baseui to 9.116.3#5194
sfc-gh-tszerszen merged 3 commits intodevelopfrom
update-baseweb-ui

Conversation

@sfc-gh-tszerszen
Copy link
Copy Markdown
Contributor

@sfc-gh-tszerszen sfc-gh-tszerszen commented Aug 18, 2022

📚 Context

Please describe the project or issue background here

When typing XX:2X, XX:4X, XX:5X into timeInput with keyboard only and pressing enter time is not selected, see Issue-#4943. This happens because state is not updated when user types this kind of time.

@lukasmasuch found out that it's actually a bug within baseui and upgrading it to 9.114.0 fixes the issue. This PR upgrades baseui to desired version.

  • What kind of change does this PR introduce?

    • Bugfix
    • Feature
    • Refactoring
    • Other, please describe:

🧠 Description of Changes

  • Add bullet points summarizing your changes here

    • This is a breaking API change
    • This is a visible (user-facing) change

Revised:

Insert screenshot of your updated UI/code here

Current:

Insert screenshot of existing UI/code here

🧪 Testing Done

  • Screenshots included
  • Added/Updated unit tests
  • Added/Updated e2e tests

Tests in expander needed to be updated, because of different rendering, but behaviour seems to be ok

🌐 References

Does this depend on other work, documents, or tickets?


Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@sfc-gh-tszerszen sfc-gh-tszerszen added the type:bug Something isn't working as expected label Aug 18, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen self-assigned this Aug 18, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen requested a review from a team August 18, 2022 16:19
@sfc-gh-tszerszen sfc-gh-tszerszen changed the title upgrade baseui to 9.114.0 Aug 18, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen force-pushed the update-baseweb-ui branch 2 times, most recently from 2d36524 to a126169 Compare August 19, 2022 15:01
Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment thread e2e/specs/expander_state.spec.js Outdated
@sfc-gh-tszerszen sfc-gh-tszerszen marked this pull request as draft August 23, 2022 13:53
@sfc-gh-tszerszen sfc-gh-tszerszen changed the title Upgrade baseui to 9.114.0 Aug 23, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen force-pushed the update-baseweb-ui branch 6 times, most recently from 510801f to 1b92229 Compare August 24, 2022 13:09
@sfc-gh-tszerszen sfc-gh-tszerszen changed the title Upgrade baseui to 9.116.3 Aug 24, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen force-pushed the update-baseweb-ui branch 3 times, most recently from d4166d4 to da49f46 Compare August 24, 2022 17:01
@sfc-gh-tszerszen sfc-gh-tszerszen changed the title Upgrade baseui to 10.0.0 Aug 24, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen force-pushed the update-baseweb-ui branch 2 times, most recently from 796f161 to 6a5e522 Compare August 25, 2022 10:15
@sfc-gh-tszerszen sfc-gh-tszerszen changed the title Upgrade baseui to 10.12.1 Aug 25, 2022
@sfc-gh-tszerszen sfc-gh-tszerszen marked this pull request as ready for review August 25, 2022 13:53
Comment thread frontend/src/App.tsx
() => {
this.pendingElementsBuffer = this.state.elements
this.widgetMgr.removeInactive(fromJS([]))
this.widgetMgr.removeInactive(new Set([]))
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What is the reason why fromJS had to be changed here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In baseui@9.116.3 widgetMgr.removeInactive recieves Set instead of Immutable Collection, the tschecks and compilation failed with previous code

Bar: {
style: ({ $theme }: { $theme: any }) => ({
width,
width: width ? width.toString() : "100%",
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Was the value from width changed to string instead of int in baseUI? What is the reason it needs the 100% now as fallback, would it also be an option to not set width at all when it is empty?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now baseui needs width as a string, but it can also accept undefined value, good call we should pass undefined instead of "100% 👍 I've changed that

@lukasmasuch
Copy link
Copy Markdown
Collaborator

lukasmasuch commented Aug 25, 2022

I did had a quick look on the core-preview and there seems to be a minor style issue with expander:

That's how it looks with the change (see the small shadow):
image

That's how it should look like:
image

@sfc-gh-tszerszen
Copy link
Copy Markdown
Contributor Author

I did had a quick look on the core-preview and there seems to be a minor style issue with expander:

Thanks for finding this out, I've commited the change in remove border bottom style from exapnder and we should be good to go 👍

Copy link
Copy Markdown
Collaborator

@lukasmasuch lukasmasuch left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@sfc-gh-tszerszen sfc-gh-tszerszen merged commit b1fb3ed into develop Aug 26, 2022
tconkling added a commit that referenced this pull request Aug 29, 2022
* develop:
  Add type annotations to `map` (#5246)
  Up version to 1.12.2 (#5230)
  Add type annotations to `pydeck_chart` (#5242)
  Add type annotations to `graphviz_chart` (#5243)
  TYP: Complete type annotations for `_iframe` and `_html` (#5244)
  Revert padding updates to charts, dataframes and images (#5229)
  Improve compatibility with pydeck v0.8.1 (#5248)
  Remove unused dependency - pretty-quick (#5238)
  Upgrade baseui to 9.116.3 (#5194)
  Improve dataframe column and table sizing (#5221)
  Convert widget serde function closures to objects (#5226)
  Make sure st.json doesn't explode when passed a list (#5223)
@vdonato vdonato deleted the update-baseweb-ui branch November 2, 2023 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Something isn't working as expected

4 participants