zhammer / morning-cd Goto Github PK
View Code? Open in Web Editor NEWWhat was the first piece of music you listened to this morning?
License: MIT License
What was the first piece of music you listened to this morning?
License: MIT License
https://www.python.org/dev/peps/pep-0302/
Waiting for api job trigger support from circleci: https://discuss.circleci.com/t/api-job-trigger-fails-on-2-1-circle-project/27010
Use a simple strptime
format string.
This could be:
def with_aws_lambda_environment_variables(context: behave.runner.Context, db_connection_string: str) -> Generator:
...
And then the TEST_DATABASE_CONNECTION_STRING
environment variable stuff can live in environment.py
In circleci
Before sunrise on 10/21, gabe got the today sunlight window for 10/20
I can probably do this in a lot of index files
https://github.com/zhammer/morning-cd/blob/master/web_client/src/services/api/morningCd.tsx#L74
Technically the schema allows for this to be null. Not sure how important the difference between empty string and null is at the moment.
It’d be cool if the stars could dim only when there’s text in front of them,
If that’s not possible, dim the center ones
It's a little difficult to link directly to today's playlist due to timezone offsets but I think just linking to the latest playlist is good. Dad hammer pointed out that on small phones when taken to all the morningcd playlists, the actual date number (i.e. 2019-09-06) will cut off the last few characters, so it's not clear which playlist is today's.
Figure a good, standard policy for this.
Right now HelpModal contains the help button, and state for activating and deactivating it.
If anything, the helpmodal should just be the modal, and maybe there could be a HelpMenu
scene? not sure but don't love it as it stands now.
i want to make a spotify client since it seems like https://github.com/plamere/spotipy isn't being maintained
I think this has to do with being blocked by the fading-out windloading animation. Moving up the z-index of the button (and also making sure the actual modal z-index is higher) should fix.
Here's the graphql playground server running on an ec2 instance: http://174.129.83.12/graphql.
Note: at the moment, the only iana timezones that morning cd recognizes are
America/New_York
Asia/Tokyo
Europe/Moscow
mutation submit($listenInput: GraphQlListenInput!) {
submitListen(input: $listenInput) {
...listenFields
}
}
query listens {
allListens(last: 10) {
edges {
cursor
listen: node {
...listenFields
}
}
pageInfo {
hasNextPage
hasPreviousPage
}
}
}
fragment listenFields on GraphQlListen {
id
listenerName
note
listenTimeUtc
ianaTimezone
song {
id
name
artistName
albumName
}
}
{
"listenInput": {
"listenerName": "Zach",
"note": "First song on the ec2 instance! (asia/tokyo because it's night here.)",
"ianaTimezone": "Asia/Tokyo",
"songId": "enter a spotify song id"
}
}
Would be nice to have a fully statically typed project. Plus typescript is about to have native create-react-app support. Would be a fun project + would be nice to improve the frontend code.
Ideally the entire morning cd collection of services could be totally redeployed directly from their serverless.yml files. A few current issues / opportunities for improvement
It'd be nice to do some cleanup on this overtime. Learning better cloudformation setup (via serverless) would be nice overall too
Use built in exceptions for system errors (all should produce a 500 error and log the stacktrace / exception) and MorningCdException
-base exceptions for exceptions that 'correspond' to status codes.
looks like an edit symbol. change to https://thenounproject.com/search/?q=note&collection=31726&i=1069056
I reaally want something like this on the bottom right of the page: https://tympanus.net/Tutorials/CircularNavigation/index.html
Settings
About
Share
Successful CI tests on master should automatically deploy morning_cd to a password protected beta environment ... before the deploy hold for prod deploy
Probably due to making question paged fixed
Could be nice but not sure
At the moment, since each block of text does its own animation, the animation cycles can be out of sync when new listens are loaded
morning-cd/morning_cd/submit_listen.py
Line 13 in f62c7b0
[Listen to today's spotify playlist]
link under headerCould be cool. Weekly set of cds from the week, each one with top artists, etc.
Don’t think this is used. Maybe look for tool that checks for unused modules
Mainly just to make development easier. Still would be independently deployed and CI'd.
But behind modal
This is due to change in #115
skip the waiting period delay.
iana_tz_coord.replace(‘/‘, ‘ - ‘).replace(‘_’, ‘ ‘)
As per discussion with evan, invalidator can look something like:
def submit_listen(listen_input: ListenInput):
invalid_reason = listen_entity.check_invalid
if invalid_reason:
# handle invalid
...
(I guess this is where https://www.python.org/dev/peps/pep-0572/ would be nice)
setState({ loading: true })
after sundial turns to night. occurs for less than a second and can be resolved later.new Date()
index.js:1446 Warning: React does not recognize the isDay
prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase isday
instead. If you accidentally passed it from a parent component, remove it from the DOM element.
in div (created by ModalBody)
in ModalBody (created by Context.Consumer)
in ModalBody (at HelpModal/index.tsx:31)
in div (created by Modal)
in div (created by Modal)
in div (created by Transition)
in Transition (created by Fade)
in Fade (created by Modal)
in div (created by Modal)
in Portal (created by Modal)
in Modal (at HelpModal/index.tsx:30)
in HelpModal (at App.tsx:193)
in div (at DayNightFrame/index.tsx:16)
in DayFrame (at App.tsx:192)
in div (at App.tsx:189)
in App (at src/index.tsx:11)
Except maybe wind loading?
lol i legitimiately just did this... but i confused the word dim and dull and i don't wanted to fix it now
Users can't go back to question page if they selected the wrong song or want to change selection
Suggestion from poppa hammer
Right now there's a 5 second delay in starting the glowing text animation for listens text at night. This is because we're waiting for the full page to transition to night, and once that transition is done we start glowing to white.
If the page loads directly to night, however, the text just stays gray for a while. It should start glowing immediately.
This will probably just involve checking if it's night && if it's the first render? not 100% sure best way to do this
Getting a lot of unclear sentries when not checking spotify return code
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.