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

refactor(widget): improve building part 4 - Html[] into string #4717

Merged
merged 7 commits into from
Sep 16, 2024

Conversation

Rathoz
Copy link
Collaborator

@Rathoz Rathoz commented Sep 11, 2024

Summary

Currently make() has effectively 3 different return values.

  • 1-Html obj wrapped in an array (most common)
  • Html-array (just in two)
  • Widget-array

The end goal is to have just one return value.

Other PRs will remove the Widget-array return value, by doing that logic as preprocessing instead.

So this PR is focused on the two Html cases. After some POC-ing, I found that string was the best return value.
So this PR changes the 2 cases of Html-array into single Html, and then does tostring on basically all return values from all Widgets.

This PR in independent of Parts 1, 2 & 3. Part 3 and Part 4 together are both required to make 5.

How did you test this change?

Tested on some tournament and team pages on dota2

@Rathoz Rathoz mentioned this pull request Sep 11, 2024
@Rathoz Rathoz changed the title refactor(widget): improve building part 4 - Html[] into Html refactor(widget): improve building part 4 - Html[] into string Sep 11, 2024
@Rathoz Rathoz marked this pull request as ready for review September 12, 2024 08:17
@Rathoz Rathoz requested a review from hjpalpha September 12, 2024 08:18
@Rathoz Rathoz force-pushed the widget-children-rework-part-4 branch from 28921c5 to fecd7a4 Compare September 12, 2024 08:41
Copy link
Collaborator

@hjpalpha hjpalpha left a comment

Choose a reason for hiding this comment

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

assuming it is tested
LGTM

@Rathoz Rathoz merged commit d4d3b81 into main Sep 16, 2024
6 checks passed
@Rathoz Rathoz deleted the widget-children-rework-part-4 branch September 16, 2024 08:15
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