Skip to content

Remove unused typescript code#1621

Open
devmount wants to merge 7 commits intomainfrom
tasks/1609-remove-obsolete-code
Open

Remove unused typescript code#1621
devmount wants to merge 7 commits intomainfrom
tasks/1609-remove-obsolete-code

Conversation

@devmount
Copy link
Copy Markdown
Collaborator

@devmount devmount commented Apr 15, 2026

What changed?

This is a maintenance change and contains code removal only. No functionality was changed.

Why?

Lighter frontend code base.

Limitations and Notes

I focused on unused exports and provides at root level. There might be more unused code in specific components.

Applicable Issues

Closes #1609

@devmount devmount marked this pull request as draft April 15, 2026 04:44
@devmount devmount marked this pull request as ready for review April 15, 2026 06:50
Copy link
Copy Markdown
Contributor

@davinotdavid davinotdavid left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for the cleanup! one comment:

Comment thread frontend/src/App.vue
lock: lockNotification,
} = siteNotificationStore;
provide(accountsTbProfileUrlKey, import.meta.env.VITE_TB_ACCOUNT_DASHBOARD_URL);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we should instead have the users of VITE_TB_ACCOUNT_DASHBOARD_URL use the inject / key so that in the odd case that its content changes, we don't have to change in all places.

For example:

https://github.com/thunderbird/appointment/blob/add-zoom-link-to-confirmation-email/frontend/src/components/UserMenu.vue#L11-L12

We can punt this to another ticket though!

(Also VITE_SUPPORT_URL is being used a lot more throughout the codebase so we should probably punt it into a provide / inject key as well)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Great suggestion, thanks so much! I added provides/injects directly for the following constants now:

  • VITE_TB_ACCOUNT_DASHBOARD_URL
  • VITE_TB_PRO_URL
  • VITE_SUPPORT_URL

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Neat, thanks!

Copy link
Copy Markdown
Contributor

@davinotdavid davinotdavid left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

Remove unused frontend code

2 participants