Skip to content

Commit

Permalink
Update /use.?*TableControls\(/ params to add dataNameProperty
Browse files Browse the repository at this point in the history
Signed-off-by: Scott J Dickerson <[email protected]>
  • Loading branch information
sjd78 committed Jul 16, 2024
1 parent 672c3a0 commit dbb3509
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const ManageImportsDetails: React.FC = () => {
const tableControls = useLocalTableControls({
tableName: "manage-imports-details",
idProperty: "Application Name",
dataNameProperty: "Application Name",
items: imports || [],
columnNames: {
name: t("terms.name"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export const ManageImports: React.FC = () => {
const tableControls = useLocalTableControls({
tableName: "manage-imports",
idProperty: "id",
dataNameProperty: "filename",
items: importSummaries,
columnNames: {
importTime: "Import Time",
Expand Down
1 change: 1 addition & 0 deletions client/src/app/pages/archetypes/archetypes-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const Archetypes: React.FC = () => {
persistTo: "urlParams",
persistenceKeyPrefix: TablePersistenceKeyPrefix.archetypes,
idProperty: "id",
dataNameProperty: "name",
items: archetypes,
isLoading: isFetching,
hasActionsColumn: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ const AssessmentSettings: React.FC = () => {
const tableControls = useLocalTableControls({
tableName: "questionnaires-table",
idProperty: "id",
dataNameProperty: "name",
items: questionnaires || [],
columnNames: {
required: "Required",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const QuestionnairesTable: React.FC<QuestionnairesTableProps> = ({
const tableControls = useLocalTableControls({
tableName: "questionnaires-table",
idProperty: "id",
dataNameProperty: "name",
items: questionnaires || [],
columnNames: {
questionnaires: tableName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ export const BusinessServices: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "business-services-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: businessServices,
columnNames: {
name: t("terms.name"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ export const JobFunctions: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "job-functions-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: jobFunctions || [],
columnNames: {
name: t("terms.name"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ export const StakeholderGroups: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "stakeholder-groups-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: stakeholderGroups,
columnNames: {
name: "Name",
Expand Down
3 changes: 2 additions & 1 deletion client/src/app/pages/controls/stakeholders/stakeholders.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export const Stakeholders: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "stakeholders-table",
idProperty: "email",
idProperty: "id",
dataNameProperty: "name",
items: stakeholders,
columnNames: {
email: "Email",
Expand Down
3 changes: 2 additions & 1 deletion client/src/app/pages/controls/tags/tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ export const Tags: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "business-services-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: tagCategories,
columnNames: {
tagCategory: t("terms.tagCategory"),
Expand Down
3 changes: 2 additions & 1 deletion client/src/app/pages/external/jira/trackers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ export const JiraTrackers: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "jira-Tracker-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: trackers,
columnNames: {
name: `${t("terms.instance")} name`,
Expand Down
3 changes: 2 additions & 1 deletion client/src/app/pages/identities/identities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export const Identities: React.FC = () => {

const tableControls = useLocalTableControls({
tableName: "identities-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: identities,
columnNames: {
name: t("terms.name"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export const ManageApplicationsForm: React.FC<ManageApplicationsFormProps> = ({

const tableControls = useLocalTableControls({
tableName: "manage-applications-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: availableApplications,
columnNames: {
name: "Application Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export const WaveStakeholdersTable: React.FC<IWaveStakeholdersTableProps> = ({
}) => {
const tableControls = useLocalTableControls({
tableName: "wave-stakeholders-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: migrationWave.allStakeholders,
columnNames: {
name: "Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ export const WaveApplicationsTable: React.FC<IWaveApplicationsTableProps> = ({

const tableControls = useLocalTableControls({
tableName: "wave-applications-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: migrationWave.fullApplications,
columnNames: {
appName: "Name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export const WaveStatusTable: React.FC<IWaveStatusTableProps> = ({

const tableControls = useLocalTableControls({
tableName: "wave-applications-table",
idProperty: "name",
idProperty: "id",
dataNameProperty: "name",
items: migrationWave.fullApplications,
columnNames: {
appName: "Application name",
Expand Down

0 comments on commit dbb3509

Please sign in to comment.