Skip to content

feat: added example admin page at /_fake/admin#7

Closed
dhvll wants to merge 3 commits intotscircuit:mainfrom
dhvll:dev
Closed

feat: added example admin page at /_fake/admin#7
dhvll wants to merge 3 commits intotscircuit:mainfrom
dhvll:dev

Conversation

@dhvll
Copy link
Copy Markdown

@dhvll dhvll commented May 11, 2025

/fix #4
/claim #4

Screenshot from 2025-05-12 01-19-22

package.json Outdated
"typescript": "^5.0.0"
},
"dependencies": {
"immer": "^10.1.1",
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.

remove immer package why do we need this?

createElement(
"div",
null,
createElement(
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.

why would you do this instead of making this a tsx file?

}),
})(async (req, ctx) => {
const things = ctx.db.things
return ctx.react(<AdminPage things={things} />)
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.

incorrect route spec, surprised this works

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.

there is no jsonResponse

Copy link
Copy Markdown
Contributor

@seveibar seveibar left a comment

Choose a reason for hiding this comment

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

close, add support for deleting/adding a thing via jsonBody and you're good

@dhvll dhvll closed this by deleting the head repository Jun 30, 2025
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.

Add example admin page at /_fake/admin that shows thing resources

3 participants