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

[JS] Table element #5705

Merged
merged 34 commits into from
May 12, 2021
Merged

[JS] Table element #5705

merged 34 commits into from
May 12, 2021

Conversation

dclaux
Copy link
Member

@dclaux dclaux commented Apr 21, 2021

Related Issue

Description

  • Adds support for the Table element (spec: Table element spec and design review #5630) to the JS SDK.
  • Introduces the "adaptivecards-extras" package
    • This package is designed to include additional AC features for the JS SDK
    • These features will be either demos, documentation samples, experiments or preview features destined to be eventually integrated in the main SDK
    • None of the features in this package are fully tested nor supported. They might change or even be removed without notice
    • With this PR, the package only contains an implementation of an Extras.ProgressBar custom element, which we have so far used as a sample for creating custom elements.
    • Refer to the README.md file for more details
  • Introduces the "adaptivecards-extras-designer" package
    • This package implements designer support for features exported by the "adaptivecards-extras" package
    • Refer to the package's README.md for more information
Microsoft Reviewers: Open in CodeFlow

@ghost
Copy link

ghost commented Apr 21, 2021

Hi @dclaux. Thanks for helping make the AdaptiveCards JS renderer + tooling better. As additional verification, once the JS build succeeds, please go to the test site to test out your website/designer changes.

@ghost
Copy link

ghost commented Apr 26, 2021

Hi @dclaux. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along.

@ghost ghost removed the no-recent-activity label Apr 26, 2021
@ghost
Copy link

ghost commented Apr 26, 2021

Hi @dclaux; Thanks for taking action on your previously stale pull request. Resetting staleness.

@ghost ghost added the no-recent-activity label May 5, 2021
@ghost
Copy link

ghost commented May 5, 2021

Hi @dclaux. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along.

@ghost ghost removed the no-recent-activity label May 7, 2021
@ghost
Copy link

ghost commented May 7, 2021

Hi @dclaux; Thanks for taking action on your previously stale pull request. Resetting staleness.

@dclaux dclaux marked this pull request as ready for review May 10, 2021 20:02
source/nodejs/adaptivecards-extras/src/progress-bar.ts Outdated Show resolved Hide resolved
import { Strings } from "./strings";
import { stringToCssColor } from "./utils";

export class ColumnDefinition extends SerializableObject {
Copy link
Member

Choose a reason for hiding this comment

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

Feel like this should be TableColumnDefinition to prevent confusion with ColumnSet Columns

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't really mind, but this is per spec.

Copy link
Member Author

Choose a reason for hiding this comment

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

If you feel strongly about this one, please send a mail to the team to suggest this name change which would also have to be reflected in the spec that Risheek has a PR for here: #5806

Copy link
Member

Choose a reason for hiding this comment

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

I don't think we need to hold this PR on the conversation, so approving :)

@ghost ghost removed the Needs: Author Feedback label May 10, 2021
Copy link
Contributor

@jonmill jonmill left a comment

Choose a reason for hiding this comment

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

Thanks for all the hard work here David, looks good!

Not blocking this time, but in the future could you please break up large changes into smaller packages to review? Large code drops are difficult to properly review, so it'll help get prompter and better feedback in the future. Thank you!

"adaptivecards": "^2.9.0",
"adaptivecards-controls": "^0.8.0",
"adaptivecards-designer": "^2.2.0",
"adaptivecards": "^2.8.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we're downgrading the Adaptive Cards packages? Or am I reading that incorrectly

Copy link
Member Author

Choose a reason for hiding this comment

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

Correct. Typically, we should NOT up this dependency version every time we release a new adaptivecards package, unless that package introduces new APIs that are required by the designer. 2.8.0 is a good minimal version to stick to for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

And... let me contradict myself. The designer has dependencies on the breaking changes we are making to support text styles, so this dependency needs to be pointing to the latest version this time around. I'll update.

@dclaux dclaux merged commit 437e57a into main May 12, 2021
@dclaux dclaux deleted the js/extras branch May 12, 2021 17:43
michaelfarnsworth pushed a commit to michaelfarnsworth/AdaptiveCards that referenced this pull request Nov 10, 2022
* Publish

 - ac-typed-schema@0.6.0
 - aclint@0.2.0
 - adaptivecards-controls@0.7.0
 - adaptivecards-designer-app@0.5.2
 - adaptivecards-designer@2.1.0
 - adaptivecards-extras-testapp@0.1.1
 - adaptivecards-extras@0.1.1
 - adaptivecards-fabric@1.1.2
 - adaptivecards-site@0.7.0
 - adaptivecards-templating@2.1.0
 - adaptivecards-visualizer@1.3.2
 - adaptivecards@2.8.0
 - marked-schema@0.1.7
 - spec-generator@0.6.1

* Initial commit

* Working through package hell

* End of package hell?

* Table - WIP

* Table - WIP

* Table - WIP

* Table - still WIP

* Table - almost done

* Small bug fix

* Fix newly dropped card element initialization

* Tweaks

* Move to flex, <table> is too constraining

* Col header txt style, cascading h and v alignments

* Adjust cellSpacing to 8 (4 isn't enough)

* Move Table to main package

* Add column editing support in designer

* Fix treeview ordering issue

* Add missing copyright headers

* Explicit color variable names in ProgressBar

* Rearrange code to fix build break

* TableColumnDefinition + pkg version updates
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.

None yet

3 participants