Skip to content

Conversation

@cameronapak
Copy link
Collaborator

@cameronapak cameronapak commented Jul 22, 2025

Fixes #216

Fixed a bug where the Users and Settings (icon) linked to pages in the admin but didn't include the admin_basepath.

Copy link
Collaborator Author

@cameronapak cameronapak left a comment

Choose a reason for hiding this comment

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

Review commnents

"license": "FSL-1.1-MIT",
"dependencies": {
"@cfworker/json-schema": "^4.1.1",
"@clack/prompts": "^0.11.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.

I'm not sure why or when this dependency was removed, but in order to get the app running, I needed to bun add @clack/prompts

--color-info: var(--color-blue-100);
--color-info-foreground: var(--color-blue-800);

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

from: bun run format

Comment on lines +2 to +10
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist/types",
"rootDir": "./src",
"baseUrl": ".",
"tsBuildInfoFile": "./dist/tsconfig.tsbuildinfo"
},
"include": ["./src/**/*.ts", "./src/**/*.tsx"],
"exclude": ["./node_modules", "./__test__", "./e2e"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

from: bun run format

@cameronapak cameronapak changed the title WIP: Fix Sidebar Users Route Links Fix Sidebar Users Route Links Jul 22, 2025
@cameronapak
Copy link
Collaborator Author

@dswbx this is ready for review :) (No rush)

@cameronapak
Copy link
Collaborator Author

@dswbx what would it take to get this reviewed? (P.S. Hope you're well, brother!)

@dswbx
Copy link
Contributor

dswbx commented Aug 2, 2025

@cameronapak sorry I was so caught in bundling the release and prepping the mcp stuff. I try to review/merge this weekend, but monday the latest :) hope that‘s okay!

@dswbx
Copy link
Contributor

dswbx commented Aug 3, 2025

@cameronapak thanks a lot! It does indeed solve the case when admin was served statically at a different basepath. However, it fails when you use the Admin as React component, e.g. on the astro example:

CleanShot 2025-08-03 at 12 58 48

I'll try to take a look at it, but I'm a bit limited in time today/tomorrow.

Could you also reduce the tests? Those are a bit too comprehensive for testing only the basepath handling.

@dswbx
Copy link
Contributor

dswbx commented Aug 3, 2025

@cameronapak actually supplied a fix, could you check? you'd also need to test this in the astro example:

cd examples/astro
npm run dev

dswbx and others added 8 commits August 3, 2025 13:10
The `admin_basepath` configuration option has been renamed to `basepath`
for clarity and consistency. This change affects how the admin base path
is accessed and utilized within the `AppReduced` utility. Tests have
been updated to reflect this renaming.
The Response.blob() method in JavaScript returns a Blob, not a File.
This means that file-specific metadata like `name` and `lastModified` is
lost. The tests were updated to reflect this by manually constructing a
File object from the Blob, mimicking how client code would handle this
conversion. The MIME type is now correctly preserved from the response
headers when creating the File.
@cameronapak
Copy link
Collaborator Author

@dswbx I can now confirm that this works when I run the astro app and test locally, as well as the tests pass. This is ready for re-review!

P.S. I know you're on a time of rest, holiday, and family. May God bless you and the time be fulfilling. This PR can wait.

@cameronapak cameronapak changed the base branch from main to release/0.20 January 6, 2026 10:54
@dswbx dswbx deleted the branch bknd-io:release/0.20 January 9, 2026 13:32
@dswbx dswbx closed this Jan 9, 2026
@dswbx dswbx reopened this Jan 9, 2026
@cameronapak
Copy link
Collaborator Author

This is ready to be tested, reviewed, and if approved pushed to the bknd-io/release/0.21 branch, of which doesn't exist just yet (and needs to be created).

Having it where the admin dashboard fails to resolve the right admin pages when clicked breaks the admin dashboard experience and is therefore a very high priority

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.

Sidebar Users Route Links to /data/entity/users Instead of /admin/entity/users, Causing 404 in Admin UI

2 participants