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

feat: GROWI Questionnaire #7316

Merged
merged 243 commits into from
May 8, 2023
Merged

feat: GROWI Questionnaire #7316

merged 243 commits into from
May 8, 2023

Conversation

hakumizuki
Copy link
Contributor

@hakumizuki hakumizuki commented Jan 30, 2023

arafubeatbox and others added 30 commits December 24, 2022 07:05
…' into feat/110280-112131-questionnaire-order-save
…stionnaire-order-periodically

feat: 110268 111686 get questionnaire order periodically
…/110280-112131-112133-questionnaire-order-save
@arafubeatbox arafubeatbox temporarily deployed to VRT April 17, 2023 09:55 — with GitHub Actions Inactive
@jam411 jam411 changed the title [WIP] feat: Questionnaire feat: GROWI Questionnaire Apr 24, 2023
@jam411 jam411 temporarily deployed to VRT April 24, 2023 08:47 — with GitHub Actions Inactive
@jam411 jam411 temporarily deployed to VRT April 25, 2023 05:46 — with GitHub Actions Inactive
@jam411 jam411 temporarily deployed to VRT April 25, 2023 05:59 — with GitHub Actions Inactive
@jam411 jam411 temporarily deployed to VRT April 25, 2023 06:18 — with GitHub Actions Inactive
@jam411 jam411 temporarily deployed to VRT April 25, 2023 06:55 — with GitHub Actions Inactive
@arafubeatbox arafubeatbox temporarily deployed to VRT April 30, 2023 12:22 — with GitHub Actions Inactive
…stionnaire-files-to-features

Imprv/121200 121334 move all questionnaire files to features
@jam411 jam411 temporarily deployed to VRT May 1, 2023 01:24 — with GitHub Actions Inactive
@@ -9,15 +9,23 @@ import { apiv3Post } from '~/client/util/apiv3-client';
import { toastError } from '~/client/util/toastr';
import { useCurrentUser } from '~/stores/context';

import ProactiveQuestionnaireModal from '../../features/questionnaire/client/components/ProactiveQuestionnaireModal';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ~/features/... にして
  • next/dynamic 使って

Copy link
Contributor

@jam411 jam411 May 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ ssr: false } で修正しました。

@@ -22,6 +22,7 @@ import superjson from 'superjson';
import { useCurrentGrowiLayoutFluidClassName, useEditorModeClassName } from '~/client/services/layout';
import { PageView } from '~/components/Page/PageView';
import { DrawioViewerScript } from '~/components/Script/DrawioViewerScript';
import QuestionnaireModalManager from '~/features/questionnaire/client/components/QuestionnaireModalManager';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

next/dynamic 使って

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ ssr: false } で修正しました。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これあんまり汎用化したくないので、このファイルは消して使う箇所で定義して

Copy link
Contributor

@jam411 jam411 May 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questioinnaire-cron.ts でのみ使用していたのでこのクラス内で定義しました。

background-color: var(--primary) !important;
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

features の下に定義して @use で入れられないかな

この辺参考に
https://lunalunadesign.net/2022/09/2895/

ちょっとやってみて時間がかかるようだったら諦めていい。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return swrResponse.mutate({ openedQuestionnaireId: null });
},
};
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これも features 下に移したい

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

移動しました。

key: 'app:deploymentType',
type: ValueType.STRING,
default: null,
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

すべて QUESTIONNAIRE_ から始めてほしい

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SERVICE_TYPEDEPLOYMENT_TYPE は本体情報なのでそのままにしました。
GROWI_QUESTIONNAIRE_SERVER_ORIGIN は key名とともに QUESTIONNAIRE_SERVER_ORIGIN に修正

logger.error(err);
return res.apiv3Err({ error: 'Failed to update questionnaire settings.' });
}
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

features の中に admin 用の routes ファイル作ってそこに移して router.use で読み込めないか

かえって複雑になりそうだったら見送ってよい

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return res.apiv3Err(new ErrorV3(msg, 'update-questionnaire-settings-failed'));
}

});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

features の中に routes ファイル作ってそこに移して router.use で読み込めないか

かえって複雑になりそうだったら見送ってよい

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jam411 jam411 temporarily deployed to VRT May 8, 2023 08:34 — with GitHub Actions Inactive
@reg-suit
Copy link

reg-suit bot commented May 8, 2023

reg-suit detected visual differences.

Check this report, and review them.

🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴🔴
⚪⚪⚪⚪⚪
⚫⚫
🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵

What do the circles mean? The number of circles represent the number of changed images.
🔴 : Changed items, ⚪ : New items, ⚫ : Deleted items, and 🔵 Passed items

How can I change the check status? If reviewers approve this PR, the reg context status will be green automatically.

@jam411 jam411 merged commit c98ab52 into master May 8, 2023
@jam411 jam411 deleted the feat/questionnaire branch May 8, 2023 09:02
@github-actions github-actions bot mentioned this pull request May 8, 2023
@yuki-takei yuki-takei mentioned this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants