Skip to content
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

Allow configuring of whitelabelling options #167

Closed
garethbowen opened this issue Mar 26, 2019 · 9 comments · Fixed by #340
Closed

Allow configuring of whitelabelling options #167

garethbowen opened this issue Mar 26, 2019 · 9 comments · Fixed by #340
Assignees
Labels
Type: Improvement Make something better

Comments

@garethbowen
Copy link
Member

garethbowen commented Mar 26, 2019

We added a feature in 3.4.0 to allow for configuration of the app logo, favicon, title, and to add partner icons to the About page. These are configurable through the admin app but we should make sure these can be stored in the configuration structure and uploaded by medic-conf with the rest of the settings.

Also update the configuration documentation here: https://github.com/medic/medic-docs/blob/master/configuration/developing-community-health-applications.md#graphics

Feature issues: medic/cht-core#4849 and medic/cht-core#4850

@garethbowen garethbowen added the Type: Improvement Make something better label Mar 26, 2019
@garethbowen garethbowen added the Help wanted Good for first time contributions label Apr 17, 2019
@Jodge Jodge assigned Jodge and unassigned Jodge May 29, 2019
@garethbowen garethbowen self-assigned this Jun 17, 2019
@garethbowen
Copy link
Member Author

Blocked waiting for this to be merged: #196

@garethbowen garethbowen removed their assignment Jul 10, 2019
@garethbowen
Copy link
Member Author

Not yet started - delaying to 3.9.0

@latin-panda
Copy link
Contributor

Hi @garethbowen, The ticket says to update the documentation, but I remember it got moved to CHT community. Should I update both places?

@garethbowen
Copy link
Member Author

Good question! medic-docs is archived and will be deleted at some point, so you don't need to update it. Just update the cht-docs version, thanks!

@garethbowen
Copy link
Member Author

Ready for AT in 167-upload-branding. Documentation change here: medic/cht-docs#234

@newtewt newtewt self-assigned this Sep 9, 2020
@newtewt
Copy link
Contributor

newtewt commented Sep 10, 2020

@latin-panda This is working as intended but there are some side affects coming from this. These might be issues that are for a new github issue but are now being exposed because of this new functionality.

If I upload an image using medic-conf to partners. Then remove that partner from the partners.json and upload again. The attachment still lives in the doc in couchdb. It doesn't get displayed in the app in partners config or about page. However, looking at the network calls we are still sending that image just not rendering it.

We also don't seem to be doing any sort of type checking. I set a json file to be uploaded. The webapp displays the broken image icon and looking at network console it displays the json file.

image

Example partners.json file.

  "resources": {
    "River Side": "riverside.png",
    "OhioHealth": "ohiohealth.json",
    "grant": "grant.png"
  }
}

@latin-panda latin-panda linked a pull request Sep 14, 2020 that will close this issue
@latin-panda
Copy link
Contributor

Hi @newtewt, I have updated the PR :)
Regarding # 1: This issue currently exists in master. I added a filter to check and discard attachments that aren't mentioned in the settings json. Since this is a common functionally, the affected actions are: upload-branding, upload-partners and upload-resources only.

Regarding # 2: This issue could potentially be side effect of the PR on attachments feature for files that aren't image or json, but json files were accepted since before probably as part of another action (?). Gareth advices to take this one as part of another ticket, then we can identify the related actions commands and come up with a solution :)

@newtewt
Copy link
Contributor

newtewt commented Sep 14, 2020

Cool @latin-panda, I've reviewed after these new changes. I think we can close this one out.

Confirmed that uploading branding and partners logos is possible via medic-conf. Confirmed it still works via the admin page. Validated that removing partners and branding now removes from the attachment doc.

latin-panda added a commit that referenced this issue Sep 14, 2020
Ticket: #167

This commit will add two new commands:
1. upload-branding will update the medic DB's branding document with: Title, resources (logo and favicon) and attachments.
2. upload-partners will update the medic DB's partners document with: resources (parner name and partner image) and attachments.
latin-panda added a commit to medic/cht-docs that referenced this issue Sep 14, 2020
Ticket: medic/cht-conf#167
* This commit will update the documentation for the upload of settings in branding, partners and icon resources.
* This commit will update the documentation for the upload of resources.
@latin-panda
Copy link
Contributor

@newtewt I have added an issue for # 2: #364 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Make something better
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants