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

Soft launch to staging #87

Merged
merged 73 commits into from
Apr 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
604ce03
finished bucket drop down
andrewaltman1 Apr 3, 2023
5f7644f
pulled down dev changes
andrewaltman1 Apr 3, 2023
2428e86
pulled down dev changes
andrewaltman1 Apr 3, 2023
54cfea3
commit before pull
andrewaltman1 Apr 6, 2023
6012e45
Merge branch 'dev' of https://github.com/oslabs-beta/CloudShift into …
andrewaltman1 Apr 10, 2023
d4fae81
commit before pull
andrewaltman1 Apr 13, 2023
e0aa8b3
remote
Apr 13, 2023
d253de6
consolidating remotes into one component
andrewaltman1 Apr 13, 2023
f78557b
combined two remote components into one
andrewaltman1 Apr 13, 2023
d0bb9db
half
Apr 13, 2023
85f7efa
ErrorComponent
Apr 13, 2023
d55e084
combined oirigin/destination components to remote
andrewaltman1 Apr 13, 2023
bfd58a5
a
Apr 13, 2023
2027093
Merge branch 'UI' of https://github.com/oslabs-beta/CloudShift into UI
Apr 13, 2023
43cd27a
added migration button logic
Apr 13, 2023
2ad4a00
Merge pull request #50 from oslabs-beta/UI
mjhuff Apr 13, 2023
e708c2c
added red error input
Apr 14, 2023
702469b
Merge pull request #60 from oslabs-beta/UI
mjhuff Apr 14, 2023
3897d43
Boilerplate and basic controllers
mjhuff Mar 28, 2023
9713575
solved merge conflicts
mjhuff Apr 14, 2023
009b68a
Deleted unnecessary files
mjhuff Apr 14, 2023
253fc53
Prettified Code!
mjhuff Apr 14, 2023
7c13c03
Merge pull request #71 from oslabs-beta/mergeFix
mjhuff Apr 14, 2023
f6fc792
updated styling given azure update
Apr 14, 2023
7eedb7a
Merge pull request #72 from oslabs-beta/ansel
mjhuff Apr 14, 2023
a109dd2
Solved css change merge conflicts
mjhuff Apr 14, 2023
059c346
Delete build directory
mjhuff Apr 14, 2023
00b0f9c
Prettified Code!
mjhuff Apr 14, 2023
d6ab0b4
Merge pull request #74 from oslabs-beta/anselMergeFixes
mjhuff Apr 14, 2023
56db7fa
Merge pull request #73 from oslabs-beta/mjhuff-patch-1
Apr 14, 2023
777a9c9
added new CI for build folder
mjhuff Apr 14, 2023
2ced56a
Merge pull request #75 from oslabs-beta/updateCICD
mjhuff Apr 14, 2023
230d6f8
Fixed CSS & added button hover
mjhuff Apr 14, 2023
021ef54
Prettified Code!
mjhuff Apr 14, 2023
0964da9
Merge pull request #77 from oslabs-beta/cssFixes
mjhuff Apr 14, 2023
c898214
added focus and back button
Apr 15, 2023
368e492
Merge branch 'dev' into focus
Apr 15, 2023
8609752
added focus
Apr 15, 2023
88a1e97
Prettified Code!
iredonkulousv2 Apr 15, 2023
2193cdb
Basic testing boilerplate
mjhuff Apr 15, 2023
9b9a1bf
Fixed spelling
mjhuff Apr 15, 2023
8406e71
Prettified Code!
mjhuff Apr 15, 2023
fac1ce4
Merge pull request #78 from oslabs-beta/focus
mjhuff Apr 15, 2023
8997e09
Merge branch 'dev' of https://github.com/oslabs-beta/CloudShift into dev
Apr 15, 2023
9acf294
Merge pull request #79 from oslabs-beta/jest
iredonkulousv2 Apr 15, 2023
76ff680
merged with jest
Apr 15, 2023
4d0ff82
made vertical and added zoom
Apr 15, 2023
40e1c63
Started readme
mjhuff Apr 15, 2023
90db3f5
added reset icon
Apr 15, 2023
fc0e75f
Finished installation section
mjhuff Apr 15, 2023
803eadc
add cloudshift icon
Apr 15, 2023
577e424
Prettified Code!
iredonkulousv2 Apr 15, 2023
53b1b34
Finished Usage & Credentials section
mjhuff Apr 15, 2023
937fa9e
Finished basic readme
mjhuff Apr 15, 2023
391f05d
Merge pull request #81 from oslabs-beta/readme
Apr 15, 2023
dd513de
Update README.md
mjhuff Apr 15, 2023
1fa1da9
Merge pull request #82 from oslabs-beta/patch-1
mjhuff Apr 15, 2023
ed12f31
Update README.md
mjhuff Apr 15, 2023
d91d34a
Merge pull request #83 from oslabs-beta/patch-2
mjhuff Apr 15, 2023
4033cdb
Update README.md
mjhuff Apr 15, 2023
700f181
Merge pull request #84 from oslabs-beta/patch-3
mjhuff Apr 15, 2023
c51ea0e
New logo & readme fixes
mjhuff Apr 15, 2023
2cccb79
Added banner to imgur
mjhuff Apr 15, 2023
4307495
solved merge conflict with dev
mjhuff Apr 15, 2023
4224c29
Merge pull request #85 from oslabs-beta/readme
mjhuff Apr 15, 2023
149b29d
styling adapts to changing browser size
Apr 15, 2023
8d48bef
Merge branch 'resizing' of https://github.com/oslabs-beta/CloudShift …
mjhuff Apr 15, 2023
82dcae0
Fixed minor CSS bugs
mjhuff Apr 15, 2023
b99b4cb
Prettified Code!
mjhuff Apr 15, 2023
5995bb3
Merge pull request #86 from oslabs-beta/cssUpdates
andrewaltman1 Apr 15, 2023
8012236
updated package*.json
mjhuff Apr 15, 2023
f7541ca
added build
mjhuff Apr 15, 2023
7c15bb4
solved staging merge conflicts
mjhuff Apr 15, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
pulled down dev changes
  • Loading branch information
andrewaltman1 committed Apr 3, 2023
commit 5f7644fa173530bb9f8c5fc599f03aefbf4b5def
19 changes: 18 additions & 1 deletion client/components/Origin.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import React, { useEffect } from 'react';
import {
updateOriginSecretKey,
updateOriginAccessId,
updateAccountId,
updateAccountId,,
updateOriginBuckets
} from '../slice';
import { useDispatch, useSelector } from 'react-redux';
import { getUserBuckets } from '../services/getBuckets';
Expand All @@ -26,6 +27,22 @@ const Origin = (props) => {
);
}

let bucketSelect;

const requireAccountId = props.name === 'CloudFlare' ? true : false;

if (!requireAccountId) {
bucketSelect = origin.accessId && origin.secretKey && (
<BucketSelect remote={'origin'}></BucketSelect>
);
} else {
bucketSelect = origin.accessId && origin.secretKey && origin.accountId && (
<BucketSelect remote={'origin'}></BucketSelect>
);
}

//REFACTOR TO RTK QUERY.
//THIS GETS THE BUCKETS.
useEffect(() => {
if (origin.accessId && origin.secretKey) {
if (origin.name === 'Cloudflare' && !origin.accountId) return;
Expand Down
7 changes: 5 additions & 2 deletions client/slice.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ const slice = createSlice({
state.origin = origin;
state.destination = destination;
},
updateSelectedBucket: (state, action) => {
updateOriginBuckets: (state, action) => {
state.origin.buckets = action.payload;
} updateSelectedBucket: (state, action) => {
state[action.payload.remote].selectedBucket = action.payload.bucket;
},
},
},
extraReducers: (builder) => {
builder.addCase(getUserBuckets.fulfilled),
(state, action) => {
Expand All @@ -77,5 +79,6 @@ export const {
updateDestinationSecretKey,
updateDestinationAccessId,
updateAccountId,
updateOriginBuckets,
updateSelectedBucket,
} = slice.actions;
You are viewing a condensed version of this merge commit. You can view the full changes here.