feat: change ui label for latest channel to stable

pull/3281/head
yougotwill 2 months ago
parent 403a5a1e37
commit 07ac6fa47b

@ -24,6 +24,7 @@ concurrency:
env: env:
# we want to publish on "push to master" only. When we don't want to publish, we want to upload artefacts # we want to publish on "push to master" only. When we don't want to publish, we want to upload artefacts
SHOULD_PUBLISH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} SHOULD_PUBLISH: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
# TODO Are we happy with this condition?
SHOULD_PUBLISH_ALPHA: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && contains(github.ref, '-alpha.') }} SHOULD_PUBLISH_ALPHA: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release') && contains(github.ref, '-alpha.') }}
jobs: jobs:

@ -12,7 +12,7 @@ import { Storage } from '../../../util/storage';
const items = [ const items = [
{ {
label: capitalize(LATEST_CHANNEL), label: 'Stable',
value: LATEST_CHANNEL, value: LATEST_CHANNEL,
inputDataTestId: `input-releases-${LATEST_CHANNEL}` as const, inputDataTestId: `input-releases-${LATEST_CHANNEL}` as const,
labelDataTestId: `label-releases-${LATEST_CHANNEL}` as const, labelDataTestId: `label-releases-${LATEST_CHANNEL}` as const,
@ -33,7 +33,7 @@ export const ReleaseChannel = () => {
const changeReleaseChannel = (channel: ReleaseChannels) => { const changeReleaseChannel = (channel: ReleaseChannels) => {
window.log.debug( window.log.debug(
`WIP: [debugMenu] Setting release channel to ${channel}. It was ${Storage.get('releaseChannel') || 'not set'}` `[debugMenu] Setting release channel to ${channel}. It was ${Storage.get('releaseChannel') || 'not set'}`
); );
dispatch( dispatch(
updateConfirmModal({ updateConfirmModal({

@ -108,7 +108,7 @@ export const DebugActions = () => {
}} }}
> >
<SessionSpinner loading={loadingLatestRelease} color={'var(--text-primary-color)'} /> <SessionSpinner loading={loadingLatestRelease} color={'var(--text-primary-color)'} />
{!loadingLatestRelease ? 'Check latest release' : null} {!loadingLatestRelease ? 'Check stable version' : null}
</SessionButton> </SessionButton>
<SessionButton <SessionButton
onClick={async () => { onClick={async () => {
@ -145,7 +145,7 @@ export const DebugActions = () => {
}} }}
> >
<SessionSpinner loading={loadingAlphaRelease} color={'var(--text-primary-color)'} /> <SessionSpinner loading={loadingAlphaRelease} color={'var(--text-primary-color)'} />
{!loadingAlphaRelease ? 'Check alpha release' : null} {!loadingAlphaRelease ? 'Check alpha version' : null}
</SessionButton> </SessionButton>
</Flex> </Flex>
</> </>

Loading…
Cancel
Save