A Refocus bot that show all events in a room.
- React for the frontend.
- Webpack as an asset bundler.
- Cypress.io for end-to-end tests.
Note: If you want to test this locally you will need some environment variables:
API_TOKEN_DEV
- Used for Requests to Refocus. Created in refocus/tokens/new.NODE_ENV
(defaults to 'dev') - Used to determine which instance of Refocus to install the bot.REFOCUS_URL
(OPTIONAL) - Used to specify which refocus instance to point to.
- Environment Variables in bot:
_
HEARTBEAT_OFF=true
_NODE_ENV=integrationSandbox
_CYPRESS_baseUrl
// Url of test refocus instance e.g. http://localhost:3000 _CYPRESS_REFOCUS_USERNAME
Username to authenticate to refocus for integration tests _CYPRESS_REFOCUS_PASSWORD
Password to authenticate to refocus for integration tests _REFOCUS_INTEGRATION_SANDBOX_URL
// Url of test refocus instance e.g. http://localhost:3000 _REFOCUS_USERNAME
// Username to authenticate to refocus for integration tests _REFOCUS_PASSWORD
// Password to authenticate to refocus for integration tests - Inside your local refocus instance, run the command:
npm run start-bot-integration-test
. - Run the command:
npm run test-integration:dev
.
Follows semantic versioning
- 1.0.0 Basic timeline functionality works.
- 1.0.1 Urls in the middle of message appear as links.
- 1.0.2 Message remains in text box until it is sent successfully.
- 1.0.3 Added support for attachments from dropzone
- 1.0.4 Added support for room activate/deactivate
- 1.0.5 Removed public folder and reference to refocus-connect.
- 1.1.0 Fix message focus after message sent, Fix UI issues, UTC Times only
- 1.1.1 Uses fullName instead of email for events/messages etc.
- 1.1.2 Fix less than sign issues
- 1.1.3 Fix scroll on tag change, Add multiple tag support, Default to Comments and Attachments
- 1.1.4 Get All Events
- 1.1.5 Make images clickable
- 1.1.6 Remove extra scripts
- 1.1.7 Add env variable for refocus url
- 1.1.8 Stop auto scroll and make toast on new Event.
- 1.1.9 Allow copy and paste with newlines and can type a newline with SHIFT + ENTER
- 1.1.10 Uglify for production.
- 1.1.11 Added display name.
- 1.1.12 Only loading fields as they are toggled.
- 1.1.13 Rebrand to look more like activity-timeline.
- 1.1.14 Change staging to perf env.
- 1.1.15 Don't show Slack Events in Timeline.
- 1.1.16 Clean up config.js
- 1.1.17 Added botName to config file.
- 1.1.18 Upgraded packages for npm audit.
- 1.1.19 Setting up end-to-end tests.
- 1.1.20 Upgrade to react 16.
- 1.2.0 Added upload file functionality.
- 1.2.1 Specify node version.
- 1.2.2 Refactoring to use react hooks & stateless components.