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

New release #15732

Draft
wants to merge 35 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
d7f17b0
sync: master to develop
ovh-cds Feb 27, 2025
7c99bd6
sync: master to develop
ovh-cds Feb 27, 2025
ed3752e
sync: master to develop
ovh-cds Feb 27, 2025
7fda48c
sync(*): master to develop
ovh-cds Feb 27, 2025
36a9798
sync(*): master to develop
ovh-cds Feb 27, 2025
a807633
sync(*): master to develop
ovh-cds Feb 27, 2025
4af7597
fix(i18n): add missing translations [CDS 3753]
ovh-cds Feb 28, 2025
18da612
fix(i18n): add missing translations [CDS 3754]
ovh-cds Mar 1, 2025
cf3c0f4
fix(i18n): add missing translations [CDS 3757]
ovh-cds Mar 3, 2025
8939692
sync(*): master to develop
ovh-cds Mar 3, 2025
d399c87
sync(*): master to develop
ovh-cds Mar 3, 2025
ba88503
sync(*): master to develop
ovh-cds Mar 3, 2025
05de002
sync(*): master to develop
ovh-cds Mar 3, 2025
7831f2c
ci: fix missing code ownerships
darsene Feb 26, 2025
b4c599c
feat(manager-react-components): add managerTile export
Feb 28, 2025
8ed156c
sync(*): master to develop
ovh-cds Mar 4, 2025
9241b8d
sync(*): master to develop
ovh-cds Mar 4, 2025
0ba78df
feat(manager-react-components): add search in useresourcesv6 hook
aboungnaseng-ovhcloud Feb 18, 2025
5e5bd48
fix(i18n): add missing translations [CDS 3759]
aboungnaseng-ovhcloud Mar 4, 2025
e771587
feat(manager-pci-common): project update
frenautvh Feb 28, 2025
aa03716
sync(*): master to develop
ovh-cds Mar 4, 2025
868cd3d
sync(*): master to develop
ovh-cds Mar 4, 2025
b5a0ec2
feat(common-translations): add actions & form (#15497)
tristanwagner Mar 4, 2025
2bc793d
ci(commitlint): fix commitlint signature #15768
hbelkhir Mar 5, 2025
0ca9100
sync(*): master to develop
ovh-cds Mar 5, 2025
7c1ef61
fix(i18n): add missing translations [CDS 3761]
ovh-cds Mar 5, 2025
c82fa81
sync(*): master to develop
ovh-cds Mar 5, 2025
94b2ea5
sync: master to develop
anooparveti Mar 5, 2025
775e250
ci(*): trigger release-branch-checker github action
anooparveti Mar 5, 2025
9cc30a3
ci(*): add pci module owner
anooparveti Mar 6, 2025
c5a4247
feat(core-test-utils): add new utils and separate files
Mar 5, 2025
969337a
sync(*): master to develop
ovh-cds Mar 6, 2025
eee1e3a
sync(*): master to develop
ovh-cds Mar 6, 2025
503745d
fix(i18n): add missing translations [CDS 3762]
ovh-cds Mar 6, 2025
4168525
feat(octavia-load-balancer): remove angularjs app
frenautvh Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .commitlintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ module.exports = {
'references-empty': [1, 'never'],
// Enforce Signed-off-by footer format
'signed-off-by': [2, 'always', 'Signed-off-by:'],
'signed-off-by': [0, 'always', 'Co-authored-by:'],

// Enforce specific commit types (feat, fix, etc.)
'type-enum': [2, 'always', COMMIT_TYPES],
'header-max-length': [2, 'always', 100],
'footer-leading-blank' : [2, 'always']
}
};
};
11 changes: 8 additions & 3 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@
/packages/manager/apps/container @ovh/dev-manager-gcj-all
/packages/manager/apps/dbaas-logs @ovh/dev-manager-enabler-all
/packages/manager/apps/dedicated @ovh/dev-manager-infra-all
/packages/manager/apps/dedicated/client/*.js* @ovh/dev-manager-infra-all @ovh/dev-manager-hpc-all
/packages/manager/apps/dedicated/client/app/managedBaremetal @ovh/dev-manager-hpc-all
/packages/manager/apps/dedicated/client/app/dedicatedCloud @ovh/dev-manager-hpc-all
/packages/manager/apps/dedicated/client/app/components/dedicated-cloud @ovh/dev-manager-hpc-all
/packages/manager/apps/dedicated/client/__mocks__ @ovh/dev-manager-infra-all @ovh/dev-manager-hpc-all
/packages/manager/apps/dedicated/client/__tests__ @ovh/dev-manager-infra-all @ovh/dev-manager-hpc-all
/packages/manager/apps/dedicated-server @ovh/dev-manager-infra-all
/packages/manager/apps/email-domain @ovh/dev-manager-web-all
/packages/manager/apps/email-pro @ovh/dev-manager-web-all
Expand All @@ -31,7 +37,6 @@
/packages/manager/apps/nasha @ovh/dev-manager-infra-all
/packages/manager/apps/netapp @ovh/dev-manager-infra-all
/packages/manager/apps/nutanix @ovh/dev-manager-hpc-all
/packages/manager/apps/octavia-load-balancer @ovh/dev-manager-pci-all
/packages/manager/apps/office @ovh/dev-manager-web-all
/packages/manager/apps/overthebox @ovh/dev-manager-web-all
/packages/manager/apps/pci @ovh/dev-manager-pci-all
Expand Down Expand Up @@ -85,9 +90,9 @@
/packages/manager/modules/netapp @ovh/dev-manager-infra-all
/packages/manager/modules/new-billing @ovh/dev-manager-gcj-all
/packages/manager/modules/nutanix @ovh/dev-manager-hpc-all
/packages/manager/modules/octavia-load-balancer @ovh/dev-manager-pci-all
/packages/manager/modules/office @ovh/dev-manager-web-all
/packages/manager/modules/overthebox @ovh/dev-manager-web-all
/packages/manager/modules/pci @ovh/dev-manager-pci-all
/packages/manager/modules/pci-universe-components @ovh/dev-manager-pci-all
/packages/manager/modules/phone-prefix @ovh/dev-manager-web-all
/packages/manager/modules/product-offers @ovh/dev-manager-web-all
Expand All @@ -99,7 +104,7 @@
/packages/manager/modules/telecom-styles @ovh/dev-manager-web-all
/packages/manager/modules/telecom-task @ovh/dev-manager-web-all
/packages/manager/modules/telecom-universe-components @ovh/dev-manager-web-all
/packages/manager/modules/vcd-api @ovh/dev-manager-hpc-all
/packages/manager/modules/trusted-nic @ovh/dev-manager-gcj-all
/packages/manager/modules/vcd-api @ovh/dev-manager-hpc-all
/packages/manager/modules/veeam-cloud-connect @ovh/dev-manager-infra-all
/packages/manager/modules/veeam-enterprise @ovh/dev-manager-infra-all
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-branch-checker.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Check for Release Branch'
on:
pull_request:
types: [opened, edited]
types: [opened, edited, reopened, synchronize]

jobs:
check_branch:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ import { ODS_TEXT_PRESET } from '@ovhcloud/ods-components';
import { OdsText } from '@ovhcloud/ods-components/react';
import React from 'react';

export type TileBlockProps = React.PropsWithChildren<{
label?: string;
}>;

export const ManagerTileItem = ({ children }: React.PropsWithChildren) => {
return <dl className="flex flex-col gap-1 m-0">{children}</dl>;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from './headers/headers.component';
export * from './price/price.component';
export * from './dashboard-tile/dashboard-tile.component';
export * from './dashboard-tile/tile-block.component';
export * from './ManagerTile/manager-tile.component';
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import {
FilterCategories,
FilterComparator,
FilterTypeCategories,
FilterTypeCategories as DatagridColumnTypes,
} from '@ovh-ux/manager-core-api';
import { clsx } from 'clsx';
import { ColumnFilter } from '../filters/filter-add.component';
Expand All @@ -37,6 +37,7 @@ import './translations';

export type ColumnSort = TanstackColumnSort;
export type PaginationState = TanstackPaginationState;
export { FilterTypeCategories as DatagridColumnTypes } from '@ovh-ux/manager-core-api';
// Note: current prettier version does not supports export type
// we could replace those types with :
// export type { ColumnSort } from '@tanstack/react-table';
Expand All @@ -54,7 +55,7 @@ export interface DatagridColumn<T> {
/** set column comparator for the filter */
comparator?: FilterComparator[];
/** Filters displayed for the column */
type?: FilterTypeCategories;
type?: DatagridColumnTypes;
/** Trigger the column filter */
isFilterable?: boolean;
/** Trigger the column search */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,11 @@ What contains `search` object :
- **setSearchInput**: setter of search input state
- **onSearch**: handler when user click on the button search.

#### Search with useResourcesIcebergV6
#### With useResourcesIcebergV6 hook

**_note : apiv6 only support operator `&`, we can't combine multiple search_**

1 - Fill `columns` attribute with your columns definition
1 - Fill `columns` attribute with your columns definition. The`search` object returned by the `useResourcesIcebergV6` hook must be passed to your `Datagrid`'s props

<Source
code={`
Expand All @@ -163,20 +163,106 @@ import {
{...}
columns, // you have to pass the columns definition now
});

<Datagrid
{...}
filters={filters}
search={search} // pass the params search here
isLoading={isLoading}
/>
`}
language="javascript"
/>

2 - The`search` object returned by the `useResourcesIcebergV6` hook must be passed to your `Datagrid`'s props
Exemple of column definition

<Source
code={`
const columns = [
{
id: 'label',
cell: (item: Item) => {
return <DataGridTextCell>{item.label}</DataGridTextCell>;
},
label: 'Label',
isFilterable: true,
isSearchable: true,
comparator: FilterCategories.String,
},
{
id: 'ip',
cell: (item: Item) => {
return <DataGridTextCell>{item.ip}</DataGridTextCell>;
},
label: 'ip',
isFilterable: true,
isSearchable: false, // only one column can be searchable
comparator: FilterCategories.String,
}
];
`}
language="javascript"
/>

#### With useResourcesV6 hook

**_note : You can apply search in multiples columns and type attribute is mandatory in your column definition_**

Fill `columns` attribute with your columns definition. The`search` object returned by the `useResourcesV6` hook must be passed to your `Datagrid`'s props

<Source
code={`
import {
useResourcesV6,
} from '@ovh-ux/manager-react-components';
const {
{...}
search, // it return search object
} = useResourcesV6({
{...}
columns, // you have to pass the columns definition now
});
]

<Datagrid
{...}
filters={filters}
search={search}
search={search} // pass the params search here
isLoading={isLoading}
/>
`}

language="javascript"
/>

Exemple of column definition

<Source
code={`
const columns = [
{
id: 'label',
cell: (item: Item) => {
return <DataGridTextCell>{item.label}</DataGridTextCell>;
},
label: 'Label',
isFilterable: true,
isSearchable: true, // you can define multiple searchable column
comparator: FilterCategories.String,
type: FilterTypeCategories.String // type attribute is mandatory
},
{
id: 'ip',
cell: (item: Item) => {
return <DataGridTextCell>{item.ip}</DataGridTextCell>;
},
label: 'ip',
isFilterable: true,
isSearchable: true, // you can define multiple searchable column
comparator: FilterCategories.String,
type: FilterTypeCategories.String // type attribute is mandatory
}
];
`}
language="javascript"
/>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"common_actions": "Aktionen",
"user_account_guides_header": "Anleitungen",
"mrc_changelog_header": "Roadmap &amp; Changelog",
"mrc_changelog_header": "Roadmap und Changelog",
"mrc_changelog_roadmap": "Roadmap",
"mrc_changelog_changelog": "Changelog",
"mrc_changelog_feature-request": "Feature Request"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"mrc_changelog_header": "Roadmap &amp; Changelog",
"mrc_changelog_roadmap": "Roadmap",
"mrc_changelog_changelog": "Changelog",
"mrc_changelog_feature-request": "Feature request"
"mrc_changelog_feature-request": "Feature Request"
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"common_actions": "Operacje",
"user_account_guides_header": "Przewodniki",
"mrc_changelog_header": "Roadmap &amp; Changelog",
"mrc_changelog_roadmap": "Roadmapa",
"mrc_changelog_header": "Roadmap &amp; changelog",
"mrc_changelog_roadmap": "Roadmap",
"mrc_changelog_changelog": "Changelog",
"mrc_changelog_feature-request": "Propozycja wdroΕΌenia nowej funkcji"
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ export function useResourcesIcebergV6<T = unknown>({

const searchableColumn = useMemo(
() =>
columns?.find((item) =>
Object.prototype.hasOwnProperty.call(item, 'isSearchable'),
columns?.find(
(item) =>
Object.prototype.hasOwnProperty.call(item, 'isSearchable') &&
item.isSearchable,
),
[columns],
);
Expand Down
Loading
Loading