## 概要 [Task3692: リテラル反映・Typist表示をTranscriptioninstにする](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3692) - フッターのコピーライトを修正 - 文字列がべた書きだったのを翻訳情報を入れるように修正 - User一覧画面でRoleがTypistの時の表記をTranscriptioninstに修正 - OptionItemの項目名を入れ替え - initialValue ⇔ defaultValue - アカウント画面のSaveボタン下にある代理操作に対する注釈を削除 - 翻訳情報反映 ## レビューポイント - OptionItemの項目名を入れ替えたが、表示するプロパティ名も名前を修正したほうが良いか?(initialValueの列にdefaultValueTypeを表示しているため混乱するのではないかという懸念) - APIのレスポンスのプロパティ名から変えないと揃えられないため、表示する項目名の並びだけを変えた - なんで入れ替えたのかコメントしたし、これで良いか ## UIの変更 - https://ndstokyo.sharepoint.com/:f:/r/sites/Piranha/Shared%20Documents/General/OMDS/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88/Task3692?csf=1&web=1&e=yWY4ab ## 動作確認状況 - ローカルで確認 ## 補足 - 相談、参考資料などがあれば
29 lines
732 B
TypeScript
29 lines
732 B
TypeScript
import type { RoleType } from "./types";
|
|
|
|
// LicenseStatusTypeの値を定数オブジェクトにする
|
|
export const LICENSE_STATUS = {
|
|
NORMAL: "Normal",
|
|
NOLICENSE: "NoLicense",
|
|
ALERT: "Alert",
|
|
RENEW: "Renew",
|
|
} as const;
|
|
|
|
// Licenseの割り当て状態
|
|
export const LICENSE_ALLOCATE_STATUS = {
|
|
ALLOCATED: "Allocated",
|
|
NOTALLOCATED: "Not Allocated",
|
|
} as const;
|
|
|
|
// NoLicenseの表示
|
|
export const NO_LICENSE = "No License" as const;
|
|
|
|
// ライセンスが割り当てられている場合の表示
|
|
export const LICENSE_NORMAL = "License Assigned" as const;
|
|
|
|
// Roleの表示名
|
|
export const ROLE_DISPLAY_NAME: Record<RoleType, string> = {
|
|
author: "Author",
|
|
typist: "Transcriptionist",
|
|
none: "None",
|
|
} as const;
|