Skip to content

Commit

Permalink
Create UI css updates (#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejritter authored Dec 16, 2024
1 parent 0c9dfc9 commit 8f11060
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/components/pages/CreatePage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ const messages = defineMessages({
const tagMessages = defineMessages({
nagpra: {
id: 'createPage.tag.nagpra',
defaultMessage: 'NAGPRA',
defaultMessage: 'NAGPRA Procedures',
},
legacy: {
id: 'createPage.tag.legacy',
defaultMessage: 'Legacy',
defaultMessage: 'Legacy Procedures',
},
});

Expand Down Expand Up @@ -203,7 +203,16 @@ const renderObjects = (recordTypes = [], config) => {
const renderProcedures = (recordTypes = [], config, getTagsForRecord, tagConfig) => {
const serviceType = 'procedure';

const grouped = Object.groupBy(recordTypes, (recordType) => getTagsForRecord(recordType) || 'defaultGroup');
const grouped = {};
recordTypes.forEach((recordType) => {
const tag = getTagsForRecord(recordType) || 'defaultGroup';
if (grouped[tag] === undefined) {
grouped[tag] = [recordType];
} else {
grouped[tag].push(recordType);
}
});

const {
defaultGroup: defaultRecordTypes = [],
...taggedRecordTypes
Expand Down
4 changes: 4 additions & 0 deletions styles/cspace-ui/CreatePagePanel.css
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
margin-top: 4px;
}

.tag > h3 {
font-weight: bold;
}

.object {
composes: common;
background-color: #F0F5FB;
Expand Down

0 comments on commit 8f11060

Please sign in to comment.