Skip to content

Adaptive Cards change prevents supplying third-party card views #8653

Closed

Description

@Annie-Johnson

What type of issue is this?

Question

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Target SharePoint environment

SharePoint Online

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • Chrome Version 108.0.5359.99 (Official Build) (64-bit)
  • SPFx version v1.13
  • Node.js version * 14.18.1 (Currently using 64-bit executable)
  • etc

Issue description

A recent change to adaptive cards has rolled out to at least two of my tenants which removes the ability to override the template getter to customize a card view. We were doing this for cards rendered in the SharePoint experience and rendering a different OOTB card for Teams mobile. Clients are unhappy with OOTB design limitations. Is there a safe, advisable way to continue supplying a third party card view? I see the note on BaseCardView that third party card views should not inherit from that base class. Is there a best practice way to develop a third party card view?

Activity

  1. ghost added
    Needs: Triage 🔍
    on Dec 15, 2022
  2. changed the title [-]Adaptive Cards missing ID attributes on card elements[/-] [+]Adaptive Cards change prevents supplying third-party card views[/+] on Dec 15, 2022
  3. added
    area:spfx
    and removed
    Needs: Triage 🔍
    on Dec 15, 2022
  4. johnguy0 commented on Dec 16, 2022

    @johnguy0
    Collaborator

    Unfortunately there is not a supported way to override the templates returned by the provided card views. The template methods on BaseBasicCardView, BaseImageCardView, and BasePrimaryTextCardView are marked as @sealed to designate they should not (cannot) be overridden. Additionally there is no supported way to create additional card views beyond those provided.

    I understand these may be limiting. However, we want to enforce a coherent design language on the dashboard. We are actively working on expanding the set of out-of-box card views in the future. If there are particular requirements or designs you'd like to see, please feel free to suggest them!

  5. added
    type:discussion
    status:by-design
    on Dec 16, 2022
  6. AJIXuMuK commented on Dec 16, 2022

    @AJIXuMuK
    Collaborator

    Converting this issue to the discussion as the behavior is by design but we want to learn more about custom templates

  7. locked and limited conversation to collaborators on Dec 16, 2022
  8. converted this issue into a discussion #8659 on Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxstatus:by-designtype:discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions