Skip to content

Conversation

rohitpaulk
Copy link
Member

Checklist:

  • I've thoroughly self-reviewed my changes
  • I've added tests for my changes, unless they affect admin-only areas (or are otherwise not worth testing)
  • I've verified any visual changes using Percy (add a commit with [percy] in the message to trigger)

Migrate app/components/team-payment-page components to TypeScript

This PR migrates all components within app/components/team-payment-page and its subdirectories from JavaScript to TypeScript.

The primary goal is to enhance type safety, improve maintainability, and enable better tooling support for these components.

Key changes include:

  • Conversion of all .js component files to .ts.
  • Introduction of Signature interfaces for precise typing of component arguments, elements, and blocks.
  • Proper typing for services using @service declare.
  • Removal of {{! @glint-nocheck: not typesafe yet }} and {{! @glint-expect-error: not ts-ified yet }} comments from templates, leveraging Glint for template type checking.
  • Resolution of all linting and TypeScript errors to ensure a clean codebase.

This migration ensures that the team-payment-page components are fully type-safe and align with our TypeScript standards.


Slack Thread

Open in Cursor Open in Web

Co-authored-by: rohitpaulk <rohitpaulk@gmail.com>
Copy link

cursor bot commented Sep 24, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Copy link

github-actions bot commented Sep 24, 2025

Test Results

  1 files  ±0    1 suites  ±0   9m 46s ⏱️ - 4m 49s
659 tests  - 5  610 ✅  - 5  48 💤 ±0  0 ❌ ±0  1 🔥 ±0 
659 runs   - 5  609 ✅  - 5  48 💤 ±0  1 ❌ ±0  1 🔥 ±0 

For more details on these errors, see this check.

Results for commit f86626f. ± Comparison against base commit 4f65226.

This pull request removes 6 and adds 1 tests. Note that renamed tests count towards both.
Chrome 140.0 ‑ Acceptance | course-admin | view-submissions: it should be able to filter by stage(s) through a dropdown menu Chrome 140.0 ‑ Acceptance | course-admin | view-submissions: it should be accessible if user is course author and authored current course Chrome 140.0 ‑ Acceptance | course-admin | view-submissions: it should handle null value for tree SHA Chrome 140.0 ‑ Acceptance | course-admin | view-submissions: it should have the commit SHA in the header Chrome 140.0 ‑ Acceptance | course-admin | view-submissions: it should have the tree SHA in the header Chrome 140.0 ‑ Acceptance | course-admin | view-submissions: it should not be accessible if user is course author and did not author current course 
Chrome ‑ error 

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Sep 24, 2025

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
611 1 610 48
View the full list of 1 ❄️ flaky test(s)
Chrome::error

Flake rate in main: 100.00% (Passed 0 times, Failed 4 times)

Stack Traces | 0s run time
Error: Browser timeout exceeded: 10s Error while executing test: Acceptance | course-admin | view-submissions: it should be able to filter by stage(s) through a dropdown menu Stderr: [3107:3457:0924/040312.386305:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3457:0924/040316.792450:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") DevTools listening on ws://127.0.0.1:.../devtools/browser/d1a7ff6e-1631-42dc-821a-ac15cf41e0de [3107:3457:0924/040317.974854:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3107:0924/040318.619006:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3457:0924/040318.619484:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3457:0924/040318.619510:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3457:0924/040318.619515:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3457:0924/040318.619518:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3457:0924/040318.650740:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3457:0924/040318.650761:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3107:0924/040318.686221:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3107:0924/040318.698586:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3457:0924/040318.698809:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3107:0924/040318.741792:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3107:0924/040318.741815:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3107:0924/040318.741943:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3107:0924/040318.749100:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3457:0924/040318.749149:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3107:0924/040318.751888:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.Properties.GetAll: object_path= .../UPower/devices/DisplayDevice: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files [3107:3107:0924/040318.786075:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3457:0924/040318.786348:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3107:0924/040318.815944:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3457:0924/040318.816016:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix") [3107:3107:0924/040318.817843:ERROR:dbus/object_proxy.cc:573] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............................../org/freedesktop/DBus: unknown error type: [3107:3495:0924/040400.233899:ERROR:.../gcm/engine/registration_request.cc:291] Registration response error message: DEPRECATED_ENDPOINT Created TensorFlow Lite XNNPACK delegate for CPU. 

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

codecov bot commented Sep 24, 2025

Bundle Report

Changes will increase total bundle size by 70 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
client-array-push 38.59MB 70 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/chunk.*.js 70 bytes 3.18MB 0.0%
@rohitpaulk
Copy link
Member Author

@cursor fix lint errors

Copy link

cursor bot commented Sep 24, 2025

I refined the team payment details step by improving input handling for the number of seats and addressing Glint type errors, ensuring better data binding and developer experience.

  • I implemented a numberOfSeatsAsString getter in app/components/team-payment-page/team-details-step-container.ts to provide a string representation of the number of seats.
  • I updated app/components/team-payment-page/team-details-step-container.hbs to bind the seat count input's @value to this.numberOfSeatsAsString, correctly handling string-typed HTML input values.
  • I added {{! @glint-expect-error }} comments in app/components/team-payment-page/team-details-step-container.hbs to suppress Glint errors for @teamPaymentFlow.isSaving, acknowledging a type mismatch.
  • I removed the role="presentation" attribute from the check SVG in app/components/team-payment-page/navigation-container-item.hbs for minor cleanup.

Open in Cursor Open in Web

Learn more about Cursor Agents

Co-authored-by: rohitpaulk <rohitpaulk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants