Skip to content

Commit

Permalink
mappings: update to theme.style
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva authored and slint committed Feb 8, 2024
1 parent 9c3f77e commit 0cb436e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,16 @@ export const CommunityCompactItemComputer = ({
const { metadata, ui, links, access, id } = result;
const communityType = ui?.type?.title_l10n;
return (

<Item
key={id}
className={`community-item tablet computer only display-grid auto-column-grid no-wrap ${itemClassName}`}

>

<div className="flex align-items-center">
<Image
wrapped
size="tiny"
src={links.logo}
alt=""

className="community-image rel-mr-2"
/>
<div>
Expand Down
10 changes: 10 additions & 0 deletions invenio_communities/communities/dumpers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
#
# This file is part of Invenio.
# Copyright (C) 2024 CERN.
#
# Invenio is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.


"""Communities dumpers module."""
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"brand": {
"type": "keyword"
},
"config": {
"style": {
"type": "object",
"enabled": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,6 @@
"custom_fields": {
"type": "object"
},
"theme": {
"enabled": false,
"type": "object",
"properties": {
"brand": {
"type": "keyword"
},
"style": {
"type": "object"
}
}
},
"metadata": {
"properties": {
"title": {
Expand Down Expand Up @@ -252,7 +240,7 @@
"brand": {
"type": "keyword"
},
"config": {
"style": {
"type": "object",
"enabled": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@
"brand": {
"type": "keyword"
},
"config": {
"style": {
"type": "object",
"enabled": false
}
Expand Down
24 changes: 12 additions & 12 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ def build(cls, **kwargs):
@pytest.fixture(scope="module")
def app_config(app_config):
"""Override pytest-invenio app_config fixture."""
app_config[
"RECORDS_REFRESOLVER_CLS"
] = "invenio_records.resolver.InvenioRefResolver"
app_config[
"RECORDS_REFRESOLVER_STORE"
] = "invenio_jsonschemas.proxies.current_refresolver_store"
app_config["RECORDS_REFRESOLVER_CLS"] = (
"invenio_records.resolver.InvenioRefResolver"
)
app_config["RECORDS_REFRESOLVER_STORE"] = (
"invenio_jsonschemas.proxies.current_refresolver_store"
)
# Variable not used. We set it to silent warnings
app_config["JSONSCHEMAS_HOST"] = "not-used"

Expand All @@ -106,9 +106,9 @@ def app_config(app_config):
app_config["COMMUNITIES_IDENTITIES_CACHE_REDIS_URL"] = "redis://localhost:6379/4"

# Cache handler
app_config[
"COMMUNITIES_IDENTITIES_CACHE_HANDLER"
] = "invenio_communities.cache.redis:IdentityRedisCache"
app_config["COMMUNITIES_IDENTITIES_CACHE_HANDLER"] = (
"invenio_communities.cache.redis:IdentityRedisCache"
)

app_config["MAIL_DEFAULT_SENDER"] = "test@invenio-rdm-records.org"

Expand All @@ -135,9 +135,9 @@ def app_config(app_config):
]

# Extending preferences schemas, to include notification preferences. Should not matter for most test cases
app_config[
"ACCOUNTS_USER_PREFERENCES_SCHEMA"
] = UserPreferencesNotificationsSchema()
app_config["ACCOUNTS_USER_PREFERENCES_SCHEMA"] = (
UserPreferencesNotificationsSchema()
)
app_config["USERS_RESOURCES_SERVICE_SCHEMA"] = NotificationsUserSchema

# Users are verified by default. This will disable the automatic creation of moderation requests after publishing a record.
Expand Down

0 comments on commit 0cb436e

Please sign in to comment.