Skip to content

Conversation

NathanVss
Copy link
Collaborator

@NathanVss NathanVss commented Jan 31, 2025

Purpose

Already logged-in

demo

Not logged-in

Enregistrement de l’écran 2025-02-10 à 17 03 06

Todo

  • X-Frame allowance
  • Setup package changelog and push
  • Config strategy prod / dev
  • Create a dedicated route switch for SDK to avoid support & react query debug bar
  • add loading to button
  • copy from iframe
  • Link when mouse does not move
  • ensureAuth
  • Rebase on main for loading component + animation
  • Add CI lint + build
  • Full page bug
Capture d’écran 2025-02-04 à 14 40 59

Later goals

  • Deploy demo
  • Add ProConnect login to readme ( needs to be deployed first )

@NathanVss NathanVss marked this pull request as ready for review February 6, 2025 16:14
@NathanVss NathanVss force-pushed the feat/sdk branch 7 times, most recently from a0c12bd to 05b850f Compare February 10, 2025 15:41
@NathanVss NathanVss changed the title WIP: ✨(sdk) create SDK ✨(sdk) create SDK Feb 10, 2025
@NathanVss NathanVss self-assigned this Feb 10, 2025
@NathanVss NathanVss force-pushed the feat/sdk branch 5 times, most recently from 9454ab1 to 93b6511 Compare February 10, 2025 16:13
Comment on lines 178 to 211
lint-sdk:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: cd src/sdk/library/ && npm ci

- name: Check linting
run: cd src/sdk/library/ && npm run lint

- name: Check format
run: cd src/sdk/library/ && npm run check

build-sdk:
runs-on: ubuntu-latest
needs: lint-sdk
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: cd src/sdk/library/ && npm ci

- name: Build SDK
run: cd src/sdk/library/ && npm run build

Copy link
Collaborator

Choose a reason for hiding this comment

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

to avoid repeating cd let's use a working-directory: src/sdk/library/ ?

These shortcuts improve DX and will be used in the next commits.
This variant is needed to implement the sdk create room button.
When displayed in an iframe, not being logged-in causes a redirection
to the home page. Which is not what we want with the SDK integration.
We just want to stay on the same page.
The create room button is a dedicated route. There is also a bit of
logic implied in this commit, including the BroadcastChannel.
The router has been updated with a /sdk negation in order to avoid
including support and react query debug tool in the iframe.
It includes a consumer project which is simply a demo app. The sdk
project includes the first version of the SDK, with a light React
implementation. The first version lays down the foundations of
the iframe sdk framework. The npm package logic is also already
ready to be published.
Add basic jobs to handle the new sdk.
@NathanVss NathanVss merged commit c3e4ea0 into main Feb 18, 2025
12 of 13 checks passed
@lebaudantoine lebaudantoine deleted the feat/sdk branch February 18, 2025 17:14
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