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

Release 0.3.3 #4622

Merged
merged 2 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion packages/twenty-docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-docs",
"version": "0.3.2",
"version": "0.3.3",
"private": true,
"scripts": {
"nx": "NX_DEFAULT_PROJECT=twenty-docs node ../../node_modules/nx/bin/nx.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-emails/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-emails",
"version": "0.3.2",
"version": "0.3.3",
"description": "",
"author": "",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-front/nyc.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const globalCoverage = {

const modulesCoverage = {
statements: 70,
lines: 75,
lines: 70,
functions: 70,
include: ['src/modules/**/*'],
exclude: ['src/**/*.ts'],
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-front/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-front",
"version": "0.3.2",
"version": "0.3.3",
"private": true,
"type": "module",
"scripts": {
Expand Down
5 changes: 0 additions & 5 deletions packages/twenty-front/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { StrictMode } from 'react';
import ReactDOM from 'react-dom/client';
import { HelmetProvider } from 'react-helmet-async';
import { BrowserRouter } from 'react-router-dom';
import { loadDevMessages, loadErrorMessages } from '@apollo/client/dev';
import { RecoilRoot } from 'recoil';

import { ApolloProvider } from '@/apollo/components/ApolloProvider';
Expand Down Expand Up @@ -34,10 +33,6 @@ import 'react-loading-skeleton/dist/skeleton.css';

const root = ReactDOM.createRoot(document.getElementById('root')!);

// Adds messages only in a dev environment
loadDevMessages();
loadErrorMessages();

root.render(
<RecoilRoot>
<AppErrorBoundary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,31 @@ export const query = gql`
}
`;

export const findManyViewsQuery = gql`
query FindManyViews($filter: ViewFilterInput, $orderBy: ViewOrderByInput, $lastCursor: String, $limit: Float) {
views(filter: $filter, orderBy: $orderBy, first: $limit, after: $lastCursor) {
edges {
node {
__typename
id
objectMetadataId
type
createdAt
name
updatedAt
}
cursor
}
pageInfo {
hasNextPage
startCursor
endCursor
}
totalCount
}
}
`;

export const variables = {
input: {
object: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { useCreateOneObjectMetadataItem } from '@/object-metadata/hooks/useCreat

import { TestApolloMetadataClientProvider } from '../__mocks__/ApolloMetadataClientProvider';
import {
findManyViewsQuery,
query,
responseData,
variables,
Expand All @@ -24,6 +25,27 @@ const mocks = [
},
})),
},
{
request: {
query: findManyViewsQuery,
variables: {},
},
result: jest.fn(() => ({
data: {
views: {
__typename: 'ViewConnection',
totalCount: 0,
pageInfo: {
__typename: 'PageInfo',
hasNextPage: false,
startCursor: '',
endCursor: '',
},
edges: [],
},
},
})),
},
];

const Wrapper = ({ children }: { children: ReactNode }) => (
Expand Down
2 changes: 1 addition & 1 deletion packages/twenty-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twenty-server",
"version": "0.3.2",
"version": "0.3.3",
"description": "",
"author": "",
"private": true,
Expand Down
Loading