Support modifications via a proposal layer - #67
Open
danaradg wants to merge 13 commits into
Open
Conversation
Add AuthService for Google Auth management using Google Auth Lib and integrate single avatar image with Google login dropdown menu matching app color scheme and warning notice in top level nav bar (HeaderComponent). Add Material Icons stylesheet link to index.html. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99
Add AuthService for Google Auth management using Google Auth Lib and integrate single avatar image with Google login dropdown menu matching app color scheme and warning notice in top level nav bar (HeaderComponent). Add Material Icons stylesheet link to index.html. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99
Add AuthService for Google Auth management using Google Auth Lib and integrate single avatar image with Google login dropdown menu matching app color scheme and warning notice in top level nav bar (HeaderComponent). Add Material Icons stylesheet link to index.html. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99
Add AuthService and UI for Google logins
Add FeatureFlag support * Create featureflags.ts under app/config containing active feature flags: EnableAuth = true. * Update the auth service to always return "no authentication" if EnableAuth = false. * Update the header to only show the Login button if EnableAuth = true. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Add EnableAuth feature flag check to AuthService and HeaderComponent Check EnableAuth feature flag from FeatureFlag.ts in AuthService and HeaderComponent. When disabled, AuthService loads in disabled mode and login buttons are hidden from the top-level nav bar while maintaining non-auth guest behavior for other services. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Rename FeatureFlag.ts to featuresflag.ts and update import path Rename FeatureFlag.ts to featuresflag.ts under app/config and update import reference in AuthService. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Export FeatureFlag enum from featureflags.ts and update AuthService usage Export FeatureFlag enum from app/config/featureflags.ts and update AuthService to use FeatureFlag.EnableAuth instead of hardcoded strings. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Support URL query parameter overrides for feature flags Allow overriding feature flags via URL query parameters for testing (e.g. ?EnableAuth=false or ?EnableAuth=true). TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Rename feature flag EnableProposalApproval to EnableTreeEditing Rename FeatureFlag member EnableProposalApproval to EnableTreeEditing in app/config/featureflags.ts. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Remove EnableTreeEditing feature flag Remove EnableTreeEditing feature flag from app/config/featureflags.ts. TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Import FIREBASE_CONFIG from firebase-config instead of template in AuthService TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99 * Clean top navbar links in HeaderComponent TAG=agy CONV=57f44933-b7b2-4627-89b3-01b432e15d99
Create ProposalBackendService List and Create Proposals from FireStore. Store images in FireBase Storage.
Enable showing user location
Enable dataset change proposals
|
Ideally, we would want to integrate the auth-service with the backend service used by the SocialProcurement site to assign roles to users based on municipal association. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was achieved
Behind the Scenes
enableauththat is false by default, and only when enabled the UI shows the new interfaces. You can enable it by adding?enableauth=trueto the URL.Setting Up Firestore
In GCP, create a new Firestore project
In the project, initialize FireStore and create a new DB called "treebase-proposals", with a collection called "propsoals". Set the following access rules:
Settings -> Generalfor the Firebase project, scroll down to Your Apps -> SDK setup and configuration -> Config. Copy the code snippet containing the API key, domains, paths, etc and paste it intoapp/config/firebase_config.tsGaps & Future Work
projects/treebase/src/app/config/firebase-config.ts. It should take the path from the environment.