Skip to content

Conversation

@fehmer
Copy link
Member

@fehmer fehmer commented Jun 25, 2025

Allow the user to use a local file as custom background without uploading it to the server.

Based on @byseif21 work in #6630, thanks!

@monkeytypegeorge monkeytypegeorge added frontend User interface or web stuff packages Changes in local packages labels Jun 25, 2025
@fehmer fehmer added force-ci Force CI to run on draft PRs and removed frontend User interface or web stuff labels Jun 25, 2025
@fehmer fehmer force-pushed the feature/use-local-files-for-background branch from 15b5376 to 3a1dcbd Compare June 25, 2025 16:14
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Jun 25, 2025
@fehmer fehmer marked this pull request as ready for review June 25, 2025 16:30
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jun 25, 2025
).on("click", () => {
).on("click", async () => {
if (Config.customBackground === "localBackgroundFile") {
await FileStorage.deleteFile("localBackgroundFile");
Copy link
Contributor

Choose a reason for hiding this comment

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

just a small thing when deleting the local background, the input box will still show the previous text. would it be good to add

 $(".pageSettings .section[data-config-name='customBackgroundSize'] .inputAndButton input.input").val("");

or something to clear it since it's not reusable like the url ? if you understand what i mean

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, thanks.

@byseif21
Copy link
Contributor

hey @fehmer thanks and yah very nice , just don't we forget to update the setting description too. or you think the aria-label enough ?

@github-actions github-actions bot removed the waiting for review Pull requests that require a review before continuing label Jun 25, 2025
@byseif21
Copy link
Contributor

also didn't we still need to add a file size check before storing?

@fehmer
Copy link
Member Author

fehmer commented Jun 25, 2025

hi @byseif21 , thanks for your comments. I updated the description and icon to match the same as "open file" in custom text settings. An upload icon might be confusing.

I don't think we need a file size check, the limit for idb is like 20gig or 10% of the users disc space, so we should be fine.

@monkeytypegeorge monkeytypegeorge removed the packages Changes in local packages label Jun 26, 2025
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jun 26, 2025
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jun 27, 2025
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jun 27, 2025
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jun 27, 2025
Miodec and others added 3 commits July 27, 2025 19:48
### Description

This PR adds language support for the ABAP programming language. It adds
code_abap with the 200 most used ABAP keywords and code_abap_1k with all
ABAP keywords from the current ABAP language version.

### Checks

- [x] Adding a language?
- Make sure to follow the [languages
documentation](https://github.com/monkeytypegame/monkeytype/blob/master/docs/LANGUAGES.md)
  - [x] Add language to `packages/schemas/src/languages.ts`
- [x] Add language to exactly one group in
`frontend/src/ts/constants/languages.ts`
  - [x] Add language json file to `frontend/static/languages` 
- [x] Check if any open issues are related to this PR; if so, be sure to
tag them below.
- [x] Make sure the PR title follows the Conventional Commits standard.
(https://www.conventionalcommits.org for more info)
- [x] Make sure to include your GitHub username prefixed with @ inside
parentheses at the end of the PR title.
byseif21 and others added 2 commits July 27, 2025 20:08
@byseif21) (#6581)

### Description
When (changing / adding or removing themes from favorite ) via command
line or from the current theme button "in page e.g test page" and then
navigating to Settings > Themes, the UI does not immediately reflect the
current theme changes . The user has to manually refresh the page to see
these changes.

**Now**
 UI automatically refreshes
to reflect the current theme selection and favorites without requiring
a manual page refresh.

- Added refreshThemeUI function in theme-picker.ts that updates all
  theme-related UI components
- Called this refresh function in the settings page's beforeShow
lifecycle hook to ensure the theme UI is always up-to-date when the page
is displayed.


**FOR TESTING BEFORE & AFTER:**
keep changing themes then navigate to the settings and check and keep
doing those things again to verify that the active theme and favorites
update.

---------

Co-authored-by: Miodec <jack@monkeytype.com>
@monkeytypegeorge monkeytypegeorge added assets Languages, themes, layouts, etc. packages Changes in local packages labels Jul 27, 2025
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jul 27, 2025
@monkeytypegeorge monkeytypegeorge removed assets Languages, themes, layouts, etc. packages Changes in local packages labels Jul 27, 2025
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jul 27, 2025
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jul 27, 2025
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jul 28, 2025
@Miodec Miodec changed the title feat: allow user to use local file as background (@fehmer, @byseif21) feat: allow user to use local file as background (@fehmer, @byseif21, @miodec) Jul 28, 2025
Copy link
Member

@Miodec Miodec left a comment

Choose a reason for hiding this comment

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

Thanks

@Miodec Miodec merged commit f2b34a5 into master Jul 28, 2025
12 checks passed
@Miodec Miodec deleted the feature/use-local-files-for-background branch July 28, 2025 10:52
Miodec added a commit that referenced this pull request Jul 28, 2025
…Miodec) (#6663)

Allow the user to use a local file as custom background without
uploading it to the server.

Based on @byseif21 work in #6630, thanks!

---------

Co-authored-by: Miodec <jack@monkeytype.com>
Co-authored-by: Lukas <dev@mardybum.de>
Co-authored-by: Seif Soliman <byseif21@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

force-ci Force CI to run on draft PRs frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants