Skip to content

feat: integration for structured data copy paste - #2290

Merged
AbhishekPAnil merged 6 commits into
developfrom
feature/issue-2281
Aug 31, 2026
Merged

feat: integration for structured data copy paste#2290
AbhishekPAnil merged 6 commits into
developfrom
feature/issue-2281

Conversation

@AbhishekPAnil

@AbhishekPAnil AbhishekPAnil commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds support for copying and downloading event JSON-LD structured data for embedding on external sites.

Changes

  • Added StructuredDataModal with:

    • JSON-LD preview
    • Toggle to wrap JSON-LD in a <script> tag
    • Copy to clipboard
    • .jsonld file download
  • Added getEventStructuredData service to fetch event structured data via:
    GET /events/{id}?include-json-ld=true

  • Updated Event List and read-only Event View to expose:

    • Get structured data
    • Copy JSON-LD
  • Refactored EventStatus dropdown to use inline writeTier instead of ProtectedComponents.

    • Read actions are always visible.
    • Write actions remain RBAC-gated.
  • Added EN/FR i18n keys for structured data functionality.

  • Added VITE_APP_OPEN_API_URL to the staging environment configuration.

@aws-amplify-ca-central-1

Copy link
Copy Markdown

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-2290.dla06mbe0wyl7.amplifyapp.com

@AbhishekPAnil AbhishekPAnil linked an issue Aug 27, 2026 that may be closed by this pull request
@AbhishekPAnil AbhishekPAnil linked an issue Aug 27, 2026 that may be closed by this pull request
@AbhishekPAnil AbhishekPAnil removed a link to an issue Aug 27, 2026
@saumier
saumier self-requested a review August 27, 2026 15:13
@kmdvs

kmdvs commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

@AbhishekPAnil @saumier

As far as I can see, the structured-data PR is first causing repeated TC03 failures because the addition of “Get structured data” before the Edit button exposes a brittle RT selector (the exact kind of issues I am working on to eradicate, adding data-cy in the remaining 10% of the app). Cypress currently targets Edit using .outlined-label; both controls are outlined buttons, so Cypress now clicks “Get structured data” instead of Edit. I'll add/use a semantic hook with data-cy="button-edit-event", and you can add data-cy="button-get-structured-data-event" in this PR.

@AbhishekPAnil

Copy link
Copy Markdown
Contributor Author

@AbhishekPAnil @saumier

As far as I can see, the structured-data PR is first causing repeated TC03 failures because the addition of “Get structured data” before the Edit button exposes a brittle RT selector (the exact kind of issues I am working on to eradicate, adding data-cy in the remaining 10% of the app). Cypress currently targets Edit using .outlined-label; both controls are outlined buttons, so Cypress now clicks “Get structured data” instead of Edit. I'll add/use a semantic hook with data-cy="button-edit-event", and you can add data-cy="button-get-structured-data-event" in this PR.

The change is updated in the PR .
cc @kmdvs

@AbhishekPAnil
AbhishekPAnil merged commit aad6ad4 into develop Aug 31, 2026
3 of 4 checks passed
@AbhishekPAnil
AbhishekPAnil deleted the feature/issue-2281 branch August 31, 2026 09:27
@AbhishekPAnil
AbhishekPAnil restored the feature/issue-2281 branch August 31, 2026 09:38
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.

MVP structured data generator

3 participants