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: Update app name on topbar based on version #159

Merged

Conversation

mohandast52
Copy link
Collaborator

Screenshot

@mohandast52 mohandast52 requested a review from truemiller May 29, 2024 18:29
@mohandast52 mohandast52 marked this pull request as ready for review May 29, 2024 18:29
<Text>Pearl (alpha)</Text>
<Text>
Pearl (alpha)
{store?.storeState?.appVersion?.includes('rc') ? '' : ' (staging)'}
Copy link
Collaborator

Choose a reason for hiding this comment

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

won't we be able to get it from process.env.IS_STAGING?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, we can. I'm considering removing it completely. I'll update here once I've discussed it with Josh.


const versionName = useMemo(() => {
const releaseType = store?.storeState?.releaseType;
if (releaseType === 'draft') return ' (staging)';
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@Tanya-atatakai, we can't use .env files because they aren't exposed here, so we used this technique instead.
@truemiller, do you think the appVersion is unnecessary and won't need renaming?

Copy link
Collaborator

Choose a reason for hiding this comment

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

yeah, not sure we need appVersion is store..
can probably just a expose constant through electron api

electron/install.js Outdated Show resolved Hide resolved
electron/main.js Outdated
setupStoreIpc(ipcMain, mainWindow);
const storeInitialValues = {
appVersion: app.getVersion(),
releaseType: process.env.IS_STAGING ? 'draft' : 'release',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
releaseType: process.env.IS_STAGING ? 'draft' : 'release',
releaseType: 'draft',

…ants/publishOptions.js and update olas-operate-middleware version to '0.1.0rc26' in electron/install.js
@mohandast52 mohandast52 merged commit b12aed4 into mohan/staging-release-setup Jun 3, 2024
2 of 4 checks passed
@mohandast52 mohandast52 deleted the mohan/rename-app-name-on-staging-env branch June 3, 2024 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants