Skip to content

Conversation

@lshaf
Copy link
Contributor

@lshaf lshaf commented Jun 3, 2025

Proposed Changes

  • Add web minifier to achieve even more smaller size for webFiles.h
  • Fix logout issue
  • Fix cm endpoint that always give 400 response
  • Update upload endpoint to it's own URL and have 200 response upon success upload

Types of Changes

BugFix

Verification

None

Testing

Nope

Linked Issues

No idea, I just found when I build web interface

User-Facing Change

None

- Add web minifier to achieve  even more smaller size for webFiles.h
- Fix logout issue
- Fix cm endpoint that always give 400 response
- Update upload endpoint to it's own URL and have 200 response upon success upload

Further Comments

image
I've made cool looking webui. just hoping that I can put this on official bruce repo. Also made template in my repo so ppl can easily build on their own without doing compile every web changes. For future webui theme that you want to build :D.

lshaf added 3 commits June 2, 2025 12:21
- cm endpoint always give response 400 due to not handled by else
- properly working logout
- give response 200 for upload and give proper url to upload file
@lshaf
Copy link
Contributor Author

lshaf commented Jun 3, 2025

if you agree, I can push the webui in next PR.
you can take a look to that here lshaf/bruce-web-interface

@bmorcelli
Copy link
Member

I like the UI, would only stick to the purpleish theme, to keep the visual identity

One thing that we must improve in the webUI for the next version is the SerialCmds interface.. it is a powerful tool, but hard to use..

It would be great to have a friendly interface to add the IR, RF Commands (must send a json structured msg to the backend) in the right way, send the command to run BadUSB single command or run a whole file, to activate speaker (buzzer) or play some sound (try to send "say my name is Bruce" to your T-Embed cc1101 or Cardputer)

There are many things to improve in this part of bruce

@lshaf
Copy link
Contributor Author

lshaf commented Jun 3, 2025

it's totally doable and very easy to change since colors are saved in variable

:root {
    --green: #02de02;
    --black: #242424;
    --green-hover: #425f42;
}

we can also follow the configuration from bruceConfig main theme with some sly trick :D.
as for command we can do some brainstorm about how it will work.

feel free to contact me in discord @lshaf
also I can push with purple theme if you want

@bmorcelli
Copy link
Member

Get it from theme is a good idea..

@lshaf
Copy link
Contributor Author

lshaf commented Jun 3, 2025

image
preview for purple one

@tegtheevi
Copy link

I loved the new changes
Very good job brother

lshaf added 2 commits June 5, 2025 08:04
- add theme.css for webui color theme
- fix minify only remove excessive spaces
- better webui
@lshaf
Copy link
Contributor Author

lshaf commented Jun 5, 2025

@bmorcelli I update the webui and it's also follow color theme that user selected
image

@lshaf
Copy link
Contributor Author

lshaf commented Jun 5, 2025

FYI: this page doesn't have drag and drop files yet.
also missing logout button :D
I will think where it fit

@bmorcelli
Copy link
Member

Drag and drop is important, you can make the whole file list the drag and drop area, as it is nowadays.. makes life easier

@lshaf
Copy link
Contributor Author

lshaf commented Jun 5, 2025

it's done by latest commit.
right above your comment

@bmorcelli bmorcelli changed the base branch from main to dev June 6, 2025 18:29
@bmorcelli bmorcelli merged commit 1119775 into BruceDevices:dev Jun 6, 2025
5 checks passed
@bmorcelli bmorcelli mentioned this pull request Jun 13, 2025
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.

3 participants