-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add smart item Admin toolkit #136
base: main
Are you sure you want to change the base?
Conversation
Test this pull request
|
a831f0c
to
169b334
Compare
9525335
to
7bfe862
Compare
b61516e
to
ebbd249
Compare
today is not possible to know when an animation ends
9461020
to
d7a1ec9
Compare
try { | ||
const response = await signedFetch({ | ||
url: url, | ||
...(init ? { init } : {}), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can use init
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as init
could be undefined, this way we avoid errors when attempting to spread it
src/actions.ts
Outdated
fetchCampaignsByDispenserKey(dispenserKey).then((campaigns) => { | ||
const campaign = campaigns.find((c: any) => c.campaign_id === campaignId) | ||
if (campaign && campaign.enabled) { | ||
console.log('campaign', { campaign }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just pointing out these logs to be sure if we want them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing them
src/admin-toolkit-ui/utils.ts
Outdated
const sceneOwnersResponse = await fetch(LAND_MANAGER_URL, { | ||
method: 'POST', | ||
body: JSON.stringify({ | ||
query: `query getLands\n{\n parcels(where: {x: ${deployment.sceneBasePosition[0]}, y: ${deployment.sceneBasePosition[1]}}) {\n id\n x\n y\n owners {\n id\n address\n }\n }\n}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a way to format this string so it's readable?
src/admin-toolkit.ts
Outdated
sdkHelpers?: ISDKHelpers, | ||
playersHelper?: IPlayersHelper, | ||
) { | ||
let adminToolkitEntity: Entity | null = null |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this var is local to this fn, it is possible for someone to create multiple admin toolkit systems. idk if that's a problem we should care or not but just pointing it out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch, fixing it!
Description
This PR introduces a new Admin Toolkit UI system for managing video players, smart items, and other administrative controls in Decentraland scenes.
Key Features
Core UI Components
Video Control Features
Smart Items Control Features
State Management
Technical Details
@dcl/react-ecs
for UI componentsTesting Instructions
Test video player controls:
Test smart item controls:
Test text announcement controls:
Test rewards control:
TODO (Future PRs)
High Priority
Moderation Control Panel
UI Style Improvements
Button Component Enhancement
Text announcements Enhancement
Nice to Have
Type of change
Checklist
Models and composers for AdminTools and CollectibleDispenser added in: #143