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

Fix constent list view #345

Closed
wants to merge 35 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
cbb68e7
feat(framework): Updated version of UI framework
pavlovicnemanja Jun 1, 2023
540d22a
fix(publishing): Fixed issue with publishing page
pavlovicnemanja Jun 2, 2023
ac89edd
fix(subnav): Fixed issue with subnav
pavlovicnemanja Jun 13, 2023
461cf96
fix(radio): Fixed issue with radio group
pavlovicnemanja Jun 13, 2023
f27b827
feat(fb): Removed FBIA from publisher
pavlovicnemanja Jun 22, 2023
b878cdd
feat(seo): Changed seo value to envolvedFrom
pavlovicnemanja Jun 22, 2023
af8866d
feat(fba): Remove FBA from multiple places
pavlovicnemanja Jun 22, 2023
870aed6
feat(fba): Remove fba for one more space
pavlovicnemanja Jun 22, 2023
f01b52c
feat(seo): Changed saveMetadata url
pavlovicnemanja Jun 22, 2023
f445881
saveMetaData to guid
IvanJelicSF Jun 22, 2023
f94320d
Layout and Dark theme fixes
fritzSF Jul 4, 2023
91bd266
framework version bump
fritzSF Jul 4, 2023
9f210ec
Merge pull request #339 from fritzSF/develop
pavlovicnemanja Jul 5, 2023
b949425
fix(theme): Fixed dark theme
pavlovicnemanja Aug 1, 2023
f1fe2e3
Merge pull request #340 from pavlovicnemanja/develop
pavlovicnemanja Aug 1, 2023
654c5b3
fix(lists): Fixed content lists ordering
pavlovicnemanja Aug 5, 2023
a09fc4c
feat(UI): Applied UI Fixes
pavlovicnemanja Aug 5, 2023
c3a1779
feat(logo, spinner): Fixed issue with spinner and added dark logo
pavlovicnemanja Aug 5, 2023
4f28980
fix(package): Fixed issue with version of ui framework
pavlovicnemanja Aug 5, 2023
3b66fec
feat(ui-framework): Updated version of ui framework
pavlovicnemanja Aug 6, 2023
642621d
feat(dropdowns): Improvements on dropdown components
pavlovicnemanja Aug 14, 2023
7bc827f
fix(list): Fixed automatic/manual lists
pavlovicnemanja Aug 15, 2023
42edf51
fix(MultiSelect): Fixed metadata multiselect
pavlovicnemanja Aug 15, 2023
fa8182a
feat(list): Updated lists UI
pavlovicnemanja Aug 15, 2023
a0bb939
feat(spacing): Fixed spacing in filter panel
pavlovicnemanja Aug 15, 2023
3e303d8
fix(multiselect): Fixed issue with multiselect
pavlovicnemanja Sep 15, 2023
8ea4c0d
fix(automatic): Fixed filer panel on automatic lists
pavlovicnemanja Sep 15, 2023
9091b87
fix(dropdown): Fixed issue with background on dropdown
pavlovicnemanja Sep 22, 2023
32b01fe
feat(website): Added improved UI website
pavlovicnemanja Sep 22, 2023
04a83e6
fix(state): Removed unused state items
pavlovicnemanja Sep 22, 2023
12a05bf
Fix authoring react publisher fixes
thecalcc Oct 31, 2023
5b1e582
Merge pull request #342 from thecalcc/authoring-react
thecalcc Oct 31, 2023
6dfab1d
Fix v2. Remove absolute elements
thecalcc Nov 1, 2023
c6a8b47
Merge pull request #344 from thecalcc/fix-v2
thecalcc Nov 2, 2023
e9aadf6
Fix cotnent list view
thecalcc Nov 3, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat(UI): Applied UI Fixes
pavlovicnemanja committed Aug 5, 2023
commit a09fc4c02d1cbf0377e08d88a0cabfcb437a5689
2 changes: 1 addition & 1 deletion client/components/ContentLists/Automatic/Automatic.jsx
Original file line number Diff line number Diff line change
@@ -183,7 +183,7 @@ class Automatic extends React.Component {
return (
<div className="flex-grid flex-grid--grow flex-grid--small-1">
<div className="flex-grid__item flex-grid__item--d-flex flex-grid__item--column">
<div className="subnav subnav--mid-blue-grey">
<div className="subnav subnav--mid-blue-grey" data-theme="dark-ui">
<button
className="navbtn navbtn--left"
onClick={this.props.onEditCancel}
47 changes: 26 additions & 21 deletions client/components/Output/FilterPane.jsx
Original file line number Diff line number Diff line change
@@ -3,10 +3,8 @@ import PropTypes from "prop-types";
import classNames from "classnames";
import moment from "moment";
import _ from "lodash";
import { Button, IconButton, DatePicker } from "superdesk-ui-framework/react";
import { Button, IconButton, DatePicker, MultiSelect, TreeSelect } from "superdesk-ui-framework/react";

import MultiSelect from "../UI/MultiSelect";
import AsyncMultiSelect from "../UI/AsyncMultiSelect";
import Store from "./Store";

class FilterPane extends React.Component {
@@ -88,27 +86,29 @@ class FilterPane extends React.Component {
});
};

loadAuthors = (inputValue = null) => {
if (inputValue && inputValue.length < 3) return this.state.authors;
loadAuthors = (inputValue = null, callback = null) => {
if (inputValue && inputValue.length < 2) callback(this.state.authors);

return this.props.publisher
this.props.publisher
.queryAuthors({ term: inputValue, limit: 30 })
.then((response) => {
let authorsOptions = [];

response._embedded._items.forEach((item) => {
authorsOptions.push({
authorsOptions.push({value: {
value: item.id,
label: item.name,
});
}});
});

this.setState({ authors: authorsOptions });
return authorsOptions;
callback(authorsOptions);
})
.catch((err) => {
return this.state.authors;
callback(this.state.authors);
});

return () => {};
};

handleAuthorChange = (arr) => {
@@ -213,22 +213,25 @@ class FilterPane extends React.Component {
<div className="sd-line-input sd-line-input--no-margin sd-line-input--with-button">
<label className="sd-line-input__label">Routes</label>
<MultiSelect
onSelect={(values) => this.handleRoutesChange(values)}
onChange={(values) => this.handleRoutesChange(values)}
options={routesOptions}
selectedOptions={this.state.filters.route}
optionLabel={(option) => option.label}
value={this.state.filters.route}
emptyFilterMessage="No routes found"
/>
</div>
</div>
<div className="form__row">
<div className="sd-line-input sd-line-input--no-margin sd-line-input--with-button">
<label className="sd-line-input__label">Authors</label>
<AsyncMultiSelect
onSelect={(values) => this.handleAuthorChange(values)}
loadOptions={(inputValue) =>
this.loadAuthors(inputValue)
}
selectedOptions={this.state.filters.author}
/>
<TreeSelect
kind="asynchronous"
value={this.state.filters.author}
getLabel={(item) => item.label}
getId={(item) => item}
allowMultiple={true}
searchOptions={this.loadAuthors}
onChange={(values) => this.handleAuthorChange(values)} />
</div>
</div>
<div className="form__row form__row--flex">
@@ -292,9 +295,11 @@ class FilterPane extends React.Component {
Ingest source
</label>
<MultiSelect
onSelect={(values) => this.handleSourceChange(values)}
onChange={(values) => this.handleSourceChange(values)}
options={ingestSourceOptions}
selectedOptions={this.state.filters.source}
optionLabel={(option) => option.label}
value={this.state.filters.source}
filterPlaceholder="No options found"
/>
</div>
</div>