Skip to content

Commit

Permalink
NAC-132: nxql query thumbnail generation (#200)
Browse files Browse the repository at this point in the history
* NAC-132: nxql query thumbnail generation

* NAC-132: text transform to capital

* NAC-132: spacing in query
  • Loading branch information
rakeshkumar1019 authored Oct 11, 2024
1 parent 8903d14 commit c35c57c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="bulk-action-summary__header">
<p class="action-details">
<span class="action-name">
{{bulkActionSummary.action | titlecase}}
{{bulkActionSummary.action}}
</span>
<span
*ngIf="bulkActionSummary?.state !== BULK_ACTION_LABELS.RUNNING_STATE && bulkActionSummary?.state !== BULK_ACTION_LABELS.SCROLLING_RUNNING_STATE else runningState;"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
.action-name {
font-weight: 550;
font-size: 20px;
text-transform: capitalize;
}

.action-status {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,17 @@ export const featureMap = () => ({
};
break;

case GENERIC_LABELS.NXQL:
labels = {
pageTitle: THUMBNAIL_GENERATION_LABELS.NXQL_THUMBNAIL_GENERATION_TITLE,
submitBtnLabel: THUMBNAIL_GENERATION_LABELS.THUMBNAIL_GENERATION_BUTTON_LABEL,
nxqlQueryPlaceholder: THUMBNAIL_GENERATION_LABELS.NXQL_QUERY_DEFAULT_VALUE,
};
data = {
bodyParam: { query: `${THUMBNAIL_GENERATION_LABELS.NXQL_QUERY}` },
};
break;

default:
throw new Error(`Unsupported type: ${tabType}`);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const THUMBNAIL_GENERATION_LABELS = {
DOCUMENT_THUMBNAIL_GENERATION_TITLE: "Generate the thumbnail of a single document",
THUMBNAIL_GENERATION_BUTTON_LABEL: "Generate",
DOCUMENT_QUERY: "ecm:mixinType = 'Thumbnail' AND ecm:path='{query}'",
DOCUMENT_QUERY: "ecm:path='{query}'",
NXQL_THUMBNAIL_GENERATION_TITLE: "Generate the thumbnail of the documents returned by a NXQL query",
NXQL_QUERY_DEFAULT_VALUE: "SELECT * FROM Document WHERE ecm:mixinType = 'Thumbnail' AND thumb:thumbnail/data IS NULL AND ecm:isVersion = 0 AND ecm:isProxy = 0 AND ecm:isTrashed = 0 AND dc:title = 'A document without thumbnail'",
NXQL_QUERY: "(ecm:uuid='{query}' OR ecm:ancestorId='{query}') AND ecm:isProxy = 0 AND ecm:mixinType != 'HiddenInNavigation' AND ecm:isVersion = 0 AND ecm:isTrashed = 0"
};

0 comments on commit c35c57c

Please sign in to comment.