mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 12:56:59 +00:00
[GH-ISSUE #5359] [Bug] error message when loading themes #2380
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#2380
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yotamguttman on GitHub (May 18, 2024).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/5359
Bug Description
receiving different error messages when attempting to upload any theme file.
How to Reproduce
I downloaded all the official themes from the Themes Appflowy Docs Article. I tried to upload them all: base, barbie, and dracula. I kept receiving an error in return that the light theme file is faulty and the learn more button just sends me back to the same docs page...
Expected Behavior
the theme file should have been added to the theme list and applied to the app UI.
Operating System
Fedora 40, Gnome 46
AppFlowy Version(s)
unknown
Screenshots
No response
Additional Context
also, when you download a theme file from the Appflowy docs page, you get a zip file which when extracted, has an odd structure. check this image:

there's the zipping folder which inside has a folder of the same name and some mac crap folder. and this can be confusing to some users because the docs article steps describe having to unzip the archived file and uploading the extracted folder to the Appflowy theme UI. but if you do that you get the following error message:

because Appflowy expects to see the light+dark json files right in side this folder, but instead there's a duplication of the same folder and some empty mac folder. I figured that I should pick the folder inside which housed the Json files but it isn't at all reproducible according to the docs article.
https://docs.appflowy.io/docs/appflowy/product/themes
and the cherry on top is that the 'debug info' button does not do anything. so I cannot share the version details because it doesn't show in the settings page either. I updated all my apps 2 days ago so I suppose it's the latest vers.

@Xazin commented on GitHub (May 18, 2024):
I believe there are a lot of improvements to the theme upload handler that can be done.
This is one of many, but at least:
@yotamguttman commented on GitHub (May 18, 2024):
let me just emphasis again that the only theme files I've tried to import are from the official doc article. I'd find it hard to believe the theme files were faulty. I did run a quick test and copied the content of the dark json to the light json (I tried it on the 'base' theme) and I still received the same error regarding the light theme... even though it had the exact same content as the 'dark'...
also, while I see why it's good practice to create both light and dark configs when you author a theme, I'd agree with you that it should be optional.
@MayurSMahajan commented on GitHub (May 18, 2024):
Hey @yotamguttman, the error message is because there is a new color field called
secondaryTextColoradded to theFlowyColorSchemebut the themes in the documentation do not have any color for that field.I am going to add a new zip adding this new color field. Thanks for filing this issue.
@MayurSMahajan commented on GitHub (May 18, 2024):
I have updated the official docs, but the official docs will take some time to reflect those changes, till then you can download this zip file here:
Dracula.flowy_plugin.zip
@MayurSMahajan commented on GitHub (May 18, 2024):
While we are here, I think the error UI can be improved.
@annieappflowy commented on GitHub (Sep 30, 2024):
@yotamguttman , this issue should be fixed. Please feel free to reopen