Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

feat(environment settings): added possibility to upload custom logo for monitoring environment #471

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

KZavorotna
Copy link
Contributor

@KZavorotna KZavorotna requested a review from Arinono February 22, 2023 13:59
Comment on lines 13 to +17
interface Response {
environment: Environment;
environmentRights: string[];
userEnvironmentSettings: UserEnvironmentSettings,
userEnvironmentSettings: UserEnvironmentSettings;
environmentLogo: string | null;
Copy link
Contributor

Choose a reason for hiding this comment

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

requested change, I think

I would have imagined that the logo was part of the Environment model as:

// ...
logo?: FileFromServer | null,
// ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't need whole FileFromServer
interface FileFromServer { hashId: string; requestorType: string; requestorHashId: string; url: string; signature: string; name: string | null; mimeType: string | null; bytes: number; md5: string; crc32: string; expiresAt: Date | null; }
Why send it all to UI part if I need only link?

Copy link
Contributor

Choose a reason for hiding this comment

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

It was not about needing this info, but how the file is related to the environment, see https://github.com/withthegrid/platform/pull/2011#issuecomment-1453628465

@Arinono
Copy link
Contributor

Arinono commented Feb 23, 2023

requested change

Also the connectivity environment doesn't have the same changes. I'd imagine that the 2 kinds of environments want a customisable logo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants