Skip to content

Migrate timeout and unauthorised error states to Angular/TypeScript#1174

Open
m1chael-pappas wants to merge 2 commits intodoubtfire-lms:10.0.xfrom
m1chael-pappas:migrate/error-states
Open

Migrate timeout and unauthorised error states to Angular/TypeScript#1174
m1chael-pappas wants to merge 2 commits intodoubtfire-lms:10.0.xfrom
m1chael-pappas:migrate/error-states

Conversation

@m1chael-pappas
Copy link
Copy Markdown

@m1chael-pappas m1chael-pappas commented Apr 15, 2026

Description

Hi! This is my first contribution to the project. I noticed the ongoing migration from CoffeeScript/AngularJS to Angular/TypeScript and wanted to help out.

This PR migrates the timeout and unauthorised error state components:

  • Replaced .coffee and .tpl.html files with Angular .component.ts, .component.html, and .component.scss
  • Registered both as Angular states in doubtfire.states.ts
  • Updated module wiring in doubtfire-angular.module.ts and doubtfire-angularjs.module.ts
  • Updated errors/states/states.coffee to remove migrated module dependencies
  • Updated README migration progress (74 → 76 / 132)

Both components preserve the original behaviour:

  • timeout: Displays timeout message with Material icon, auto-signs out after 2 seconds
  • unauthorised: Displays unauthorised message with Material warning icon

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

How Has This Been Tested?

Ran the application locally via Docker Compose and verified both routes render correctly and match the original component behaviour. Confirmed the timeout page auto-signs out after 2 seconds and the unauthorised page displays the correct message.

Testing Checklist:

  • Tested in latest Chrome
  • Tested in latest Safari
  • Tested in latest Firefox

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have requested a review from @macite and @jakerenzella on the Pull Request

…TypeScript

Migrate the timeout and unauthorised error state components from
CoffeeScript/AngularJS to Angular/TypeScript as part of the ongoing
migration effort. Both components preserve their original behaviour.
@m1chael-pappas m1chael-pappas marked this pull request as ready for review April 15, 2026 09:56
Delete empty errors.coffee and states.coffee files that were left
behind after migrating to Angular components, and remove the
AngularJS module dependency.
@m1chael-pappas
Copy link
Copy Markdown
Author

Ready for review. @macite @jakerenzella

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.

1 participant