Skip to content

refactor(frontend): introduce promoted posts & safer "burn" mechanism#506

Draft
luciorubeens wants to merge 1 commit intoallinbits:mainfrom
luciorubeens:feat/promote-post
Draft

refactor(frontend): introduce promoted posts & safer "burn" mechanism#506
luciorubeens wants to merge 1 commit intoallinbits:mainfrom
luciorubeens:feat/promote-post

Conversation

@luciorubeens
Copy link
Contributor

@luciorubeens luciorubeens commented Jan 12, 2026

Based on Jae's feedback , introduced the concept of "promoted posts" to replace the PHOTON input field.

  • Replaced the manual burn/send amount input with a promote toggle.
  • Users can no longer accidentally send arbitrary amounts, instead they choose between a standard or a promotion amount.
  • The promote amount is configurable via environment variables
  • Added a "promoted" badge for posts that meet the promotion threshold.
SCR-20260113-renf

Fixes #496

@jeronimoalbi
Copy link
Member

@luciorubeens I wanted to try it but in Brave and Chromium I can't see the "New Post" dialog, it seems there is an issue so only the dark overlay is displayed

Comment on lines +29 to +32
// TODO: Verify wallet has enough balance for amountAtomics before allowing submit
const canSubmit = computed(() => {
return true;
});
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice to have this check 👍

Comment on lines +19 to 23
const amountAtomics = computed(() => {
if (configStore.config.defaultAmountEnabled) {
return configStore.config.defaultAmountAtomics;
}

Copy link
Member

Choose a reason for hiding this comment

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

It would be great if the redundancy between the components' amountAtomics and canSubmit could be improved

Copy link
Member

Choose a reason for hiding this comment

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

Is just a nit

@jeronimoalbi
Copy link
Member

Giuseppe gave a great recommendation which is to also allow users to type any value if they want to, on top of the fixed ones. So it would be great for users to be able to explicitly toggle an input to enter any PHOTON amount.

@Kouteki
Copy link

Kouteki commented Feb 3, 2026

Giuseppe gave a great recommendation which is to also allow users to type any value if they want to, on top of the fixed ones. So it would be great for users to be able to explicitly toggle an input to enter any PHOTON amount.

Let's create a separate issue for the manual input Jeronimo mentioned, and keep the original scope in this PR.

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.

feat: fat finger protection

3 participants