Skip to content

Conversation

@wesleyboar
Copy link
Member

@wesleyboar wesleyboar commented Oct 31, 2025

Overview

Add feature flag and warn about maintenance.

Important

Credit to Sophia for helping style message.

Related

Changes

  • added .env for flags
  • documented default prefix for env variables
  • added message

Testing

  1. Open Projects & Allocations.
  2. See error message.
  3. Open another Portal "page".
  4. See no message.

UI

page messages
page.messages.mov

* feat: feature-flag–based error message (!)

(!) style and layout incomplete, just testing

* fix: change error message, link to news

* Adds styles and addresses right margin issue

* Linting

---------

Co-authored-by: Sophia Massie-Perez <smassie@smassie-mbp25.local>
@wesleyboar wesleyboar changed the title feat: feature flags feat: feature flags + projects message - in-page Oct 31, 2025
Copy link
Collaborator

@sophia-massie sophia-massie left a comment

Choose a reason for hiding this comment

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

LGTM!

export default defineConfig({
root: __dirname,
cacheDir: '../../node_modules/.vite/tup-ui',
// envPrefix: 'VITE_',
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do you want to leave this comment in here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes/No. I want us noobs to know that VITE_ (default value) has a special meaning. Without that prefix, the value is not available to client app. And I'd like to suggest we can change it. I could enable it and comment the doc URL —

Suggested change
// envPrefix: 'VITE_',
envPrefix: 'VITE_', // https://vite.dev/config/shared-options.html#envprefix

— thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK perfect I like this

Copy link

@taoteg taoteg left a comment

Choose a reason for hiding this comment

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

LGTM.

@wesleyboar
Copy link
Member Author

Closed in favor of #522.

@wesleyboar wesleyboar merged commit 65467e7 into main Oct 31, 2025
1 check passed
@wesleyboar wesleyboar deleted the feat/feature-flags branch October 31, 2025 20:49
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