Skip to content

Conversation

@hashicc
Copy link
Collaborator

@hashicc hashicc commented Nov 25, 2025

Description

Hacky spike to get admin ui to build with vite. It will load the ember app and render but there are still errors to work out

Screenshots (if appropriate)

How to Test

Checklist

  • I have added before and after screenshots for UI changes
  • I have added JSON response output for API changes
  • I have added steps to reproduce and test for bug fixes in the description
  • I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a11y-tests label to run a11y audit tests if needed

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've documented the impact of any changes to security controls.
    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@vercel
Copy link

vercel bot commented Nov 25, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
boundary-ui Error Error Nov 26, 2025 2:52pm
boundary-ui-desktop Ready Ready Preview Comment Nov 26, 2025 2:52pm

import { faker } from '@faker-js/faker';
import { asciicasts } from './data/asciicasts';
import { TYPE_WORKER_PKI } from 'api/models/worker';
import environmentConfig from 'ember-get-config';
Copy link
Collaborator Author

@hashicc hashicc Nov 26, 2025

Choose a reason for hiding this comment

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

Need to access the config here without this package and then restore usages to environmentConfig


this.addons.forEach((addon) => {
if (addon.name === 'ember-inline-svg') addon.included(app);
// if (addon.name === 'ember-inline-svg') addon.included(app);
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This can probably be restored

@@ -0,0 +1 @@
{}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was an error failing where it expected this file to exist. Need to figure out how ember-inline-svg, or some dependency, uses this file

Comment on lines +42 to +43
"api": "workspace:*",
"core": "workspace:*",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

api and core are used within the app so they need to be declared as dependencies

"core": "workspace:*",
"ember-named-blocks-polyfill": "^0.2.5",
"lodash": "^4.17.21",
"miragejs": "^0.1.48",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

miragejs should likely be a dev and peer dependency in api and then included here as a dependency

"ember-a11y-testing": "^7.1.2",
"ember-auto-import": "^2.10.0",
"ember-basic-dropdown": "^8.8.0",
"ember-browser-services": "^4.0.3",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Dependencies here were brought in from other addons. They need to be declared explicitly here. They can be duplicated as dependencies here and in the addons, or the addon can declare these as peer/dev dependencies and dependencies in the apps, or (probably less preferred) hoisted to the root package.json, or pnpm catalogs

@@ -1,232 +0,0 @@
/**
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There was something about this component either in app code or in this test that wasn't working

<CopyButton
@text={{@copyText}}
@onSuccess={{this.copied}}
<div
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ember-cli-clipboard currently has an issue with vite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant